Changeset 222 for cpp/frams/vm


Ignore:
Timestamp:
04/11/14 23:39:36 (11 years ago)
Author:
Maciej Komosinski
Message:

"Distributed" deserializable class registry, so that ExtValue? does not depend on so many other classes

Location:
cpp/frams/vm/classes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/vm/classes/3dobject.cpp

    r197 r222  
    203203ExtObject Pt3D_Ext::makeDynamicObject(Pt3D_Ext* p)
    204204{return ExtObject(&getStaticParam(),p);}
     205
     206ExtObject Pt3D_Ext::makeDynamicObject(const Pt3D& p)
     207{
     208Pt3D_Ext *pe=new Pt3D_Ext(p);
     209return ExtObject(&getStaticParam(),pe);
     210}
    205211
    206212//////////////////////////////////////
     
    571577return (ReferenceObj*)v.getObjectTarget(getStaticParam().getName());
    572578}
     579
     580/////////////
     581
     582REGISTER_DESERIALIZABLE(Pt3D_Ext)
     583REGISTER_DESERIALIZABLE(Orient_Ext)
  • cpp/frams/vm/classes/3dobject.h

    r197 r222  
    3838static ExtObject makeStaticObject(Pt3D* p);
    3939static ExtObject makeDynamicObject(Pt3D_Ext* p);
     40static ExtObject makeDynamicObject(const Pt3D& p);
    4041static Pt3D_Ext* fromObject(const ExtValue& v);
    4142static Param& getStaticParam();
  • cpp/frams/vm/classes/genoobj.cpp

    r219 r222  
    137137        ret->setEmpty();
    138138}
     139
     140/////////////
     141
     142REGISTER_DESERIALIZABLE(GenoObj)
Note: See TracChangeset for help on using the changeset viewer.