bool Compiler:: Options(int argc, char * argv []) { // Do the options in the correct order. // This is so we don't add compiling // files before we add global files. DoOption(argc, argv, "-w", E_OPTION_WARNING, true); DoOption(argc, argv, "-t", E_OPTION_TARGET, true); DoOption(argc, argv, "-f", E_OPTION_FILE, true); DoOption(argc, argv, "-o", E_OPTION_OUTPUT, true); if (!m_out) { SetOutput("default_output.js"); } return m_bGotFile; }
void ProjectTemplateLoader::DoTemplate(TiXmlElement* parentNode) { TiXmlElement* node = parentNode->FirstChildElement("Template"); while (node) { if (node->Attribute("name")) m_Name = cbC2U(node->Attribute("name")); if (node->Attribute("title")) m_Title = cbC2U(node->Attribute("title")); if (node->Attribute("category")) m_Category = cbC2U(node->Attribute("category")); if (node->Attribute("bitmap")) m_Bitmap = cbC2U(node->Attribute("bitmap")); DoTemplateNotice(node); DoFileSet(node); DoOption(node); node = node->NextSiblingElement("Template"); } }