Download CS501 VOTE: Visual Object Tracing Engine

Transcript
Configuration Interpreter
Preference Setting Classes
cl_RunSet
cl_PrefSet
Reset
Reset
Update
Update
Get
Get
Hash
Table
There are two sets of configuration parameters that specify the run-time preferences controlling all
the available functionalities. There are two classes which provide the data storage all the
parameters in each set and offer public access of the data.
The cl_PrefSet contains the environmental settings that users specify at the beginning and do not
change. For example, the user is allowed to specify the type of compiler and linker to generate
executables. File extension (*.cc, *.cpp or *.c) of the source code is also specified at the
beginning. Parameters that users adjust regularly, such as the visible classes in the MSC, are
stored in cl_RunSet.
Each class consists of three components; Reset, Set and Get. Reset is used for setting all the values
back to the default ones stored in the default objects. Set and Get are responsible for accessing the
data. In RunSet, a hash table class is needed to maintain a list of class information.
Flow Chart
Parameters
variables
allocated
Parameters
initialized to
default values
Input from log
file
Default
Settings
Finished Setting,
ready for retrieval
request
User updates the values
Load default
Values from file
Parameters set to new
values
Default Settings
stored in INI file
Save changes to
INI file
13