diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2002-12-28 04:37:42 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2002-12-28 04:37:42 +0000 |
commit | 562dcc336797951b2a8707413aa44177484c9f2a (patch) | |
tree | 162adc736d99b6edf4c03e50061831006ac0f5c4 /externals/grill/vasp/source/obj_split.cpp | |
parent | 7b0d76e0a6c7b58f6a7a373755c46bde52ebea79 (diff) |
""
svn path=/trunk/; revision=309
Diffstat (limited to 'externals/grill/vasp/source/obj_split.cpp')
-rw-r--r-- | externals/grill/vasp/source/obj_split.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/externals/grill/vasp/source/obj_split.cpp b/externals/grill/vasp/source/obj_split.cpp index e308e19c..8a3dda94 100644 --- a/externals/grill/vasp/source/obj_split.cpp +++ b/externals/grill/vasp/source/obj_split.cpp @@ -95,7 +95,7 @@ FLEXT_LIB_V("vasp, vasp.split",vasp_split) class vasp_join: public vasp_tx { - FLEXT_HEADER(vasp_join,vasp_tx) + FLEXT_HEADER_S(vasp_join,vasp_tx,Setup) public: vasp_join(I argc,t_atom *argv): @@ -115,12 +115,15 @@ public: AddInAnything(cnt); AddOutAnything(); - - FLEXT_ADDMETHOD_(0,"reset",m_reset); } ~vasp_join() { if(vi) delete[] vi; } + static V Setup(t_class *c) + { + FLEXT_CADDMETHOD_(c,0,"reset",m_reset); + } + virtual Vasp *x_work() { CVasp *ret = new CVasp(ref); for(I i = 0; i < cnt-1; ++i) if(vi[i]) *ret += *vi[i]; @@ -231,7 +234,7 @@ FLEXT_LIB_V("vasp, vasp.spit",vasp_spit) class vasp_gather: public vasp_tx { - FLEXT_HEADER(vasp_gather,vasp_tx) + FLEXT_HEADER_S(vasp_gather,vasp_tx,Setup) public: vasp_gather(I argc,t_atom *argv) @@ -246,12 +249,13 @@ public: AddInAnything(2); AddOutAnything(); - - FLEXT_ADDMETHOD_(0,"reset",m_reset); - FLEXT_ADDMETHOD_(1,"vasp",m_add); } - ~vasp_gather() { } + static V Setup(t_class *c) + { + FLEXT_CADDMETHOD_(c,0,"reset",m_reset); + FLEXT_CADDMETHOD_(c,1,"vasp",m_add); + } virtual Vasp *x_work() { |