fipa_acl  1.4
xml_format.h
Go to the documentation of this file.
1 #ifndef FIPA_ACL_XML_FORMAT_H
2 #define FIPA_ACL_XML_FORMAT_H
3 
4 #include <string>
5 #include <base/Time.hpp>
6 #include <fipa_acl/message_generator/acl_envelope.h>
7 #include <fipa_acl/message_generator/acl_message.h>
8 #include <fipa_acl/message_generator/types.h>
9 #include "tinyxml.h"
10 
11 namespace fipa {
12 namespace acl {
13 
14 class XMLFormat
15 {
16 public:
17  static TiXmlElement* getReceivedObject(const ReceivedObject& receivedObject);
18  static TiXmlElement* getDate(const base::Time& date);
19  static const std::string dateToStr(const base::Time& date);
20  static TiXmlElement* getURL(const std::string& url, bool useHref);
21  static TiXmlElement* getName(const std::string& name, bool useId);
22  static TiXmlElement* getAgentID(const AgentID& aid, bool useNameId, bool useUrlHref);
23  static std::vector< TiXmlElement* > getAgentIDSequence(const AgentIDList& aidl, bool useNameId, bool useUrlHref);
24  static std::vector< TiXmlElement* > getUserdefinedParameters(const UserdefinedParameterList& params);
25 };
26 
27 } // end namespace acl
28 } // end namespace fipa
29 
30 #endif //FIPA_ACL_XML_FORMAT_H
std::vector< UserdefParam > UserdefinedParameterList
Definition: userdef_param.h:94
std::vector< AgentID > AgentIDList
Definition: agent_id.h:20
static TiXmlElement * getURL(const std::string &url, bool useHref)
Definition: xml_format.cpp:22
static const std::string dateToStr(const base::Time &date)
Definition: xml_format.cpp:15
static TiXmlElement * getAgentID(const AgentID &aid, bool useNameId, bool useUrlHref)
Definition: xml_format.cpp:61
static TiXmlElement * getName(const std::string &name, bool useId)
Definition: xml_format.cpp:36
static TiXmlElement * getReceivedObject(const ReceivedObject &receivedObject)
Definition: xml_format.cpp:99
static std::vector< TiXmlElement * > getAgentIDSequence(const AgentIDList &aidl, bool useNameId, bool useUrlHref)
Definition: xml_format.cpp:51
static TiXmlElement * getDate(const base::Time &date)
Definition: xml_format.cpp:8
static std::vector< TiXmlElement * > getUserdefinedParameters(const UserdefinedParameterList &params)
Definition: xml_format.cpp:145
Implements the general AgentID functionality, which is present throughout the fipa specifications(FIP...
Definition: agent_id.h:37