}
Define::Define ( const Project& project,
- const Module* module,
+ const Module* module,
const XMLElement& defineNode )
: project(project),
module(module),
}
Define::Define ( const Project& project,
- const Module* module,
- const std::string name_,
- const std::string backend_)
+ const Module* module,
+ const std::string& name_,
+ const std::string& backend_)
: project(project),
module(module),
node(NULL)
{
name = name_;
value = "";
- backend = backend_;
+ backend = backend_;
}
Define::~Define ()
Define::Initialize()
{
const XMLAttribute* att = node->GetAttribute ( "name", true );
- const XMLAttribute* empty = node->GetAttribute ( "empty", false );
- const XMLAttribute* bck = node->GetAttribute ( "backend", false );
+ const XMLAttribute* bck = node->GetAttribute ( "backend", false );
assert(att);
name = att->value;
- value = node->value;
- if ( bck ) backend = bck->value;
- if( empty ) value = " ";
+ value = node->value;
+ if ( bck )
+ backend = bck->value;
}
void
<!ELEMENT define (#PCDATA)>
<!ATTLIST define
name %CIdentifier; #REQUIRED
- value %Text; #IMPLIED
- empty (true) #IMPLIED
>
<!ELEMENT directory (compilationunit*|directory*|group*|cdfile|file*|if*|ifnot*|module+|pch*|xi:include*)+>
const XMLElement& defineNode );
Define ( const Project& project,
const Module* module,
- const std::string name_,
- const std::string backend_ = "" );
+ const std::string& name_,
+ const std::string& backend_ = "" );
~Define();
void ProcessXML();
private: