A variable with value possibly also in a section like "Pixel=1024". Variable and value are separated by a "=".
More...
#include <IniKey.h>
A variable with value possibly also in a section like "Pixel=1024". Variable and value are separated by a "=".
- Author
- Helmut Jakoby
- Copyright
- © 1995 Helmut Jakoby
◆ Key() [1/4]
ini::Key::Key |
( |
const std::string & | sCharLine | ) |
|
Constructor with parameter passing.
- Parameters
-
[in] | sCharLine | The text of the entry. |
◆ ~Key()
virtual ini::Key::~Key |
( |
| ) |
|
|
virtual |
◆ Key() [2/4]
ini::Key::Key |
( |
const std::string & | sCharLine, |
|
|
LINE_TYPE | eLineType ) |
|
protected |
This constructor with parameter passing is not publicly available.
- Parameters
-
[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. |
◆ Key() [3/4]
The standard constructor is not publicly available.
◆ Key() [4/4]
ini::Key::Key |
( |
const Key & | | ) |
|
|
private |
The copy constructor is not available.
◆ getKeyName()
std::string ini::Key::getKeyName |
( |
| ) |
const |
Returns the name of the variable.
- Returns
- The variable name as string without appended "=".
◆ getKeyValue()
std::string ini::Key::getKeyValue |
( |
| ) |
const |
Returns the value of the variable.
- Returns
- The value as string without leading "=".
◆ operator=()
Key & ini::Key::operator= |
( |
const Key & | | ) |
|
|
private |
The assignment operator is not available.
◆ setKeyName()
void ini::Key::setKeyName |
( |
const std::string & | sName | ) |
|
Sets the name of the variable.
- Parameters
-
[in] | sName | The name as string without appended "=". |
- Note
- If the INI entry was previously "Resolution=1024" and the variable name was changed to "Pixel", the new INI entry is "Pixel=1024".
◆ setKeyValue()
void ini::Key::setKeyValue |
( |
const std::string & | sValue | ) |
|
Sets the value of the variable.
- Parameters
-
[in] | sValue | The value as string without leading "=". |
- Note
- If the INI entry was previously "Resolution=1024" and the value of the variable was changed to "640", the new INI entry is "Resolution=640".
◆ LineFactory
The documentation for this class was generated from the following file: