icinga2/jsonrpc/message.h

36 lines
807 B
C
Raw Normal View History

2012-04-18 15:22:25 +02:00
#ifndef MESSAGE_H
#define MESSAGE_H
namespace icinga
{
class I2_JSONRPC_API Message
{
private:
Dictionary::Ptr m_Dictionary;
public:
Message(void);
Message(const Dictionary::Ptr& dictionary);
Message(const Message& message);
Dictionary::Ptr GetDictionary(void) const;
2012-04-20 13:49:04 +02:00
bool GetPropertyString(string key, string *value) const;
void SetPropertyString(string key, const string& value);
bool GetPropertyInteger(string key, long *value) const;
void SetPropertyInteger(string key, long value);
bool GetPropertyMessage(string key, Message *value) const;
void SetPropertyMessage(string key, const Message& value);
void AddUnnamedPropertyString(const string& value);
void AddUnnamedPropertyInteger(long value);
void AddUnnamedPropertyMessage(const Message& value);
2012-04-18 15:22:25 +02:00
};
}
#endif /* MESSAGE_H */