NOMAD Source
Version 4.0.0 Beta
|
Go to the documentation of this file.
53 #ifndef __NOMAD400_ParameterEntry__
54 #define __NOMAD400_ParameterEntry__
56 #include "../Util/utils.hpp"
58 #include "../nomad_nsbegin.hpp"
74 std::shared_ptr<ParameterEntry>
_next;
143 std::shared_ptr<ParameterEntry>
getNext (
void )
const {
return _next; }
202 void display(std::ostream &out)
const;
213 bool operator() (
const std::shared_ptr<ParameterEntry> p1 ,
const std::shared_ptr<ParameterEntry> p2 )
const
232 #include "../nomad_nsend.hpp"
235 #endif // __NOMAD400_ParameterEntry__
const int & getLine(void) const
Access to the line number for this parameter in the parameter file.
void setUnique(bool u)
Set the _unique flag.
ParameterEntry(const std::string &entry, bool removeComments=true)
Constructor.
std::string _paramFile
File from which this parameter was read.
size_t getNbValues(void) const
Access to the number of values of the parameter.
void display(std::ostream &out) const
Display.
virtual ~ParameterEntry(void)
Destructor.
void setHasBeenInterpreted(void)
Set the _hasBeenInterpreted flag. to true.
const std::string & getParamFile(void) const
Access to the parameter file of the parameter.
std::shared_ptr< ParameterEntry > getNext(void) const
Access to another ParameterEntry.
bool isUnique(void) const
Access to the _unique flag.
bool _ok
If the parameter is valid.
Allows the comparison of two ParameterEntry objects.
bool operator<(const ParameterEntry &p) const
Comparison with another entry.
std::list< std::string > _values
List of values for the parameter.
std::ostream & operator<<(std::ostream &out, const ParameterEntry &e)
Display a ParameterEntry object.
std::shared_ptr< ParameterEntry > _next
Acces to the next parameter.
bool hasBeenInterpreted(void) const
Access to the _hasBeenInterpreted flag.
void setNext(std::shared_ptr< ParameterEntry > p)
Set the _next pointer.
void setParamFile(const std::string ¶mFile)
Set the name of the parameter file _paramFile.
void setLine(int line)
Set the line _line for this parameter in the parameter file.
int _line
Line for this parameter in _paramFile.
bool _unique
If the parameter is unique.
const std::string & getName(void) const
Access to the name of the parameter.
bool operator()(const std::shared_ptr< ParameterEntry > p1, const std::shared_ptr< ParameterEntry > p2) const
Comparison of two ParameterEntry objects.
void removeComments(std::string &line)
const std::list< std::string > & getValues(void) const
Access to the parameter values.
bool isOk(void) const
Access to the _ok flag.
std::string getAllValues(void) const
bool _hasBeenInterpreted
If the parameter has been interpreted.
std::string _name
Name of the parameter.