00001 00017 #include "OSiLReader.h" 00018 #include "OSInstance.h" 00019 00020 OSInstance *yygetOSInstance(const char *osil) throw(ErrorClass); 00021 OSiLReader::OSiLReader( ) { 00022 } 00023 00024 OSiLReader::~OSiLReader(){ 00025 delete m_osinstance; 00026 m_osinstance = NULL; 00027 } 00028 00029 OSInstance* OSiLReader::readOSiL(std::string *posil) throw(ErrorClass){ 00030 try{ 00031 const char *ch = posil->c_str(); 00032 m_osinstance = yygetOSInstance( ch); 00033 return m_osinstance; 00034 } 00035 catch(const ErrorClass& eclass){ 00036 throw ErrorClass( eclass.errormsg); 00037 } 00038 }//end readOSiL 00039 00040 00041 00042