void BinarySerialize::startContainerSerialization(void* _1, string className, string container) { StringUtil::replaceAll(container, "std::", ""); StringUtil::replaceAll(container, "::", "_"); StringUtil::replaceAll(className, "std::", ""); StringUtil::replaceAll(className, "::", "_"); StringUtil::replaceAll(className, "<", "-"); StringUtil::replaceAll(className, ">", "-"); StringUtil::replaceAll(className, ",", "-"); if(className.at(className.length()-1)=='-') className = className.substr(0, className.length()-1); AMEFEncoder enc; AMEFObject* object = (AMEFObject*)_1; object->setName(container+"-"+className); }
void BinarySerialize::startObjectSerialization(void* _1, string className) { AMEFEncoder enc; AMEFObject* object = (AMEFObject*)_1; object->setName(className); }
void BinarySerialize::startObjectSerialization(void* _1, const string& className) { AMEFEncoder enc; AMEFObject* object = static_cast<AMEFObject*>(_1); object->setName(className); }
void BinarySerialize::startContainerSerialization(void* _1, const string& className, const string& container) { AMEFEncoder enc; AMEFObject* object = static_cast<AMEFObject*>(_1); object->setName(container+"-"+className); }