home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
check_conf.tcl
< prev
next >
Wrap
Text File
|
1997-03-26
|
3KB
|
79 lines
#---------------------------------------------------------------------------
#
# Copyright (c) 1997 by Cayenne Software Inc.
#
# This software is furnished under a license and may be used only in
# accordance with the terms of such license and with the inclusion of
# the above copyright notice. This software or any other copies thereof
# may not be provided or otherwise made available to any other person.
# No title to and ownership of the software is hereby transferred.
#
# The information in this software is subject to change without notice
# and should not be construed as a commitment by Cayenne Software Inc.
#
#---------------------------------------------------------------------------
#
# File : @(#)check_conf.tcl /main/hindenburg/1
# Original date : March 26th, 1997
# Description : Check configurable variables; override using
# u_check.tcl
#
#---------------------------------------------------------------------------
#
#
# Boolean options understood by check.tcl.
#
# The first element of each sublist will cause the second element to be
# made "global" and set to either 0 or 1, depending on whether the first
# element was specified as an argument to 'check' after the "--".
#
# The third element in each sublist gives the default value for the option,
# i.e. the value it will get if the option is not specified.
#
global boolean_options
set boolean_options { {-trace tracing 0} \
{-debug debug 0} \
{-time timing 0} \
{-global global 0} \
{-usecase usecase 0} }
#
# For generation, the next two functions are loaded from cpp_const.tcl, but
# they generate other things, which we don't want / can't do when
# preparing for checking.
#
# Also need cpp_config for eg set::name, but since that is only used for
# types of generated functions, and the type is not used in later checks,
# this is no problem.
#
# The set name for 'class'
#
proc set_name {class {ordered 0}} {
return "${class}[expr {$ordered == 1 ? "O" : ""}]Set"
}
# The set type name for 'class'
#
proc set_type_name {class {ordered 0}} {
return "[expr {$ordered == 1 ? "O" : ""}]SetOf[$class getName]"
}
#
# This function adds the synthetic classes and methods to the model.
# Use find_class to find a class in the model by name.
#
# Use add_attributes from check_util.tcl to add any attributes to
# any class or operation.
#
# It calls the procedure 'add_user_defined_methods' if it exists to
# let the user add any classes/methods.
#
# This is one of the routines that need to be redefined when using
# a different persistency mechanism.
#
proc add_predefined_methods {ooplmodel} {
}