home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
scase.zip
/
SCASE.Z
/
CONFIG.TXT
< prev
next >
Wrap
Text File
|
1994-12-30
|
18KB
|
474 lines
Configuring S-CASE
==================
S-CASE can be configured through the use of configuration files.
Configuration files are simple text files, which specify values for
several configuration parameters. Please keep in mind, that most of
these parameters can be changed directly through S-CASE. So avoid
hand editing of configuration files as far as possible.
Configuration Concepts
======================
S-CASE uses the concept of global and local configurations files.
Parameters specified in the global configuration file are applicable to
all users of S-CASE. Individual users can however override these
parameters by specifying them in their local configuration files. Every
S-CASE user is assigned a local configuration file that stores his/her
configuration information.
The install procedure described in chapter 1 of the User's Guide creates
a default global configuration file. It also creates a local configuration
file for the user who performs the install procedure. Whenever a new user
uses S-CASE, his/her local configuration file is created automatically.
The user╒s configuration information is updated in the local configuration
file when he/she exits S-CASE. However, there is no way to change the
global configuration file through S-CASE. Changes to this file can be made
only through a text editor. Be careful when you do this. Always make a
backup copy of the original configuration file.
WARNING: Make sure that you do not edit your own local configuration file
through S-CASE╒s text editor. As soon as you exit, S-CASE will overwrite
this file wiping out all your changes. Use some other text editor to edit
this file.
S-CASE performs the following steps to locate the global configuration
file. The first step to succeed determines the location of the global
configuration file.
1. Check if the user╒s local configuration file specifies a path for
the global configuration file.
(via the variable [Config] GlobalConfig)
2. For Macintosh, use the file
System Folder:Preferences:S-CASE¬:glblcfg:global.
For all other systems, use the file
scase_dir/cfg/glblcfg/global.
S-CASE performs the following steps to locate the user╒s local
configuration file. The first step to succeed determines the location of
the local configuration file.
1. Check for the file .scase_cfg in user╒s home directory.
(UNIX only)
2. Check for the file pointed by the environment variable SCASE_CFG.
(all platforms except Macintosh)
3. For Macintosh, use the file
System Folder:Preferences:S-CASE¬:lclcfg:username.
For all other systems, use the file
scase_dir/cfg/lclcfg/username.
(username is the user╒s name as described in the User's Guide)
Configuration File Format
=========================
A configuration file consists of zero or more sections. Each section
contains a group of related variables. The example below shows a section
called Editor and two variables within this section called TextColor and
BgndColor. The values of the two variables are 0 and FFFFFF (hex)
respectively.
[Editor]
l TextColor = 0x000000
l BgndColor = 0xFFFFFF
The configuration file contains three types of lines:
1. Comment lines
2. Section definition lines
3. Variable definition lines
Comment Lines
-------------
A comment line has the following format:
[white space] [ // [comment] ]
Examples:
1. A completely blank line:
2. A line with some leading white space and a comment:
// This is a comment
Section Definition Lines
------------------------
A section definition line has the following format:
[white space] "[" <section> "]" [ // [comment] ]
Example:
[Editor]
Here are some points to remember about section definition lines:
o Anything between the square brackets is considered to be the section
name.
o Case is significant.
o Only the first 63 characters are significant.
o If the section name is encountered for the first time, then a new
section with that name is created, otherwise the previously defined
section is used when the following lines are read.
Variable Definition Lines
-------------------------
A variable definition line has the following format:
[white space] <type> <variable> = <value> [ // [comment] ]
Following types are recognized
l = long (a 32 bit signed number)
f = floating point
s = character string
L = list of longs (value indicates the length of the list)
F = list of floats (value indicates the length of the list)
S = list of strings (value indicates the length of the list)
In case of lists, the elements of the list are specified on subsequent
lines, one element per line.
The variable name is case sensitive and only the first 63 characters are
significant.
Values can be specified as follows:
long: 1000, +1000, -1000, 0x00FF00FF (hex), 0777(octal)
floating point: 4.5, -3.5, 0.99, .99
character string: Hello world
If a variable has been previously defined in the current section, then
the new definition overrides it.
Examples:
l WorldWindowX = -100
f Magnification = 3.2
s Title =Console// careful: string begins right after the "="
// and stops at the beginning of the comment
L WindowColors = 2
0x00FF00FF
0x000000FF
S VersionDirs = 3
sd3:proj:mq:SCCS
sd3:proj:mqapp:global:SCCS
sd3:proj:mqapp:mac.macos.macws.mpw:SCCS
Configuration File Variables
============================
This section describes the configuration file variables recognized by
S-CASE. The variables are grouped under their respective sections.
[CodeGen] Section
-----------------
This section controls various code generation options.
Name: AttributesFirst
Description: Whether attributes should be generated before methods.
Type: Long
Allowable values: 0(No), 1(Yes)
Default value: 0
Change via S-CASE: Yes, through Options->AttributesFirst menu.
Name: BodyBackFileExtension
Description: Extension for generating backups of body files.
Type: String
Allowable values: Extensions valid for the file system
Default value: cc%
Change via S-CASE: Yes, through Options->Source File Extensions menu.
Name: BodyCleanFileExtension
Description: Extension for generating clean code body files.
Type: String
Allowable values: Extensions valid for the file system
Default value: ccl
Change via S-CASE: Yes, through Options->Source File Extensions menu.
Name: BodyCopyrightFile
Description: File containing copyright message used in body files.
Type: String
Allowable values: Any valid filename
Default value: cpyright.msg
Change via S-CASE: Yes, through Options->Copyright Files menu.
Name: BodyFileExtension
Description: Extension for body files.
Type: String
Allowable values: Extensions valid for the file system
Default value: cc
Change via S-CASE: Yes, through Options->Source File Extensions menu.
Name: BodyTempFileExtension
Description: Extension for temporary body files during code generation.
Type: String
Allowable values: Extensions valid for the file system
Default value: ctp
Change via S-CASE: Yes, through Options->Source File Extensions menu.
Name: GenCleanCode
Description: Whether clean code should be generated.
Type: Long
Allowable values: 0(No), 1(Yes)
Default value: 0
Change via S-CASE: Yes, through Options->Generate Clean Code menu.
Name: HeaderBackFileExtension
Description: Extension for generating backups of header files.
Type: String
Allowable values: Extensions valid for the file system
Default value: h%
Change via S-CASE: Yes, through Options->Source File Extensions menu.
Name: HeaderCleanFileExtension
Description: Extension for generating clean code header files.
Type: String
Allowable values: Extensions valid for the file system
Default value: hcl
Change via S-CASE: Yes, through Options->Source File Extensions menu.
Name: HeaderCopyrightFile
Description: file containing copyright message used in header files.
Type: String
Allowable values: Any valid filename
Default value: cpyright.msg
Change via S-CASE: Yes, through Options->Copyright Files menu.
Name: HeaderFileExtension
Description: Extension for header files.
Type: String
Allowable values: Extensions valid for the file system
Default value: h
Change via S-CASE: Yes, through Options->Source File Extensions menu.
Name: HeaderTempFileExtension
Description: Extension for temporary header files during code generation.
Type: String
Allowable values: Extensions valid for the file system
Default value: htp
Change via S-CASE: Yes, through Options->Source File Extensions menu.
Name: MakeBackups
Description: Whether backups should be created during code generation.
Type: Long
Allowable values: 0(No), 1(Yes)
Default value: 1
Change via S-CASE: Yes, through Options->Make Backups menu.
[Config] Section
----------------
This section affects various configuration files.
Name: GlobalConfig
Description: Pathname of the global configuration file.
(valid only in local configuration file)
Type: String
Allowable values: Any valid pathname
Default value: None
Change via S-CASE: Yes, through Console╒s Options->Global Configuration menu.
Name: SaveOnExit
Description: Should local configuration file be updated on exit.
Type: Long
Allowable values: 0 (No), 1 (Yes)
Default value: 1
Change via S-CASE: Yes, through Console╒s Options->Save Configuration On Exit menu.
[Console] and [Editor] Sections
-------------------------------
These two sections affect the Console and the Text Editor windows respectively.
Name: BgndColor
Description: Background color of the window.
Type: Long
Allowable values: RGB color values
Default value: 0xFFFFFF (White)
Change via S-CASE: Yes, through Options->Background Color menu.
Name: CnslAtStartup
Description: Should console be brought up when app starts - Console only.
Type: Long
Allowable values: 0(No), 1(Yes)
Default value: 0
Change via S-CASE: Yes, through Options->Console At Startup menu.
Name: DebugLevel
Description: Debug level - Console only.
Type: Long
Allowable values: 1(Low), 2(High)
Default value: 1
Change via S-CASE: Yes, through Options->Debug Level menu.
Name: FileType
Description: Line termination style when writing to a file.
Type: Long
Allowable values: 0(UNIX), 1(MS-DOS), 2(Macintosh)
Default value: 0
Change via S-CASE: Yes, through Options->File Type menu.
Name: FontFamily
Description: Font family of the text in the window.
Type: Long
Allowable values: 0(System), 1(Fixed), 2(Times), 8(Helvetica)
Default value: 8
Change via S-CASE: Yes, through Font menu.
Name: FontSize
Description: Font size of the text in the window.
Type: Long
Allowable values: 6,8,9,10,12,14,16,18,20,24,36,48,54,60,72
Default value: 12
Change via S-CASE: Yes, through Style menu.
Name: FontStyle
Description: Font style of the text in the window.
Type: Long
Allowable values: OR of the following three bits:
0x01 Bold
0x02 Italic
0x08 Scalable
Default value: 0x08
Change via S-CASE: Yes, through Style menu.
Name: MacFileType
Description: Macintosh file type created by editor and code generator.
(valid in Editor section only)
Type: String
Allowable values: Any string with 4 characters
Default value: TEXT
Change via S-CASE: No.
Name: Overtype
Description: Turn overtype mode on or off.
Type: Long
Allowable values: 0 (off), 1 (on)
Default value: 0
Change via S-CASE: Yes, through Options->Overtype menu.
Name: TextColor
Description: Foreground color of the text in the window.
Type: Long
Allowable values: RGB color values
Default value: 0x000000 (Black)
Change via S-CASE: Yes, through Options->Text Color menu.
Name: Wrap
Description: Turn wrap mode on or off.
Type: Long
Allowable values: 0 (off), 1 (on)
Default value: 0
Change via S-CASE: Yes, through Options->Wrap menu.
[DataSources] Section
---------------------
This section is used to remember the data sources that are available to
the user. Each data source, enumerated in this section, also has its own
separate section. This separate section has the same name as that of the
data source and is used to store attributes specific to the data source.
Example:
[DataSources]
s Default=Projects
S Names=2
Projects
Sample Projects
[Projects]
s BTreeList=Generic
s DatabaseDir=/usr/projects
s DatabaseName=datasrc
s PrjDir=/usr/projects
s Type=MPID
[Sample Projects]
s BTreeList=Generic
s DatabaseDir=/tools/scase/db/sampledb
s DatabaseName=datasrc
s PrjDir=/tools/scase/db/sampledb
S SrcDirs=2
00000003 /tools/scase/src/vce_mail
00000017 /tools/scase/src/ttt
s Type=MPID
Variables:
Name: Default
Description: The default data source that is opened when S-CASE starts.
Type: String
Allowable values: Any valid data source name
Default value: None
Change via S-CASE: Yes, whenever a new data source is opened, that
data source becomes the default data source.
Name: Names
Description: Names of the available data sources.
Type: String list
Allowable values: Any valid string list
Default value: None
Change via S-CASE: Yes, when the data source is created, located or removed.
NOTE: Following variables specify various attributes of individual data
sources and are valid only in their respective sections.
Name: BTreeList
Description: Name of the B-Tree collection used by the data source.
Type: String
Allowable value: Generic
Default value: None
Change via S-CASE: No, S-CASE forces this value to be Generic.
Name: DatabaseDir
Description: Directory where the database is located.
Type: String
Allowable value: Any valid pathname
Default value: None
Change via S-CASE: Yes, when a data source is created or located.
Name: DatabaseName
Description: Filename of the database, without the extension.
Type: String
Allowable value: datasrc
Default value: None
Change via S-CASE: No, S-CASE forces this value to be datasrc.
Name: PrjDir
Description: Directory where the project documents are located.
Type: String
Allowable value: Any valid pathname
Default value: None
Change via S-CASE: Yes, when a data source is created or located.
Name: SrcDirs
Description: Associations between categories and source directories.
Type: String list
Allowable value: A string list with CategoryId and Path pairs
Default value: None
Change via S-CASE: Yes, through Options->Source Directory menu.
Name: Type
Description: Type of data source.
Type: String
Allowable value: MPID (MultiQuest Platform Independent Data-Source)
Default value: None
Change via S-CASE: No, S-CASE forces this value to be MPID.
[Document] Section
------------------
This section controls various attributes of documents.
Name: SaveASCII
Description: Save documents in ASCII or binary mode.
Type: Long
Allowable values: 0 (Binary), 1 (ASCII)
Default value: 1
Change via S-CASE: No.
[Extensions] Section
--------------------
This section defines extensions for various type of files.
Name: Text
Description: Extensions for text files.
Type: String List
Allowable values: Any string list
Default value: None
Change via S-CASE: Yes, via text editor╒s Options->Text File Extensions menu.