summary refs log tree commit diff stats
path: root/generator/generator.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-01-21 18:51:41 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-01-21 18:51:41 -0500
commite02e3d57dc090c8fd333812b84e91805921e398c (patch)
treecd88280d698a920ca11419309bd743ddd9fc1b32 /generator/generator.cpp
parent104587ba8f0ce51e0dfbc2916aee97ce3f8c3a8a (diff)
downloadverbly-e02e3d57dc090c8fd333812b84e91805921e398c.tar.gz
verbly-e02e3d57dc090c8fd333812b84e91805921e398c.tar.bz2
verbly-e02e3d57dc090c8fd333812b84e91805921e398c.zip
Moved some generator classes into the main namespace
Diffstat (limited to 'generator/generator.cpp')
-rw-r--r--generator/generator.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/generator/generator.cpp b/generator/generator.cpp index d88cb31..16183a2 100644 --- a/generator/generator.cpp +++ b/generator/generator.cpp
@@ -5,10 +5,10 @@
5#include <regex> 5#include <regex>
6#include <dirent.h> 6#include <dirent.h>
7#include <fstream> 7#include <fstream>
8#include "enums.h" 8#include "../lib/enums.h"
9#include "progress.h" 9#include "progress.h"
10#include "selrestr.h" 10#include "../lib/selrestr.h"
11#include "role.h" 11#include "../lib/role.h"
12#include "part.h" 12#include "part.h"
13#include "field.h" 13#include "field.h"
14#include "../lib/util.h" 14#include "../lib/util.h"
@@ -1290,21 +1290,20 @@ namespace verbly {
1290 { 1290 {
1291 if (!xmlStrcmp(roletopnode->name, reinterpret_cast<const xmlChar*>("THEMROLE"))) 1291 if (!xmlStrcmp(roletopnode->name, reinterpret_cast<const xmlChar*>("THEMROLE")))
1292 { 1292 {
1293 role r;
1294
1295 key = xmlGetProp(roletopnode, reinterpret_cast<const xmlChar*>("type")); 1293 key = xmlGetProp(roletopnode, reinterpret_cast<const xmlChar*>("type"));
1296 std::string roleName = reinterpret_cast<const char*>(key); 1294 std::string roleName = reinterpret_cast<const char*>(key);
1297 xmlFree(key); 1295 xmlFree(key);
1298 1296
1297 selrestr roleSelrestrs;
1299 for (xmlNodePtr rolenode = roletopnode->xmlChildrenNode; rolenode != nullptr; rolenode = rolenode->next) 1298 for (xmlNodePtr rolenode = roletopnode->xmlChildrenNode; rolenode != nullptr; rolenode = rolenode->next)
1300 { 1299 {
1301 if (!xmlStrcmp(rolenode->name, reinterpret_cast<const xmlChar*>("SELRESTRS"))) 1300 if (!xmlStrcmp(rolenode->name, reinterpret_cast<const xmlChar*>("SELRESTRS")))
1302 { 1301 {
1303 r.setSelrestrs(parseSelrestr(rolenode)); 1302 roleSelrestrs = parseSelrestr(rolenode);
1304 } 1303 }
1305 } 1304 }
1306 1305
1307 grp.addRole(roleName, std::move(r)); 1306 grp.addRole({roleName, std::move(roleSelrestrs)});
1308 } 1307 }
1309 } 1308 }
1310 } else if (!xmlStrcmp(node->name, reinterpret_cast<const xmlChar*>("FRAMES"))) 1309 } else if (!xmlStrcmp(node->name, reinterpret_cast<const xmlChar*>("FRAMES")))