// file: $isip/class/search/HierarchicalDigraph/hd_00.cc // // isip include files // #include "HierarchicalDigraph.h" //------------------------------------------------------------------------ // // required public methods // //----------------------------------------------------------------------- // method: assign // // arguments: // const HierarchicalDigraph& arg_a: (input) object to assign // // return: a bool8 value indicating status // // this method assigns the input argument to "this". // bool8 HierarchicalDigraph::assign(const HierarchicalDigraph& arg_a) { // assign data related to i/o // debug_level_d = arg_a.debug_level_d; // assign other protected data // source_format_d = arg_a.source_format_d; // call the assign method of Vector // return Vector::assign(arg_a); } // method: eq // // arguments: // const HierarchicalDigraph& arg_a: (input) input object to assign // // return: a bool8 value indicating status // // this method checks whether the current object is identical to the // input object // bool8 HierarchicalDigraph::eq(const HierarchicalDigraph& arg_a) const { // compare all protected data and call eq method // of Vector class // return (source_format_d == arg_a.source_format_d && Vector::eq(arg_a)); } // method: clear // // arguments: // Integral::CMODE ctype: (input) clear mode // // return: a bool8 value indicating status // // this method resets the data members to the default values // bool8 HierarchicalDigraph::clear(Integral::CMODE ctype_a) { // reset all protected data // if (ctype_a != Integral::RETAIN) { source_format_d = DEF_SRC_FORMAT; } // call the Vector clear method // return Vector::clear(ctype_a); } //----------------------------------------------------------------------------- // // we define non-integral constants in the default constructor // //----------------------------------------------------------------------------- // constantsL class name // const String HierarchicalDigraph::CLASS_NAME(L"HierarchicalDigraph"); // constants: NameMap(s) for the enumerated values // const NameMap HierarchicalDigraph::SRC_MAP(L"UNKNOWN, IHD, JSGF, XML");