22 #include <odinpara/ldrbase.h>
50 LDRstring (
const STD_string& ss,
const STD_string& name=
"");
56 LDRstring (
int i,
const char c=
' ') : STD_string(i,c) {}
61 LDRstring (
const char *charptr) : STD_string(charptr) {}
93 STD_string
get_typeInfo(
bool parx_equivtype=
false)
const {
if(parx_equivtype)
return "char";
return "string";}
95 STD_string* cast(STD_string*) {
return this;}
122 LDRbool(
bool flag,
const STD_string& name=
"");
148 operator bool ()
const {
return val;}
153 STD_string
get_typeInfo(
bool parx_equivtype=
false)
const {
if(parx_equivtype)
return "YesNo";
return "bool";}
155 bool* cast(
bool*) {
return &val;}
182 LDRenum(
const STD_string& first_entry,
const STD_string& name=
"");
235 operator int ()
const;
240 operator STD_string ()
const;
245 bool operator == (
const STD_string& s)
const {
return (
operator STD_string ())==s;}
250 bool operator == (
const char* s)
const {
return (
operator STD_string ())==STD_string(s);}
260 bool operator != (
const STD_string& s)
const {
return (
operator STD_string ())!=s;}
265 bool operator != (
const char* s)
const {
return (
operator STD_string ())!=STD_string(s);}
276 unsigned int n_items()
const {
return entries.size();}
281 const STD_string&
get_item(
unsigned int index)
const;
303 STD_map<int,STD_string> entries;
304 STD_map<int,STD_string>::const_iterator actual;
306 STD_string parxtype_cache;
345 operator bool ()
const;
355 STD_string
get_typeInfo(
bool parx_equivtype=
false)
const {
return "action";}
402 LDRfileName (
const STD_string& filename,
const STD_string& name=
"");
474 STD_string
get_typeInfo(
bool parx_equivtype=
false)
const {
return "fileName";}
480 static void normalize(
const STD_string& fname,
bool dir, STD_string& result, STD_string& result_dirname, STD_string& result_basename, STD_string& result_suffix);
482 void common_init() {dir=
false;}
484 STD_string defaultdir;
485 STD_string dirname_cache;
486 STD_string basename_cache;
487 STD_string suffix_cache;
513 LDRformula (
const STD_string& formula,
const STD_string& name=
"");
541 STD_string
get_typeInfo(
bool parx_equivtype=
false)
const {
return "formula";}
LDRaction(const LDRaction &ja)
STD_string get_typeInfo(bool parx_equivtype=false) const
LDRaction(bool init_state, const STD_string &name="")
LDRbase * create_copy() const
bool parsevalstring(const STD_string &parstring, const LDRserBase *ser=0)
STD_string printvalstring(const LDRserBase *ser=0) const
LDRaction & trigger_action()
LDRaction & operator=(const LDRaction &ja)
virtual LDRbase & set_filemode(fileMode file_mode)
LDRbase * create_copy() const
LDRbool(const LDRbool &jb)
LDRbool(bool flag, const STD_string &name="")
bool parsevalstring(const STD_string &parstring, const LDRserBase *ser=0)
LDRbool & operator=(bool flag)
STD_string printvalstring(const LDRserBase *ser=0) const
STD_string get_typeInfo(bool parx_equivtype=false) const
unsigned int n_items() const
LDRbase * create_copy() const
const STD_string & get_item(unsigned int index) const
svector get_alternatives() const
LDRenum & operator=(const char *item)
bool parsevalstring(const STD_string &parstring, const LDRserBase *ser=0)
bool operator==(const STD_string &s) const
bool operator!=(const STD_string &s) const
LDRenum(const LDRenum &je)
LDRenum & set_item_index(unsigned int index)
LDRenum(const STD_string &first_entry, const STD_string &name="")
STD_string printvalstring(const LDRserBase *ser=0) const
STD_string get_typeInfo(bool parx_equivtype=false) const
LDRenum & set_actual(int index)
LDRenum & add_item(const STD_string &item, int index=-1)
unsigned int get_item_index() const
LDRenum & set_actual(const STD_string &item)
STD_string get_typeInfo(bool parx_equivtype=false) const
STD_string get_basename_nosuffix() const
LDRfileName & set_dir(bool flag)
LDRbase * create_copy() const
LDRfileName & set_suffix(const STD_string &suff)
STD_string get_suffix() const
bool parsevalstring(const STD_string &parstring, const LDRserBase *ser=0)
LDRfileName & set_defaultdir(const STD_string &defdir)
LDRfileName(const LDRfileName &jf)
LDRfileName(const STD_string &filename, const STD_string &name="")
STD_string get_dirname() const
STD_string get_defaultdir() const
LDRfileName & operator=(const STD_string &filename)
STD_string get_basename() const
LDRstring(int i, const char c=' ')
STD_string get_parx_code(parxCodeType type) const
bool parsevalstring(const STD_string &parstring, const LDRserBase *ser=0)
LDRstring & operator=(const STD_string &ss)
LDRbase * create_copy() const
STD_string printvalstring(const LDRserBase *ser=0) const
LDRstring(const LDRstring &str)
STD_string get_typeInfo(bool parx_equivtype=false) const
LDRstring(const STD_string &ss, const STD_string &name="")
LDRstring(const char *charptr)
friend STD_ostream & operator<<(STD_ostream &s, const LDRstring &t)
const STD_string & get_label() const
STD_string toupperstr(const STD_string &s)