2012-04-30 15:30:45 +02:00
|
|
|
#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);
|
|
|
|
}
|
|
|
|
|
2012-05-15 16:24:04 +02:00
|
|
|
inline bool GetSubscriptions(Message *value) const
|
2012-04-30 15:30:45 +02:00
|
|
|
{
|
2012-05-15 16:24:04 +02:00
|
|
|
return GetPropertyMessage("subscriptions", value);
|
2012-04-30 15:30:45 +02:00
|
|
|
}
|
|
|
|
|
2012-05-15 16:24:04 +02:00
|
|
|
inline void SetSubscriptions(Message value)
|
2012-04-30 15:30:45 +02:00
|
|
|
{
|
2012-05-15 16:24:04 +02:00
|
|
|
SetPropertyMessage("subscriptions", value);
|
2012-04-30 15:30:45 +02:00
|
|
|
}
|
|
|
|
|
2012-05-15 16:24:04 +02:00
|
|
|
inline bool GetPublications(Message *value) const
|
2012-04-30 15:30:45 +02:00
|
|
|
{
|
2012-05-15 16:24:04 +02:00
|
|
|
return GetPropertyMessage("publications", value);
|
2012-04-30 15:30:45 +02:00
|
|
|
}
|
|
|
|
|
2012-05-15 16:24:04 +02:00
|
|
|
inline void SetPublications(Message value)
|
2012-04-30 15:30:45 +02:00
|
|
|
{
|
2012-05-15 16:24:04 +02:00
|
|
|
SetPropertyMessage("publications", value);
|
2012-04-30 15:30:45 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* SUBSCRIPTIONMESSAGE_H */
|