📄 dbgl_03.cc
字号:
// file: $isip/class/shell/DebugLevel/dbgl_03.cc// version: $Id: dbgl_03.cc,v 1.2 2000/10/18 17:03:15 srivasta Exp $//// isip include files//#include "DebugLevel.h"// method: read//// arguments:// Sof& sof: (input) sof file object// long tag: (input) sof object instance tag// const String& name: (input) sof object instance name//// return: a boolean value indicating status//// this method has the object read itself from an Sof file//boolean DebugLevel::read(Sof& sof_a, long tag_a, const String& name_a) { // get the instance of the object from the Sof file // if (!sof_a.find(name_a, tag_a)) { return false; } // read the actual data from the sof file // if (!readData(sof_a)) { return false; } // exit gracefully // return true;}// method: readData//// arguments:// Sof& sof: (input) sof file object// const String& pname: (input) parameter name// long size: (input) size in bytes of object (or FULL_SIZE)// boolean param: (input) is the parameter specified?// boolean nested: (input) is this nested?//// return: a boolean value indicating status//// this method has the object read itself from an Sof file. it assumes// that the Sof file is already positioned correctly.//boolean DebugLevel::readData(Sof& sof_a, const String& pname_a, long size_a, boolean param_a, boolean nested_a) { // use the NameMap special i/o methods // LEVEL_MAP.readElementData((long&)value_d, sof_a, pname_a, size_a, param_a, nested_a); // value_d can't be negative // if (value_d < (long)0) { return false; } else { return true; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -