Changeset 464 for cpp/frams/vm/classes
- Timestamp:
- 02/07/16 04:09:36 (9 years ago)
- Location:
- cpp/frams/vm/classes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/vm/classes/collectionobj.cpp
r453 r464 154 154 } 155 155 156 SString VectorObject::serialize( ) const156 SString VectorObject::serialize(SerializationFormat format) const 157 157 { 158 158 SString out="["; … … 163 163 if (i) out+=","; 164 164 if (v) 165 out+=v->serialize( );165 out+=v->serialize(format); 166 166 else 167 167 out+="null"; … … 413 413 } 414 414 415 SString DictionaryObject::serialize( ) const415 SString DictionaryObject::serialize(SerializationFormat format) const 416 416 { 417 417 SString out="{"; … … 424 424 out+="\":"; 425 425 if (it->value!=NULL) 426 out+=((ExtValue*)it->value)->serialize( );426 out+=((ExtValue*)it->value)->serialize(format); 427 427 else 428 428 out+="null"; -
cpp/frams/vm/classes/collectionobj.h
r453 r464 42 42 static void p_new(void*,ExtValue*args,ExtValue*ret) 43 43 {ret->setObject(ExtObject(&par,new VectorObject));} 44 SString serialize( ) const;44 SString serialize(SerializationFormat format) const; 45 45 ExtObject makeObject() {return ExtObject(&par,this);} 46 46 … … 73 73 PARAMPROCDEF(p_clone); 74 74 #undef STATRICKCLASS 75 SString serialize( ) const;75 SString serialize(SerializationFormat format) const; 76 76 static void p_new(void*,ExtValue*args,ExtValue*ret) 77 77 {ret->setObject(ExtObject(&par,new DictionaryObject));}
Note: See TracChangeset
for help on using the changeset viewer.