| 104 | } |
| 105 | |
| 106 | static DDLNode *createDDLNode(Text *id, OpenDDLParser *parser) { |
| 107 | if (nullptr == id || nullptr == parser || id->m_buffer == nullptr) { |
| 108 | return nullptr; |
| 109 | } |
| 110 | |
| 111 | const std::string type(id->m_buffer); |
| 112 | DDLNode *parent(parser->top()); |
| 113 | DDLNode *node = DDLNode::create(type, "", parent); |
| 114 | |
| 115 | return node; |
| 116 | } |
| 117 | |
| 118 | OpenDDLParser::OpenDDLParser() : |
| 119 | m_logCallback(nullptr), |