icinga2/components/discovery/discoverymessage.h

68 lines
1.2 KiB
C
Raw Normal View History

#ifndef DISCOVERYMESSAGE_H
#define DISCOVERYMESSAGE_H
namespace icinga
{
2012-05-16 11:30:54 +02:00
class DiscoveryMessage : public MessagePart
{
public:
2012-05-16 11:30:54 +02:00
DiscoveryMessage(void) : MessagePart() { }
DiscoveryMessage(const MessagePart& message) : MessagePart(message) { }
inline bool GetIdentity(string *value) const
{
2012-05-16 11:30:54 +02:00
return GetProperty("identity", value);
}
inline void SetIdentity(const string& value)
{
2012-05-16 11:30:54 +02:00
SetProperty("identity", value);
}
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-05-16 11:30:54 +02:00
return GetProperty("subscriptions", value);
}
2012-05-16 11:30:54 +02:00
inline void SetSubscriptions(MessagePart value)
{
2012-05-16 11:30:54 +02:00
SetProperty("subscriptions", value);
}
2012-05-16 11:30:54 +02:00
inline bool GetPublications(MessagePart *value) const
{
2012-05-16 11:30:54 +02:00
return GetProperty("publications", value);
}
2012-05-16 11:30:54 +02:00
inline void SetPublications(MessagePart value)
{
2012-05-16 11:30:54 +02:00
SetProperty("publications", value);
}
};
}
#endif /* SUBSCRIPTIONMESSAGE_H */