|
Core Library
1.7.0.0
Library containing core utilities and tools for threading, networking, logging, INI and CSV file management etc.
|
Class to manage a section key line in an INI file. More...
#include <IniFileLines.h>
Public Member Functions | |
| KeyLine ()=default | |
| Default constructor. | |
| KeyLine (const KeyLine &)=default | |
| Copy constructor. | |
| KeyLine (const std::string &key, const std::string &value) | |
| Initialising constructor. | |
| ~KeyLine () override=default | |
| Virtual destructor. | |
| KeyLine & | operator= (const KeyLine &)=default |
| Copy assignment operator. | |
| KeyLine (KeyLine &&)=default | |
| Move constructor. | |
| KeyLine & | operator= (KeyLine &&)=default |
| Move assignment operator. | |
| const std::string & | Key () const |
| Get the key. More... | |
| const std::string & | Value () const |
| Get the value. More... | |
| void | Value (const std::string &value) |
| Set the value. More... | |
| void | Value (std::string &&value) |
| Set the value. More... | |
| void | Print (std::ostream &os, bool addLineFeed=true) const override |
| Virtual Print function. More... | |
Public Member Functions inherited from core_lib::ini_file::if_private::Line | |
| Line (Line const &)=default | |
| Line (Line &&)=default | |
| Line & | operator= (Line const &)=default |
| Line & | operator= (Line &&)=default |
Private Attributes | |
| std::string | m_key {} |
| The key. | |
| std::string | m_value {} |
| The value. | |
Class to manage a section key line in an INI file.
| const std::string & core_lib::ini_file::if_private::KeyLine::Key | ( | ) | const |
Get the key.
|
overridevirtual |
Virtual Print function.
| [in,out] | os | - Stream to write to. |
| [in] | addLineFeed | - (Optional) add a line feed. |
Implements core_lib::ini_file::if_private::Line.
| const std::string & core_lib::ini_file::if_private::KeyLine::Value | ( | ) | const |
Get the value.
| void core_lib::ini_file::if_private::KeyLine::Value | ( | const std::string & | value | ) |
Set the value.
| [in] | value | - The value by const reference. |
| void core_lib::ini_file::if_private::KeyLine::Value | ( | std::string && | value | ) |
Set the value.
| [in] | value | - The value by r-value reference. |