Changeset 1075
- Timestamp:
- 03/16/17 15:04:46 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/variable.cpp
r773 r1075 40 40 if (!node.getContent(this->content)) 41 41 { 42 xml::THashAttributes attributes = node.getAttributes(); 43 StdString variableName = attributes["name"]; 44 45 node.goToParentElement(); 46 StdString parentName = node.getElementName(); 47 attributes = node.getAttributes(); 48 error << "The variable id = " << id << " and name = " << variableName << " does not have any content. Please define it!" << std::endl 49 << "This variable is inside another element whose attributes are :" << std::endl; 50 51 for (xml::THashAttributes::iterator it = attributes.begin(); it != attributes.end(); ++it) 52 { 53 error << it->first << "=\"" << it->second.c_str() << "\" "; 54 } 55 error << std::endl; 56 42 57 ERROR("CVariable::parse(xml::CXMLNode & node)", 43 58 << "[ variable id = " << id 44 << " ] variable is not defined ! ");59 << " ] variable is not defined !. It does not have any content. See error log for more details."); 45 60 } 46 61 content = boost::trim_copy(content) ;
Note: See TracChangeset
for help on using the changeset viewer.