Public Member Functions | List of all members

#include <ldrtypes.h>

Inheritance diagram for LDRbool:
Inheritance graph

Public Member Functions

 LDRbool ()
 LDRbool (bool flag, const STD_string &name="")
 LDRbool (const LDRbool &jb)
LDRbooloperator= (bool flag)
LDRbooloperator= (const STD_string &s)
LDRbooloperator= (const LDRbool &jb)
 operator bool () const
bool parsevalstring (const STD_string &parstring, const LDRserBase *ser=0)
STD_string printvalstring (const LDRserBase *ser=0) const
STD_string get_typeInfo (bool parx_equivtype=false) const
LDRbasecreate_copy () 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 &)
virtual STD_string get_parx_code (parxCodeType type) const
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 Boolean values

Definition at line 108 of file ldrtypes.h.

Constructor & Destructor Documentation

§ LDRbool() [1/3]

LDRbool::LDRbool ( )

Default constructor

Definition at line 115 of file ldrtypes.h.

§ LDRbool() [2/3]

LDRbool::LDRbool ( bool  flag,
const STD_string &  name = "" 

Constructor with the following arguments:

  • flag: Initial value for the Boolean value
  • name: The label of the parameter

§ LDRbool() [3/3]

LDRbool::LDRbool ( const LDRbool jb)

Copy constructor

Definition at line 127 of file ldrtypes.h.

Member Function Documentation

§ create_copy()

LDRbase* LDRbool::create_copy ( ) const

Returns a deep copy of the parameter

Implements LDRbase.

Definition at line 154 of file ldrtypes.h.

§ get_typeInfo()

STD_string LDRbool::get_typeInfo ( bool  parx_equivtype = false) const

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

Implements LDRbase.

Definition at line 153 of file ldrtypes.h.

§ operator bool()

LDRbool::operator bool ( ) const

type conversion operator of the current value of the parameter

Definition at line 148 of file ldrtypes.h.

§ operator=() [1/3]

LDRbool& LDRbool::operator= ( bool  flag)

Assigns the value of flag to the parameter

Definition at line 132 of file ldrtypes.h.

§ operator=() [2/3]

LDRbool& LDRbool::operator= ( const STD_string &  s)

Assigns the value of s to the parameter, s may contain "yes" or "true" (upper- or lowercase) to indicate a value of true, otherwise false

Definition at line 138 of file ldrtypes.h.

§ operator=() [3/3]

LDRbool& LDRbool::operator= ( const LDRbool jb)

Copy assignment

§ parsevalstring()

bool LDRbool::parsevalstring ( const STD_string &  ,
const LDRserBase ser = 0 

Parses and assigns the value in the given string, optionally using format 'ser'

Implements LDRbase.

§ printvalstring()

STD_string LDRbool::printvalstring ( const LDRserBase ser = 0) const

Returns the value of the parameter as a string, optionally using format 'ser'

Implements LDRbase.

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