fipa_acl  1.4
message_format.h
Go to the documentation of this file.
1 #ifndef FIPA_ACL_ACLMESSAGE_MESSAGE_FORMAT_H
2 #define FIPA_ACL_ACLMESSAGE_MESSAGE_FORMAT_H
3 #include <fipa_acl/message_generator/acl_message.h>
4 #include <fipa_acl/message_generator/exception.h>
5 
6 namespace fipa {
7 namespace acl {
8 
9 namespace MessageField
10 {
12 
13  extern std::map<MessageField::Type, std::string> MessageFieldTxt;
14 }
15 
16 
23 {
24 
25 private:
42  bool mUseCodeTables;
43  bool mUpdateCodeTables;
44  std::string mVersion;
45  int mResolverDepth;
46 
47 public:
48 
52  MessageFormat();
53 
54  virtual ~MessageFormat() {}
55 
59  void setUseCodeTables(bool x) { mUseCodeTables = x; }
60 
65  bool getUseCodeTables() const { return mUseCodeTables; }
66 
70  void setUpdateCodeTables(bool x) { mUpdateCodeTables = x; }
71 
76  bool getUpdateCodeTables() const { return mUpdateCodeTables; }
77 
81  void setResolverDepth(int depth) { mResolverDepth = depth; }
82 
87  int getResolverDepth() const { return mResolverDepth; }
88 
92  void setVersion(const std::string& version) { mVersion = version; }
93 
97  std::string getVersion() const { return mVersion; }
98 
103  virtual std::string apply(const ACLMessage& msg) const = 0;
104 };
105 
106 
107 }//end of acl namespace
108 }// end of fipa namespace
109 #endif
void setUpdateCodeTables(bool x)
void setResolverDepth(int depth)
int getResolverDepth() const
std::map< MessageField::Type, std::string > MessageFieldTxt
Abstract class which should be implemented by a specific format to encode an ACLMessage according to ...
bool getUseCodeTables() const
std::string getVersion() const
void setVersion(const std::string &version)
void setUseCodeTables(bool x)
This class provides a representation of a message conforming to the FIPA specification SC00061...
Definition: acl_message.h:55
bool getUpdateCodeTables() const
Foundation of Physical Intelligent Agents.
Definition: conversation.cpp:6