New path code. PathSet/PathElement.

This commit is contained in:
JoelKatz
2012-05-20 20:14:19 -07:00
parent fe85e87d4c
commit 9cfe26f5d6
3 changed files with 126 additions and 78 deletions

View File

@@ -42,8 +42,8 @@ std::auto_ptr<SerializedType> STObject::makeDefaultObject(SerializedTypeID id, c
case STI_ACCOUNT:
return std::auto_ptr<SerializedType>(new STAccount(name));
case STI_PATH:
return std::auto_ptr<SerializedType>(new STPath(name));
case STI_PATHSET:
return std::auto_ptr<SerializedType>(new STPathSet(name));
default:
throw std::runtime_error("Unknown object type");
@@ -88,8 +88,8 @@ std::auto_ptr<SerializedType> STObject::makeDeserializedObject(SerializedTypeID
case STI_ACCOUNT:
return STAccount::deserialize(sit, name);
case STI_PATH:
return STPath::deserialize(sit, name);
case STI_PATHSET:
return STPathSet::deserialize(sit, name);
default:
throw std::runtime_error("Unknown object type");