2013-10-26 09:41:45 +02:00
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2014-04-05 22:17:20 +02:00
|
|
|
code {{{
|
2014-04-06 08:09:49 +02:00
|
|
|
class NameComposer {
|
2014-04-05 22:17:20 +02:00
|
|
|
public:
|
2014-04-06 08:09:49 +02:00
|
|
|
virtual String MakeName(const String& shortName, const Dictionary::Ptr props) const = 0;
|
2014-04-05 22:17:20 +02:00
|
|
|
};
|
|
|
|
}}}
|
|
|
|
|
2013-11-08 11:17:46 +01:00
|
|
|
abstract class DynamicObject
|
2013-10-26 09:41:45 +02:00
|
|
|
{
|
2014-04-05 09:15:40 +02:00
|
|
|
[config] String __name (Name);
|
|
|
|
[config] String name (ShortName) {
|
|
|
|
get {{{
|
|
|
|
if (m_ShortName.IsEmpty())
|
|
|
|
return GetName();
|
|
|
|
else
|
|
|
|
return m_ShortName;
|
|
|
|
}}}
|
|
|
|
};
|
2014-03-28 13:52:29 +01:00
|
|
|
[config, get_protected] String type (TypeName);
|
2014-05-03 20:01:23 +02:00
|
|
|
[config] String package;
|
2014-03-28 14:46:19 +01:00
|
|
|
[config, get_protected] Array::Ptr templates;
|
2013-10-26 09:41:45 +02:00
|
|
|
[config] Dictionary::Ptr methods;
|
2014-04-15 17:33:56 +02:00
|
|
|
[config] Dictionary::Ptr vars (VarsRaw);
|
2013-10-26 09:41:45 +02:00
|
|
|
[config] Array::Ptr domains;
|
|
|
|
[config] Array::Ptr authorities;
|
|
|
|
[get_protected] bool active;
|
2013-12-14 07:36:49 +01:00
|
|
|
[get_protected] bool start_called;
|
|
|
|
[get_protected] bool stop_called;
|
2013-11-11 08:22:58 +01:00
|
|
|
Dictionary::Ptr authority_info;
|
2013-10-26 09:41:45 +02:00
|
|
|
[protected] Dictionary::Ptr extensions;
|
2014-04-15 17:33:56 +02:00
|
|
|
|
|
|
|
[state] Value override_vars;
|
2013-10-26 09:41:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|