A variable with value possibly also in a section like "Pixel=1024". Variable and value are separated by a "=". More...
#include <IniKey.h>
Public Member Functions | |
Key (const std::string &sCharLine) | |
virtual | ~Key () |
std::string | getKeyName () const |
std::string | getKeyValue () const |
void | setKeyName (const std::string &sName) |
void | setKeyValue (const std::string &sValue) |
![]() | |
Line (const std::string &sCharLine) | |
virtual | ~Line () |
std::size_t | getLineSizeWithEOL () const |
std::string | getText () const |
LINE_TYPE | getType () const |
void | setText (std::string sCharLine) |
Protected Member Functions | |
Key () | |
Key (const std::string &sCharLine, LINE_TYPE eLineType) | |
![]() | |
Line () | |
Line (const std::string &sCharLine, LINE_TYPE eLineType) | |
char * | getTextWithEOL () const |
Private Member Functions | |
Key (const Key &) | |
Key & | operator= (const Key &) |
Friends | |
class | LineFactory |
Additional Inherited Members | |
![]() | |
LINE_TYPE | m_eLineType |
LineFactory | m_LineFactory |
std::string | m_sText |
A variable with value possibly also in a section like "Pixel=1024". Variable and value are separated by a "=".
ini::Key::Key | ( | const std::string & | sCharLine | ) |
Constructor with parameter passing.
[in] | sCharLine | The text of the entry. |
Referenced by Key(), and operator=().
|
virtual |
Destructor.
|
protected |
This constructor with parameter passing is not publicly available.
[in] | sCharLine | The text of the entry. |
[in] | eLineType | The type of the entry, the calling instance must have determined the correct type, here IniVARIABLE. |
|
protected |
The standard constructor is not publicly available.
std::string ini::Key::getKeyName | ( | ) | const |
Returns the name of the variable.
std::string ini::Key::getKeyValue | ( | ) | const |
Returns the value of the variable.
The assignment operator is not available.
References Key().
void ini::Key::setKeyName | ( | const std::string & | sName | ) |
Sets the name of the variable.
[in] | sName | The name as string without appended "=". |
void ini::Key::setKeyValue | ( | const std::string & | sValue | ) |
Sets the value of the variable.
[in] | sValue | The value as string without leading "=". |
|
friend |
References LineFactory.
Referenced by LineFactory.