ODIN
|
#include <ldrbase.h>
Public Member Functions | |
virtual STD_string | print (const LDRserBase &serializer=LDRserJDX()) const |
virtual STD_ostream & | print2stream (STD_ostream &os, const LDRserBase &serializer) const |
virtual int | write (const STD_string &filename, const LDRserBase &serializer=LDRserJDX()) const |
virtual STD_string | printvalstring (const LDRserBase *ser=0) const =0 |
virtual bool | parse (STD_string &parstring, const LDRserBase &serializer=LDRserJDX()) |
virtual int | load (const STD_string &filename, const LDRserBase &serializer=LDRserJDX()) |
virtual bool | parsevalstring (const STD_string &, const LDRserBase *ser=0)=0 |
virtual STD_string | get_typeInfo (bool parx_equivtype=false) const =0 |
virtual double | get_minval () const |
virtual double | get_maxval () const |
bool | has_minmax () const |
virtual LDRbase * | create_copy () const =0 |
const STD_string & | get_description () const |
LDRbase & | set_description (const STD_string &descr) |
virtual svector | get_alternatives () const |
const STD_string & | get_unit () const |
LDRbase & | set_unit (const STD_string &un) |
virtual parameterMode | get_parmode () const |
virtual LDRbase & | set_parmode (parameterMode parameter_mode) |
virtual fileMode | get_filemode () const |
virtual LDRbase & | set_filemode (fileMode file_mode) |
virtual GuiProps | get_gui_props () const |
virtual LDRbase & | set_gui_props (const GuiProps &) |
virtual STD_string | get_parx_code (parxCodeType type) const |
JcampDxProps | get_jdx_props () const |
LDRbase & | set_jdx_props (const JcampDxProps &jp) |
Public Member Functions inherited from Labeled | |
Labeled (const STD_string &label="unnamed") | |
Labeled & | set_label (const STD_string &label) |
const STD_string & | get_label () const |
Labeled & | operator= (const Labeled &l) |
Friends | |
class | LDRwidget |
class | LDRblock |
STD_ostream & | operator<< (STD_ostream &s, const LDRbase &value) |
This is the (virtual) base class that carries the Labeled Data Record (LDR) specific interface, i.e. all common functions that are specific to LDR. Most of the elements show a simple default behaviour that will be overwritten by a reasonable behaviour in the derived classes.
|
pure virtual |
Returns a deep copy of the parameter
Implemented in LDRrecoValList, LDRformula, LDRfileName, LDRaction, LDRenum, LDRbool, LDRstring, LDRnumber< T >, LDRnumber< double >, LDRnumber< float >, LDRnumber< int >, LDRblock, LDRtriple, LDRarray< A, J >, LDRarray< iarray, LDRint >, LDRarray< carray, LDRcomplex >, LDRarray< sarray, LDRstring >, LDRarray< darray, LDRdouble >, and LDRarray< farray, LDRfloat >.
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Returns the properties of axis display in the GUI, only useful for LDRarrays
Reimplemented in LDRarray< A, J >, LDRarray< iarray, LDRint >, LDRarray< carray, LDRcomplex >, LDRarray< sarray, LDRstring >, LDRarray< darray, LDRdouble >, and LDRarray< farray, LDRfloat >.
|
inline |
|
inlinevirtual |
Returns the maximum allowed value of the parameter Only used when editing the parameter in a GUI
Reimplemented in LDRnumber< T >, LDRnumber< double >, LDRnumber< float >, and LDRnumber< int >.
|
inlinevirtual |
Returns the minimum allowed value of the parameter. Only used when editing the parameter in a GUI
Reimplemented in LDRnumber< T >, LDRnumber< double >, LDRnumber< float >, and LDRnumber< int >.
|
inlinevirtual |
|
virtual |
Returns C code that can be used together with the PARX(Bruker) compiler
Reimplemented in LDRstring, LDRnumber< T >, LDRnumber< double >, LDRnumber< float >, LDRnumber< int >, LDRblock, LDRarray< A, J >, LDRarray< iarray, LDRint >, LDRarray< carray, LDRcomplex >, LDRarray< sarray, LDRstring >, LDRarray< darray, LDRdouble >, and LDRarray< farray, LDRfloat >.
|
pure virtual |
Returns a string describing the type of the parameter. If 'parx_equivtype' is 'true', returns the equivalent PARX parameter type
Implemented in LDRrecoValList, LDRformula, LDRfileName, LDRaction, LDRenum, LDRbool, LDRstring, LDRnumber< T >, LDRnumber< double >, LDRnumber< float >, LDRnumber< int >, LDRblock, LDRtriple, LDRarray< A, J >, LDRarray< iarray, LDRint >, LDRarray< carray, LDRcomplex >, LDRarray< sarray, LDRstring >, LDRarray< darray, LDRdouble >, and LDRarray< farray, LDRfloat >.
|
inline |
|
inline |
|
virtual |
Loads the parameter(s) from a file using format 'serializer'. In case of calling this function of a single paramter, the file is searched for this parameter and the value is assigned. In case of a parameter block, all parameter values are taken from the file. The return value is the number of parameters which are successfully parsed. If an error occurs, -1 is returned.
Reimplemented in OdinPulse, Sample, LDRblock, LDRarray< A, J >, LDRarray< iarray, LDRint >, LDRarray< carray, LDRcomplex >, LDRarray< sarray, LDRstring >, LDRarray< darray, LDRdouble >, LDRarray< farray, LDRfloat >, and ImageSet.
|
virtual |
Parses the parameter using format 'serializer'. For blocks, a re-implemented 'parse' function is called. Returns 'true' if the parameter was parsed successfully.
Reimplemented in LDRblock.
|
pure virtual |
Parses and assigns the value in the given string, optionally using format 'ser'
Implemented in LDRrecoValList, LDRfileName, LDRaction, LDRenum, LDRbool, LDRstring, LDRnumber< T >, LDRnumber< double >, LDRnumber< float >, LDRnumber< int >, LDRarray< A, J >, LDRarray< iarray, LDRint >, LDRarray< carray, LDRcomplex >, LDRarray< sarray, LDRstring >, LDRarray< darray, LDRdouble >, LDRarray< farray, LDRfloat >, and LDRblock.
|
virtual |
This function returns the parameter in ASCII using format 'serializer'
Reimplemented in LDRblock.
|
virtual |
Passes the parameter in ASCII format to the ostream 'os' using format 'serializer'
Reimplemented in LDRrecoValList, LDRblock, LDRarray< A, J >, LDRarray< iarray, LDRint >, LDRarray< carray, LDRcomplex >, LDRarray< sarray, LDRstring >, LDRarray< darray, LDRdouble >, and LDRarray< farray, LDRfloat >.
|
pure virtual |
Returns the value of the parameter as a string, optionally using format 'ser'
Implemented in LDRrecoValList, LDRaction, LDRenum, LDRbool, LDRstring, LDRnumber< T >, LDRnumber< double >, LDRnumber< float >, LDRnumber< int >, LDRblock, LDRarray< A, J >, LDRarray< iarray, LDRint >, LDRarray< carray, LDRcomplex >, LDRarray< sarray, LDRstring >, LDRarray< darray, LDRdouble >, and LDRarray< farray, LDRfloat >.
|
inline |
Sets the properties of axis display in the GUI, only useful for LDRarrays
Reimplemented in LDRarray< A, J >, LDRarray< iarray, LDRint >, LDRarray< carray, LDRcomplex >, LDRarray< sarray, LDRstring >, LDRarray< darray, LDRdouble >, and LDRarray< farray, LDRfloat >.
|
inline |
|
inlinevirtual |
|
inline |
|
virtual |
Writes the parameter(s) to file using format 'serializer'. In case of calling this function of a single paramter, the file will consist of only this parameter. In case of a parameter block, all parameter values are written to the file. If an error occurs, -1 is returned.
Reimplemented in LDRblock, LDRarray< A, J >, LDRarray< iarray, LDRint >, LDRarray< carray, LDRcomplex >, LDRarray< sarray, LDRstring >, LDRarray< darray, LDRdouble >, and LDRarray< farray, LDRfloat >.
|
friend |