icinga2/lib/base/dynamicobject.ti

36 lines
784 B
Plaintext
Raw Normal View History

2013-10-26 09:41:45 +02:00
namespace icinga
{
code {{{
class DynamicObjectNameHelper {
public:
virtual String MakeObjectName(const String& shortName, const Dictionary::Ptr props) const = 0;
};
}}}
abstract class DynamicObject
2013-10-26 09:41:45 +02:00
{
[config] String __name (Name);
[config] String name (ShortName) {
get {{{
if (m_ShortName.IsEmpty())
return GetName();
else
return m_ShortName;
}}}
};
[config, get_protected] String type (TypeName);
[config, get_protected] Array::Ptr templates;
2013-10-26 09:41:45 +02:00
[config] Dictionary::Ptr methods;
[config] Dictionary::Ptr vars;
2013-10-26 09:41:45 +02:00
[config] Array::Ptr domains;
[config] Array::Ptr authorities;
[get_protected] bool active;
[get_protected] bool start_called;
[get_protected] bool stop_called;
Dictionary::Ptr authority_info;
2013-10-26 09:41:45 +02:00
[protected] Dictionary::Ptr extensions;
};
}