#include <CAConfig.hpp>
Public Member Functions | |
CAConfig (const String &file) | |
~CAConfig () | |
void | setValue (const String §ion, const String &key, const String &value) |
void | deleteValue (const String §ion, const String &key) |
String | getValue (const String §ion, const String &key) const |
bool | exists (const String §ion, const String &key) const |
BLOCXX_NAMESPACE::List < BLOCXX_NAMESPACE::String > | getKeylist (const String §ion) const |
void | copySection (const String &srcSection, const String &destSection) |
CAConfig * | clone (const String &file) |
String | filename () const |
void | dump () |
Private Member Functions | |
CAConfig () | |
CAConfig (const CAConfig &) | |
CAConfig & | operator= (const CAConfig &) |
void | dumpTree (CASection *section, int level=0) |
void | validateAndFix () |
Private Attributes | |
BLOCXX_NAMESPACE::COWIntrusiveReference < CAConfigImpl > | m_impl |
Class for reading and writing the openssl.cnf
limal::ca_mgm::CAConfig::CAConfig | ( | const String & | file | ) |
Create a new object from file
limal::ca_mgm::CAConfig::~CAConfig | ( | ) |
limal::ca_mgm::CAConfig::CAConfig | ( | ) | [private] |
limal::ca_mgm::CAConfig::CAConfig | ( | const CAConfig & | ) | [private] |
Clone this object
file | a new filename for this object |
Copy all Keys and values from Section srcSection to Section destSection.
Delete the Key key in Section section
void limal::ca_mgm::CAConfig::dump | ( | ) |
void limal::ca_mgm::CAConfig::dumpTree | ( | CASection * | section, | |
int | level = 0 | |||
) | [private] |
Check if Key key in Section section exists.
String limal::ca_mgm::CAConfig::filename | ( | ) | const |
return current filename
BLOCXX_NAMESPACE ::List< BLOCXX_NAMESPACE ::String> limal::ca_mgm::CAConfig::getKeylist | ( | const String & | section | ) | const |
Return a List of all Keys in Section section.
Get the value of Section section with the Key key.
void limal::ca_mgm::CAConfig::setValue | ( | const String & | section, | |
const String & | key, | |||
const String & | value | |||
) |
Set a new value in Section section with the Key key.
void limal::ca_mgm::CAConfig::validateAndFix | ( | ) | [private] |
Check the format of the template and fix it if required. (SLES9 => SLES10 update)
BLOCXX_NAMESPACE ::COWIntrusiveReference<CAConfigImpl> limal::ca_mgm::CAConfig::m_impl [private] |