diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2002-12-05 05:36:32 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2002-12-05 05:36:32 +0000 |
commit | 60ee6bb60b11bbfbccf56f335c9c6213e6daa79d (patch) | |
tree | 99b0c72c60aeba5d1a0489aae9edd16f371d965c /externals/grill/vasp/source/obj_frames.cpp | |
parent | bbd9d289d152f6ef085dec680f0b1611c29f0e32 (diff) |
""
svn path=/trunk/; revision=278
Diffstat (limited to 'externals/grill/vasp/source/obj_frames.cpp')
-rw-r--r-- | externals/grill/vasp/source/obj_frames.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/externals/grill/vasp/source/obj_frames.cpp b/externals/grill/vasp/source/obj_frames.cpp index fb618e51..c50d5019 100644 --- a/externals/grill/vasp/source/obj_frames.cpp +++ b/externals/grill/vasp/source/obj_frames.cpp @@ -8,6 +8,7 @@ WARRANTIES, see the file, "license.txt," in this distribution. */ +#include "main.h" #include "classes.h" #include "util.h" @@ -31,7 +32,7 @@ class vasp_frames: FLEXT_HEADER(vasp_frames,vasp_tx) public: - vasp_frames(I argc,t_atom *argv): + vasp_frames(I argc,t_atom *argv,BL abs = true): frms(0),setf(false) { if(argc && CanbeFloat(argv[0])) @@ -43,9 +44,9 @@ public: AddInAnything(); AddInFloat(); AddOutAnything(); - SetupInOut(); FLEXT_ADDMETHOD(1,m_arg); + if(abs) FLEXT_ADDATTR_VAR("frames",frms,m_arg); } virtual V m_arg(F f) @@ -68,6 +69,8 @@ protected: private: FLEXT_CALLBACK_F(m_arg); + FLEXT_CALLSET_I(m_arg); + FLEXT_ATTRGET_I(frms); }; FLEXT_LIB_V("vasp, vasp.frames vasp.f",vasp_frames) @@ -128,9 +131,10 @@ class vasp_mframes: public: vasp_mframes(I argc,t_atom *argv): - vasp_frames(argc,argv) + vasp_frames(argc,argv,false) { if(argc && CanbeFloat(argv[0])) m_arg(GetAFloat(argv[0])); + FLEXT_ADDATTR_VAR("factor",factor,m_arg); } virtual Vasp *x_work() @@ -150,6 +154,8 @@ public: protected: F factor; + FLEXT_CALLSET_F(m_arg); + FLEXT_ATTRGET_F(factor); }; FLEXT_LIB_V("vasp, vasp.frames* vasp.f*",vasp_mframes) |