Commit dac28280 authored by vlad_burin's avatar vlad_burin
Browse files

Serializer updated for specific complicated type.

--HG--
branch : MockCompsTest
parent 1bcfdf6fc9a1
...@@ -41,6 +41,13 @@ void UBasePropCreatorVector::CreateProperty(RDK::USerStorageXML* serstorage, RDK ...@@ -41,6 +41,13 @@ void UBasePropCreatorVector::CreateProperty(RDK::USerStorageXML* serstorage, RDK
{ {
std::string type = serstorage->GetNodeAttribute("Type"); std::string type = serstorage->GetNodeAttribute("Type");
// NetStructure
if(type == "NetStructure")
{
CreatorProperty<PropType, TypeInt, vector<vector<vector<vector<vector<UId> > > > > >::CreatePropertyByType(serstorage, mock_unet);
return;
}
// ( CreatePropertyByType) - // ( CreatePropertyByType) -
if(type == "std::vector") if(type == "std::vector")
{ {
......
...@@ -369,6 +369,13 @@ USerStorageXML& operator << (USerStorageXML& storage, const std::vector<T> &data ...@@ -369,6 +369,13 @@ USerStorageXML& operator << (USerStorageXML& storage, const std::vector<T> &data
storage.SetNodeAttribute("Type","PPlanePoints"); storage.SetNodeAttribute("Type","PPlanePoints");
} }
//
if(storage.GetNodeName() == "NetStructure")
{
storage.SetNodeAttribute("Type","NetStructure");
}
size_t size=data.size(); size_t size=data.size();
storage.SetNodeAttribute("Size",sntoa(size)); storage.SetNodeAttribute("Size",sntoa(size));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment