ODIN
Public Member Functions | List of all members

#include <ldrtypes.h>

Inheritance diagram for LDRformula:
Inheritance graph
[legend]

Public Member Functions

 LDRformula ()
 
 LDRformula (const STD_string &formula, const STD_string &name="")
 
 LDRformula (const LDRformula &jf)
 
LDRformulaoperator= (const STD_string &formula)
 
LDRformulaoperator= (const LDRformula &jf)
 
LDRformulaset_syntax (const STD_string &syn)
 
STD_string get_syntax () const
 
STD_string get_typeInfo (bool parx_equivtype=false) const
 
LDRbasecreate_copy () const
 
- Public Member Functions inherited from LDRstring
 LDRstring ()
 
 LDRstring (const STD_string &ss, const STD_string &name="")
 
 LDRstring (int i, const char c=' ')
 
 LDRstring (const char *charptr)
 
 LDRstring (const LDRstring &str)
 
LDRstringoperator= (const STD_string &ss)
 
LDRstringoperator= (const char *charptr)
 
LDRstringoperator= (const LDRstring &ss)
 
bool parsevalstring (const STD_string &parstring, const LDRserBase *ser=0)
 
STD_string printvalstring (const LDRserBase *ser=0) const
 
STD_string get_parx_code (parxCodeType type) const
 
- Public Member Functions inherited from LDRbase
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 bool parse (STD_string &parstring, const LDRserBase &serializer=LDRserJDX())
 
virtual int load (const STD_string &filename, const LDRserBase &serializer=LDRserJDX())
 
virtual double get_minval () const
 
virtual double get_maxval () const
 
bool has_minmax () const
 
const STD_string & get_description () const
 
LDRbaseset_description (const STD_string &descr)
 
virtual svector get_alternatives () const
 
const STD_string & get_unit () const
 
LDRbaseset_unit (const STD_string &un)
 
virtual parameterMode get_parmode () const
 
virtual LDRbaseset_parmode (parameterMode parameter_mode)
 
virtual fileMode get_filemode () const
 
virtual LDRbaseset_filemode (fileMode file_mode)
 
virtual GuiProps get_gui_props () const
 
virtual LDRbaseset_gui_props (const GuiProps &)
 
JcampDxProps get_jdx_props () const
 
LDRbaseset_jdx_props (const JcampDxProps &jp)
 
- Public Member Functions inherited from Labeled
 Labeled (const STD_string &label="unnamed")
 
Labeledset_label (const STD_string &label)
 
const STD_string & get_label () const
 
Labeledoperator= (const Labeled &l)
 

Detailed Description

Labeled Data Record (LDR) class for representing mathematic formulas

Definition at line 499 of file ldrtypes.h.

Constructor & Destructor Documentation

◆ LDRformula() [1/3]

LDRformula::LDRformula ( )
inline

Default constructor

Definition at line 506 of file ldrtypes.h.

◆ LDRformula() [2/3]

LDRformula::LDRformula ( const STD_string &  formula,
const STD_string &  name = "" 
)

Constructor with the following arguments:

  • formula: Initial value for the formula
  • name: The label of the parameter

◆ LDRformula() [3/3]

LDRformula::LDRformula ( const LDRformula jf)
inline

Copy constructor

Definition at line 518 of file ldrtypes.h.

Member Function Documentation

◆ create_copy()

LDRbase* LDRformula::create_copy ( ) const
inlinevirtual

Returns a deep copy of the parameter

Reimplemented from LDRstring.

Definition at line 542 of file ldrtypes.h.

◆ get_syntax()

STD_string LDRformula::get_syntax ( ) const
inline

Returns a string describing the formulas syntax

Definition at line 538 of file ldrtypes.h.

◆ get_typeInfo()

STD_string LDRformula::get_typeInfo ( bool  parx_equivtype = false) const
inlinevirtual

Returns a string describing the type of the parameter. If 'parx_equivtype' is 'true', returns the equivalent PARX parameter type

Reimplemented from LDRstring.

Definition at line 541 of file ldrtypes.h.

◆ operator=() [1/2]

LDRformula& LDRformula::operator= ( const LDRformula jf)

Copy assignment

◆ operator=() [2/2]

LDRformula& LDRformula::operator= ( const STD_string &  formula)
inline

Assignment from a formula string

Definition at line 523 of file ldrtypes.h.

◆ set_syntax()

LDRformula& LDRformula::set_syntax ( const STD_string &  syn)
inline

Sets a string describing the formulas syntax

Definition at line 533 of file ldrtypes.h.


The documentation for this class was generated from the following file: