UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
UnsignedInt_Parameter Class Reference
Inheritance diagram for UnsignedInt_Parameter:
Int_Parameter Parameter

Public Member Functions

 UnsignedInt_Parameter (const char *str)
 
void set_value (const char *str) throw (param_exception)
 
- Public Member Functions inherited from Int_Parameter
 Int_Parameter (const char *name)
 
int get_value () const
 
- Public Member Functions inherited from Parameter
const std::string & get_name () const
 
bool is_inited () const
 
bool is_unique () const
 

Additional Inherited Members

- Protected Member Functions inherited from Parameter
 Parameter (const char *name, bool unique=true)
 
- Protected Attributes inherited from Int_Parameter
int value
 
- Protected Attributes inherited from Parameter
bool is_init
 
bool is_uniq
 
const TextFileParserparser
 

Member Function Documentation

void UnsignedInt_Parameter::set_value ( const char *  strint)
throw (param_exception
)
inlinevirtual

Reads value from given char string. Here we need to parse integer value from string. Note, that at this moment strint has no spaces or tabs (or other predefined delimeters) at it's begin and end. If there is something wrong with given string we need to throw param_exception. Each specific Parameter subclass has value field of proper type. For this class type of this field must be int. After parsing you will able to get this value by method get_value(). (See example.cpp).

Reimplemented from Int_Parameter.


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