summaryrefslogtreecommitdiff
path: root/slicer/slicer
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2014-09-03 19:11:03 +0000
committerrandomdan <randomdan@localhost>2014-09-03 19:11:03 +0000
commitcc52d7998903743e729856da4b067c2bdb6404a6 (patch)
treef846fb2d6e3d00c59e18d1107d546498bbe43c02 /slicer/slicer
parentIgnore interfaces (diff)
downloadslicer-cc52d7998903743e729856da4b067c2bdb6404a6.tar.bz2
slicer-cc52d7998903743e729856da4b067c2bdb6404a6.tar.xz
slicer-cc52d7998903743e729856da4b067c2bdb6404a6.zip
Fix serializer interface to operate only on model part, everything else is via implementor's constructor
Diffstat (limited to 'slicer/slicer')
-rw-r--r--slicer/slicer/serializer.h4
-rw-r--r--slicer/slicer/slicer.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/slicer/slicer/serializer.h b/slicer/slicer/serializer.h
index dffa0f6..d89f9aa 100644
--- a/slicer/slicer/serializer.h
+++ b/slicer/slicer/serializer.h
@@ -9,8 +9,8 @@
namespace Slicer {
class Serializer : public IceUtil::Shared {
public:
- virtual void Deserialize(const boost::filesystem::path &, ModelPartPtr) = 0;
- virtual void Serialize(const boost::filesystem::path &, ModelPartPtr) = 0;
+ virtual void Deserialize(ModelPartPtr) = 0;
+ virtual void Serialize(ModelPartPtr) = 0;
};
typedef IceUtil::Handle<Serializer> SerializerPtr;
}
diff --git a/slicer/slicer/slicer.h b/slicer/slicer/slicer.h
index 0900bf9..01b040d 100644
--- a/slicer/slicer/slicer.h
+++ b/slicer/slicer/slicer.h
@@ -12,8 +12,8 @@ namespace Slicer {
Deserialize(const boost::filesystem::path & path)
{
IceUtil::Handle<ModelPartForClassRoot<IceInternal::Handle<Object>>> root = new ModelPartForClassRoot<IceInternal::Handle<Object>>();
- SerializerPtr serializer = new Serializer();
- serializer->Deserialize(path, root);
+ SerializerPtr serializer = new Serializer(path);
+ serializer->Deserialize(root);
return root->GetModel();
}
@@ -22,8 +22,8 @@ namespace Slicer {
Serialize(IceInternal::Handle<Object> object, const boost::filesystem::path & path)
{
IceUtil::Handle<ModelPartForClassRoot<IceInternal::Handle<Object>>> root = new ModelPartForClassRoot<IceInternal::Handle<Object>>(object);
- SerializerPtr serializer = new Serializer();
- serializer->Serialize(path, root);
+ SerializerPtr serializer = new Serializer(path);
+ serializer->Serialize(root);
}
}