2012-04-30 15:30:45 +02:00
|
|
|
#ifndef DISCOVERYMESSAGE_H
|
|
|
|
#define DISCOVERYMESSAGE_H
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2012-05-16 11:30:54 +02:00
|
|
|
class DiscoveryMessage : public MessagePart
|
2012-04-30 15:30:45 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
2012-05-16 11:30:54 +02:00
|
|
|
DiscoveryMessage(void) : MessagePart() { }
|
|
|
|
DiscoveryMessage(const MessagePart& message) : MessagePart(message) { }
|
2012-04-30 15:30:45 +02:00
|
|
|
|
|
|
|
inline bool GetIdentity(string *value) const
|
|
|
|
{
|
2012-05-16 11:30:54 +02:00
|
|
|
return GetProperty("identity", value);
|
2012-04-30 15:30:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
inline void SetIdentity(const string& value)
|
|
|
|
{
|
2012-05-16 11:30:54 +02:00
|
|
|
SetProperty("identity", value);
|
2012-04-30 15:30:45 +02:00
|
|
|
}
|
|
|
|
|
2012-05-07 13:48:17 +02:00
|
|
|
inline bool GetNode(string *value) const
|
|
|
|
{
|
2012-05-16 11:30:54 +02:00
|
|
|
return GetProperty("node", value);
|
2012-05-07 13:48:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
inline void SetNode(const string& value)
|
|
|
|
{
|
2012-05-16 11:30:54 +02:00
|
|
|
SetProperty("node", value);
|
2012-05-07 13:48:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
inline bool GetService(string *value) const
|
|
|
|
{
|
2012-05-16 11:30:54 +02:00
|
|
|
return GetProperty("service", value);
|
2012-05-07 13:48:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
inline void SetService(const string& value)
|
|
|
|
{
|
2012-05-16 11:30:54 +02:00
|
|
|
SetProperty("service", value);
|
2012-05-07 13:48:17 +02:00
|
|
|
}
|
|
|
|
|
2012-05-16 11:30:54 +02:00
|
|
|
inline bool GetSubscriptions(MessagePart *value) const
|
2012-04-30 15:30:45 +02:00
|
|
|
{
|
2012-05-16 11:30:54 +02:00
|
|
|
return GetProperty("subscriptions", value);
|
2012-04-30 15:30:45 +02:00
|
|
|
}
|
|
|
|
|
2012-05-16 11:30:54 +02:00
|
|
|
inline void SetSubscriptions(MessagePart value)
|
2012-04-30 15:30:45 +02:00
|
|
|
{
|
2012-05-16 11:30:54 +02:00
|
|
|
SetProperty("subscriptions", value);
|
2012-04-30 15:30:45 +02:00
|
|
|
}
|
|
|
|
|
2012-05-16 11:30:54 +02:00
|
|
|
inline bool GetPublications(MessagePart *value) const
|
2012-04-30 15:30:45 +02:00
|
|
|
{
|
2012-05-16 11:30:54 +02:00
|
|
|
return GetProperty("publications", value);
|
2012-04-30 15:30:45 +02:00
|
|
|
}
|
|
|
|
|
2012-05-16 11:30:54 +02:00
|
|
|
inline void SetPublications(MessagePart value)
|
2012-04-30 15:30:45 +02:00
|
|
|
{
|
2012-05-16 11:30:54 +02:00
|
|
|
SetProperty("publications", value);
|
2012-04-30 15:30:45 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* SUBSCRIPTIONMESSAGE_H */
|