下面是debug命名空间中的各种方法,主要是向系统控制字典中提取和保存各种参数信息。 dictionary& controlDict(); //获取系统控制字典"ControlDict"的引用 dictionary& switchSet(const char* switchSetName, dictionary* switchSetPtr); //从系统控制字典中查找选项集名"switchSetName"对应的字典,并返回该字典的引用 dictionary& debugSwitches(); //返回选项集名为"DebugSwithes"的字典 int debugSwitch ( const char* switchName, const int defaultValue = 0 ); //在字典"DebugSwitches"中查找是否有选项名为switchName的选项,有的话返回其值,否则在字典中增加数据对(switchName,defaultValue),同时返回defaultValue。 dictionary& infoSwitches(); //在系统控制字典中查找字典名为“InfoSwitches”的字典,并返回该字典的引用 int infoSwitch ( const char* switchName, const int defaultValue = 0 ); //在字典"InfoSwitches"中查找是否有选项名为switchName的选项,有的话返回其值,否则在字典中增加数据对(switchName,defaultValue),同时返回defaultValue。 dictionary& optimisationSwitches(); //在系统控制字典中查找字典名为“OptimisationSwitches”的字典,并返回该字典的引用 int optimisationSwitch ( const char* switchName, const int defaultValue = 0 ); //在字典"OptimisationSwitches"中查找是否有选项名为switchName的选项,有的话返回其值,否则在字典中增加数据对(switchName,defaultValue),同时返回defaultValue。

评论