21 #include <tjutils/tjstatic.h>
22 #include <tjutils/tjlist.h>
24 #include <odinpara/ldrbase.h>
50 LDRblock(
const STD_string& title=
"Parameter List");
91 STD_string
printval(
const STD_string& parameterName,
bool append_unit=
false)
const;
98 bool parseval(
const STD_string& parameterName,
const STD_string& value);
210 bool compare(
const LDRblock& rhs,
const STD_list<STD_string>* exclude=0,
double accuracy=0.0)
const;
214 LDRblock& parse_cmdline_options(
int argc,
char *argv[],
bool modify=
true);
215 STD_map<STD_string,STD_string> get_cmdline_options()
const;
216 STD_string get_cmdline_usage(
const STD_string& lineprefix=
"")
const;
221 static void init_static();
222 static void destroy_static();
234 STD_string
get_typeInfo(
bool parx_equivtype=
false)
const {
return "LDRblock";}
255 int parse_ldr_list(STD_string& parstring,
const LDRserBase& serializer);
257 STD_list<LDRbase*>* garbage;
LDRbase & set_parmode(parameterMode parameter_mode)
STD_string printvalstring(const LDRserBase *ser=0) const
int parseblock(const STD_string &source, const LDRserBase &serializer=LDRserJDX())
LDRblock & merge(LDRblock &block, bool onlyUserPars=true)
LDRblock & unmerge(LDRblock &block)
LDRbase & operator[](unsigned int i)
bool parameter_exists(const STD_string &ldrlabel) const
bool operator==(const LDRblock &rhs) const
bool compare(const LDRblock &rhs, const STD_list< STD_string > *exclude=0, double accuracy=0.0) const
STD_string print(const LDRserBase &serializer=LDRserJDX()) const
bool parse(STD_string &parstring, const LDRserBase &serializer)
STD_ostream & print2stream(STD_ostream &os, const LDRserBase &serializer) const
STD_string printval(const STD_string ¶meterName, bool append_unit=false) const
int load(const STD_string &filename, const LDRserBase &serializer=LDRserJDX())
LDRblock & append_member(LDRbase &ldr, const STD_string ldrlabel="")
LDRblock & operator=(const LDRblock &block)
bool parseval(const STD_string ¶meterName, const STD_string &value)
LDRblock & append_copy(const LDRbase &src)
STD_string get_parx_code(parxCodeType type) const
bool operator<(const LDRblock &rhs) const
LDRblock & set_prefix(const STD_string &prefix)
LDRbase * create_copy() const
LDRblock & create_copy(const LDRblock &src)
LDRbase & get_parameter_by_id(int id)
unsigned int numof_pars() const
STD_string get_typeInfo(bool parx_equivtype=false) const
LDRblock(const LDRblock &block)
LDRblock & copy_ldr_vals(const LDRblock &src)
bool parsevalstring(const STD_string &, const LDRserBase *ser=0)
LDRblock(const STD_string &title="Parameter List")
LDRbase & set_filemode(fileMode file_mode)
LDRbase * get_parameter(const STD_string &ldrlabel)
LDRblock & set_embedded(bool embedded)
int write(const STD_string &filename, const LDRserBase &serializer=LDRserJDX()) const
STD_list< P >::const_iterator constiter