icinga2/components/discovery/discoverymessage.h

68 lines
1.2 KiB
C
Raw Normal View History

#ifndef DISCOVERYMESSAGE_H
#define DISCOVERYMESSAGE_H
namespace icinga
{
class DiscoveryMessage : public Message
{
public:
DiscoveryMessage(void) : Message() { }
DiscoveryMessage(const Message& message) : Message(message) { }
inline bool GetIdentity(string *value) const
{
return GetPropertyString("identity", value);
}
inline void SetIdentity(const string& value)
{
SetPropertyString("identity", value);
}
2012-05-07 13:48:17 +02:00
inline bool GetNode(string *value) const
{
return GetPropertyString("node", value);
}
inline void SetNode(const string& value)
{
SetPropertyString("node", value);
}
inline bool GetService(string *value) const
{
return GetPropertyString("service", value);
}
inline void SetService(const string& value)
{
SetPropertyString("service", value);
}
inline bool GetSubscribes(Message *value) const
{
return GetPropertyMessage("subscribes", value);
}
inline void SetSubscribes(Message value)
{
SetPropertyMessage("subscribes", value);
}
inline bool GetProvides(Message *value) const
{
return GetPropertyMessage("provides", value);
}
inline void SetProvides(Message value)
{
SetPropertyMessage("provides", value);
}
};
}
#endif /* SUBSCRIPTIONMESSAGE_H */