mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-06 13:24:28 +02:00
Removed unused ConfigObject methods.
This commit is contained in:
parent
ffd884a6ab
commit
1896ed356f
@ -26,14 +26,6 @@ ConfigObject::ConfigObject(Dictionary::Ptr properties, const ConfigObject::Set::
|
|||||||
m_Properties(properties), m_Tags(boost::make_shared<Dictionary>())
|
m_Properties(properties), m_Tags(boost::make_shared<Dictionary>())
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
ConfigObject::ConfigObject(string type, string name, const ConfigObject::Set::Ptr& container)
|
|
||||||
: m_Container(container ? container : GetAllObjects()),
|
|
||||||
m_Properties(boost::make_shared<Dictionary>()), m_Tags(boost::make_shared<Dictionary>())
|
|
||||||
{
|
|
||||||
SetProperty("__type", type);
|
|
||||||
SetProperty("__name", name);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ConfigObject::SetProperties(Dictionary::Ptr properties)
|
void ConfigObject::SetProperties(Dictionary::Ptr properties)
|
||||||
{
|
{
|
||||||
m_Properties = properties;
|
m_Properties = properties;
|
||||||
@ -63,11 +55,6 @@ string ConfigObject::GetName(void) const
|
|||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigObject::SetLocal(bool value)
|
|
||||||
{
|
|
||||||
GetProperties()->Set("__local", value ? 1 : 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ConfigObject::IsLocal(void) const
|
bool ConfigObject::IsLocal(void) const
|
||||||
{
|
{
|
||||||
bool value = false;
|
bool value = false;
|
||||||
@ -75,11 +62,6 @@ bool ConfigObject::IsLocal(void) const
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigObject::SetAbstract(bool value)
|
|
||||||
{
|
|
||||||
GetProperties()->Set("__abstract", value ? 1 : 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ConfigObject::IsAbstract(void) const
|
bool ConfigObject::IsAbstract(void) const
|
||||||
{
|
{
|
||||||
bool value = false;
|
bool value = false;
|
||||||
|
@ -39,17 +39,10 @@ public:
|
|||||||
typedef ObjectSet<ConfigObject::Ptr> Set;
|
typedef ObjectSet<ConfigObject::Ptr> Set;
|
||||||
|
|
||||||
ConfigObject(Dictionary::Ptr properties, const Set::Ptr& container = Set::Ptr());
|
ConfigObject(Dictionary::Ptr properties, const Set::Ptr& container = Set::Ptr());
|
||||||
ConfigObject(string type, string name, const Set::Ptr& container = Set::Ptr());
|
|
||||||
|
|
||||||
void SetProperties(Dictionary::Ptr config);
|
void SetProperties(Dictionary::Ptr config);
|
||||||
Dictionary::Ptr GetProperties(void) const;
|
Dictionary::Ptr GetProperties(void) const;
|
||||||
|
|
||||||
template<typename T>
|
|
||||||
void SetProperty(const string& key, const T& value)
|
|
||||||
{
|
|
||||||
GetProperties()->Set(key, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
bool GetProperty(const string& key, T *value) const
|
bool GetProperty(const string& key, T *value) const
|
||||||
{
|
{
|
||||||
@ -73,10 +66,7 @@ public:
|
|||||||
string GetType(void) const;
|
string GetType(void) const;
|
||||||
string GetName(void) const;
|
string GetName(void) const;
|
||||||
|
|
||||||
void SetLocal(bool value);
|
|
||||||
bool IsLocal(void) const;
|
bool IsLocal(void) const;
|
||||||
|
|
||||||
void SetAbstract(bool value);
|
|
||||||
bool IsAbstract(void) const;
|
bool IsAbstract(void) const;
|
||||||
|
|
||||||
void SetSource(const string& value);
|
void SetSource(const string& value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user