Go to the documentation of this file.
233 std::string value = node->
rawValue();
244 bool pushedChild =
false;
245 int currentIndex = 1;
249 if(cnode->isUnique()) {
271 int currentIndex = 1;
274 if(cnode->isUnique() && !cnode->tag().empty()) {
290 while(
g_lua.
next(index < 0 ? index-1 : index)) {
291 std::string cnodeName;
301 if(cnodeName.empty())
313 if(cnodeName.empty())
316 node->
writeAt(cnodeName, value);
int push_luavalue(const Outfit &outfit)
void setTag(const std::string &tag)
void rawSeti(int n, int index=-2)
std::function< int(LuaInterface *)> LuaCppFunction
bool isString(int index=-1)
void writeAt(const std::string &childTag, const T &v)
std::string toString(int index=-1)
bool isNumber(int index=-1)
LuaObjectPtr toObject(int index=-1)
bool luavalue_cast(int index, Outfit &outfit)
void push_otml_subnode_luavalue(const OTMLNodePtr &node)
bool cast(const T &in, R &out)
void addChild(const OTMLNodePtr &newChild)
void getField(const char *key, int index=-1)
void pushNumber(double v)
void createTable(int narr, int nrec)
void setUnique(bool unique)
void pushCString(const char *v)
void pushString(const std::string &v)
void pushValue(int index=-1)
void pushCppFunction(const LuaCppFunction &func)
bool isTable(int index=-1)
void setField(const char *key, int index=-2)
bool isUserdata(int index=-1)
bool toBoolean(int index=-1)
bool isBoolean(int index=-1)
void rawSet(int index=-3)
int toInteger(int index=-1)
double toNumber(int index=-1)
static OTMLNodePtr create(std::string tag="", bool unique=false)