Logo Search packages:      
Sourcecode: lttoolbox version File versions  Download package

void Compiler::requireAttribute ( string const &  value,
string const &  attrname,
string const &  elemname 
) [private]

Force an attribute to be specified, amd check for it

Parameters:
value the value of the attribute
attrname the name of the attribute
elemname the parent of the attribute

Definition at line 541 of file Compiler.C.

References reader.

Referenced by procSection().

{
  if(value == "")
  {
    cerr << "Error (" << xmlTextReaderGetParserLineNumber(reader);  
    cerr << "): '<" << elemname;
    cerr << "' element must specify non-void '";
    cerr<< attrname << "' attribute." << endl;
    exit(EXIT_FAILURE);
  }  
}


Generated by  Doxygen 1.6.0   Back to index