NIREP
|
00001 #include "DisplayDescription.h" 00002 00003 using namespace std; 00004 00005 00006 00007 #define WIDGETLIST 1 00008 #define EVALUATORLIST 2 00009 #define VARIABLELIST 3 00010 00011 //Currently this is not doing anything. 00012 //This checks that the widgetList and evaluatorList are consistent, 00013 //i.e. if the widgetList has a taskName and the evaluatorList does not 00014 //have that taskName, report an error code. 00015 int DisplayDescription::Validate() 00016 { 00017 return -1; 00018 } 00019 00020 //Call the read function of the variable list, evaluator list and widget list 00021 int DisplayDescription::Read(std::string FileName) 00022 { 00023 m_fileName = FileName; 00024 this->da->Read(FileName); 00025 this->variableList->Read(FileName); 00026 this->evaluatorList->Read(FileName); 00027 this->widgetList->Read(FileName); 00028 00029 m_rdl->LoadFromDisplayDescription(FileName); 00030 00031 return 0; 00032 } 00033