![]() |
cpplocate
1.0.0.a8d87a94e3ab
C++ Locator Library
|
#include <C:/Coding-Space/git-repos/cpplocate/source/cpplocate/include/cpplocate/ModuleInfo.h>
Public Member Functions | |
| ModuleInfo () | |
| ModuleInfo (const ModuleInfo &rh) | |
| ModuleInfo (ModuleInfo &&rh) | |
| ~ModuleInfo () | |
| ModuleInfo & | operator= (const ModuleInfo &rh) |
| ModuleInfo & | operator= (ModuleInfo &&rh) |
| bool | load (const std::string &filename) |
| bool | save (const std::string &filename) const |
| void | clear () |
| bool | empty () const |
| const std::map< std::string, std::string > & | values () const |
| std::string | value (const std::string &key, const std::string &defaultValue="") const |
| const std::string & | value (const std::string &key, std::string &defaultValue) const |
| void | setValue (const std::string &key, const std::string &value) |
| void | setValue (std::string &&key, std::string &&value) |
| void | print () const |
| void | print (std::ostream &stream) const |
Description of a module, containing key/value pairs.
| cpplocate::ModuleInfo::ModuleInfo | ( | ) |
Constructor.
| cpplocate::ModuleInfo::ModuleInfo | ( | const ModuleInfo & | rh | ) |
Copy constructor.
| [in] | rh | Right-hand value to copy |
| cpplocate::ModuleInfo::ModuleInfo | ( | ModuleInfo && | rh | ) |
Move constructor.
| [in] | rh | Right-hand value to move |
| cpplocate::ModuleInfo::~ModuleInfo | ( | ) |
Destructor.
| ModuleInfo& cpplocate::ModuleInfo::operator= | ( | const ModuleInfo & | rh | ) |
Copy assignment operator.
| [in] | rh | Right-hand value to copy |
| ModuleInfo& cpplocate::ModuleInfo::operator= | ( | ModuleInfo && | rh | ) |
Move assignment operator.
| [in] | rh | Right-hand value to move |
| bool cpplocate::ModuleInfo::load | ( | const std::string & | filename | ) |
Load module information from file.
| [in] | filename | Filename |
| bool cpplocate::ModuleInfo::save | ( | const std::string & | filename | ) | const |
Save module information to file.
| [in] | filename | Filename |
| void cpplocate::ModuleInfo::clear | ( | ) |
Clear module info.
| bool cpplocate::ModuleInfo::empty | ( | ) | const |
Check if module info is empty.
| const std::map<std::string, std::string>& cpplocate::ModuleInfo::values | ( | ) | const |
Get key/value map.
| std::string cpplocate::ModuleInfo::value | ( | const std::string & | key, |
| const std::string & | defaultValue = "" |
||
| ) | const |
Get value.
| [in] | key | Key name |
| [in] | defaultValue | Default value |
| const std::string& cpplocate::ModuleInfo::value | ( | const std::string & | key, |
| std::string & | defaultValue | ||
| ) | const |
Get value.
| [in] | key | Key name |
| [in] | defaultValue | Default value |
| void cpplocate::ModuleInfo::setValue | ( | const std::string & | key, |
| const std::string & | value | ||
| ) |
Set value.
| [in] | key | Key name Value |
| void cpplocate::ModuleInfo::setValue | ( | std::string && | key, |
| std::string && | value | ||
| ) |
Set value.
| [in] | key | Key name Value |
| void cpplocate::ModuleInfo::print | ( | ) | const |
Print module info to the console.
| void cpplocate::ModuleInfo::print | ( | std::ostream & | stream | ) | const |
Print module info to stream.
| [in] | stream | The stream to print to |
1.8.11