1 #ifndef __FIPA_ACL_MESSAGEPARSER_DEBUG_H_ 2 #define __FIPA_ACL_MESSAGEPARSER_DEBUG_H_ 7 #include <fipa_acl/message_parser/types.h> 8 #warning "debug.h ENABLED" 31 template<
typename C,
typename E>
34 return out <<
"Header<" << h.
toString() <<
">";
37 template<
typename C,
typename E>
40 std::string dtString = dt.
toString();
41 return out <<
"DateTime<" << dtString <<
">";
44 template<
typename C,
typename E>
45 std::basic_ostream<C, E>& operator<<(std::basic_ostream<C,E>& out,
fipa::acl::Time t)
47 return out <<
"Time<" <<
">";
50 template<
typename C,
typename E>
54 return out <<
"message::ParameterValue<" << tmp <<
">";
64 template<
typename C,
typename E>
67 return out <<
"message::Parameter<" << p.
toString() <<
">";
70 template<
typename C,
typename E>
73 return out <<
"AgentId<" << p.
name <<
">";
76 template<
typename C,
typename E>
79 return out <<
"UserDefinedParameter<" << p;
82 template<
typename C,
typename E>
88 template<
typename C,
typename E>
91 return out <<
"DateTime<" << d.
toString() <<
">";
94 template<
typename C,
typename E>
98 return out <<
"Resolver<" << agentId.
name <<
">";
101 template<
typename C,
typename E>
102 std::basic_ostream<C, E>& operator<<(std::basic_ostream<C,E>& out,
const fipa::acl::AgentID& agentId)
104 return out <<
"AgentID<" << agentId.
getName() <<
">";
107 template<
typename C,
typename E>
110 fipa::acl::AgentIDList::const_iterator cit = agentIdList.begin();
111 out <<
"AgentIDList<";
112 for(; cit != agentIdList.end(); ++cit)
114 out << cit->getName() <<
",";
120 template<
typename C,
typename E>
123 return out <<
"ACLMessage<" << msg.
toString() <<
">";
boost::recursive_wrapper< AgentIdentifier > Resolver
std::string toString() const
boost::variant< std::string, fipa::acl::AgentIdentifier, std::vector< fipa::acl::AgentIdentifier >, fipa::acl::ByteSequence, fipa::acl::DateTime, fipa::acl::ByteString > ParameterValue
const std::string & getName() const
setter and getter methods for all fields; they do not result in deep-copies assignments/retreivals, but this can be easily changed if needed through the overloaded operator which do
Representation of a byte sequence. We also embed information about the encoding.
std::vector< AgentID > AgentIDList
Definition for AgentIdentifier.
This class provides a representation of a message conforming to the FIPA specification SC00061...
std::string toPrettyString() const
std::string toString() const
Implements the general AgentID functionality, which is present throughout the fipa specifications(FIP...
std::string toString() const