23 #ifndef BAGEL_BAGLIB_VAR_H 24 #define BAGEL_BAGLIB_VAR_H 26 #include "bagel/spacebar/baglib/parse_object.h" 27 #include "bagel/boflib/string.h" 28 #include "bagel/spacebar/boflib/list.h" 36 STRING = 0, NUMBER = 1, BOOLEAN = 2
70 return _xVarType == NUMBER;
73 return _xVarType == BOOLEAN;
76 return _xVarType == STRING;
87 bool isFrozen()
const {
97 void setValue(
int nVal);
98 void setBoolValue(
bool bVal);
99 void setGlobal(
bool bVal =
true) {
102 void setConstant(
bool bVal =
true) {
105 void setReference(
bool bVal =
true) {
108 void setTimer(
bool bVal =
true) {
111 void setRandom(
bool bVal =
true) {
114 void setFreeze(
bool bVal =
true) {
131 #define VAR_HASH_TABLE_SIZE 131 135 static int nVarMngrs;
141 static void initialize();
143 ErrorCode registerVariable(
CBagVar *pVar);
144 ErrorCode unRegisterVariable(
CBagVar *pVar);
145 ErrorCode updateRegistration();
146 ErrorCode releaseVariables(
bool bIncludeGlobals =
true);
148 ErrorCode incrementTimers();
154 return _xVarList.getCount();
Definition: ifstream.h:32
Definition: parse_object.h:48