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 GetSubscriptions(Message *value) const
{
return GetPropertyMessage("subscriptions", value);
}
inline void SetSubscriptions(Message value)
{
SetPropertyMessage("subscriptions", value);
}
inline bool GetPublications(Message *value) const
{
return GetPropertyMessage("publications", value);
}
inline void SetPublications(Message value)
{
SetPropertyMessage("publications", value);
}
};
}
#endif /* SUBSCRIPTIONMESSAGE_H */