2012-06-13 13:42:55 +02:00
|
|
|
#ifndef CONFIGOBJECTADAPTER_H
|
|
|
|
#define CONFIGOBJECTADAPTER_H
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2012-07-02 19:09:45 +02:00
|
|
|
class I2_CIB_API ConfigObjectAdapter
|
2012-06-13 13:42:55 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ConfigObjectAdapter(const ConfigObject::Ptr& configObject)
|
|
|
|
: m_ConfigObject(configObject)
|
|
|
|
{ }
|
|
|
|
|
|
|
|
string GetType(void) const;
|
|
|
|
string GetName(void) const;
|
|
|
|
|
|
|
|
bool IsLocal(void) const;
|
|
|
|
|
|
|
|
ConfigObject::Ptr GetConfigObject() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
ConfigObject::Ptr m_ConfigObject;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CONFIGOBJECTADAPTER_H */
|