fipa_acl  1.4
Functions
std Namespace Reference

Functions

template<typename C , typename E >
std::basic_ostream< C, E > & operator<< (std::basic_ostream< C, E > &out, fipa::acl::Header h)
 
template<typename C , typename E >
std::basic_ostream< C, E > & operator<< (std::basic_ostream< C, E > &out, fipa::acl::DateTime dt)
 
template<typename C , typename E >
std::basic_ostream< C, E > & operator<< (std::basic_ostream< C, E > &out, fipa::acl::Time t)
 
template<typename C , typename E >
std::basic_ostream< C, E > & operator<< (std::basic_ostream< C, E > &out, const fipa::acl::message::ParameterValue &p)
 
template<typename C , typename E >
std::basic_ostream< C, E > & operator<< (std::basic_ostream< C, E > &out, fipa::acl::message::Parameter p)
 
template<typename C , typename E >
std::basic_ostream< C, E > & operator<< (std::basic_ostream< C, E > &out, fipa::acl::AgentIdentifier p)
 
template<typename C , typename E >
std::basic_ostream< C, E > & operator<< (std::basic_ostream< C, E > &out, const fipa::acl::UserDefinedParameter &p)
 
template<typename C , typename E >
std::basic_ostream< C, E > & operator<< (std::basic_ostream< C, E > &out, const fipa::acl::ByteSequence &b)
 
template<typename C , typename E >
std::basic_ostream< C, E > & operator<< (std::basic_ostream< C, E > &out, const fipa::acl::DateTime &d)
 
template<typename C , typename E >
std::basic_ostream< C, E > & operator<< (std::basic_ostream< C, E > &out, const fipa::acl::Resolver &r)
 
template<typename C , typename E >
std::basic_ostream< C, E > & operator<< (std::basic_ostream< C, E > &out, const fipa::acl::AgentID &agentId)
 
template<typename C , typename E >
std::basic_ostream< C, E > & operator<< (std::basic_ostream< C, E > &out, const fipa::acl::AgentIDList &agentIdList)
 
template<typename C , typename E >
std::basic_ostream< C, E > & operator<< (std::basic_ostream< C, E > &out, const fipa::acl::ACLMessage &msg)
 

Detailed Description

Alternatively to putting the stream operators in std namespace do as recommended by Helmut Kaiser: http://stackoverflow.com/questions/5286720/how-to-define-streaming-operator-for-boostspiritqi-and-stdlist-container

// your specialization needs to be in namespace boost::spirit::traits namespace boost { namespace spirit { namespace traits { template <typename out>=""> struct print_attribute_debug<Out, TlstValues> { static void call(Out& out, TlstValues const& val) { // do your output here; Out is a std::ostream } }; }}}

Function Documentation

◆ operator<<() [1/13]

template<typename C , typename E >
std::basic_ostream<C, E>& std::operator<< ( std::basic_ostream< C, E > &  out,
fipa::acl::Header  h 
)

Definition at line 32 of file debug.h.

33 {
34  return out << "Header<" << h.toString() << ">";
35 }
std::string toString() const
Definition: types.h:36

◆ operator<<() [2/13]

template<typename C , typename E >
std::basic_ostream<C, E>& std::operator<< ( std::basic_ostream< C, E > &  out,
const fipa::acl::ACLMessage msg 
)

Definition at line 121 of file debug.h.

122 {
123  return out << "ACLMessage<" << msg.toString() << ">";
124 }
std::string toString() const

◆ operator<<() [3/13]

template<typename C , typename E >
std::basic_ostream<C, E>& std::operator<< ( std::basic_ostream< C, E > &  out,
const fipa::acl::AgentIDList agentIdList 
)

Definition at line 108 of file debug.h.

109 {
110  fipa::acl::AgentIDList::const_iterator cit = agentIdList.begin();
111  out << "AgentIDList<";
112  for(; cit != agentIdList.end(); ++cit)
113  {
114  out << cit->getName() << ",";
115  }
116  out << ">";
117  return out;
118 }

◆ operator<<() [4/13]

template<typename C , typename E >
std::basic_ostream<C, E>& std::operator<< ( std::basic_ostream< C, E > &  out,
const fipa::acl::AgentID agentId 
)

Definition at line 102 of file debug.h.

103 {
104  return out << "AgentID<" << agentId.getName() << ">";
105 }
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
Definition: agent_id.h:90

◆ operator<<() [5/13]

template<typename C , typename E >
std::basic_ostream<C, E>& std::operator<< ( std::basic_ostream< C, E > &  out,
const fipa::acl::Resolver r 
)

Definition at line 95 of file debug.h.

96 {
97  fipa::acl::AgentIdentifier agentId = r.get();
98  return out << "Resolver<" << agentId.name << ">";
99 }
Definition for AgentIdentifier.
Definition: agent_id.h:30

◆ operator<<() [6/13]

template<typename C , typename E >
std::basic_ostream<C, E>& std::operator<< ( std::basic_ostream< C, E > &  out,
const fipa::acl::DateTime d 
)

Definition at line 89 of file debug.h.

90 {
91  return out << "DateTime<" << d.toString() << ">";
92 }
std::string toString() const
Definition: date_time.cpp:9

◆ operator<<() [7/13]

template<typename C , typename E >
std::basic_ostream<C, E>& std::operator<< ( std::basic_ostream< C, E > &  out,
const fipa::acl::ByteSequence b 
)

Definition at line 83 of file debug.h.

84 {
85  return out << "Bytesequence<" << b.toPrettyString() << ">";
86 }
std::string toPrettyString() const

◆ operator<<() [8/13]

template<typename C , typename E >
std::basic_ostream<C, E>& std::operator<< ( std::basic_ostream< C, E > &  out,
const fipa::acl::UserDefinedParameter p 
)

Definition at line 77 of file debug.h.

78 {
79  return out << "UserDefinedParameter<" << p;
80 }

◆ operator<<() [9/13]

template<typename C , typename E >
std::basic_ostream<C, E>& std::operator<< ( std::basic_ostream< C, E > &  out,
fipa::acl::AgentIdentifier  p 
)

Definition at line 71 of file debug.h.

72 {
73  return out << "AgentId<" << p.name << ">";
74 }

◆ operator<<() [10/13]

template<typename C , typename E >
std::basic_ostream<C, E>& std::operator<< ( std::basic_ostream< C, E > &  out,
fipa::acl::message::Parameter  p 
)

Definition at line 65 of file debug.h.

66 {
67  return out << "message::Parameter<" << p.toString() << ">";
68 }
std::string toString() const
Definition: types.h:52

◆ operator<<() [11/13]

template<typename C , typename E >
std::basic_ostream<C, E>& std::operator<< ( std::basic_ostream< C, E > &  out,
const fipa::acl::message::ParameterValue p 
)

Definition at line 51 of file debug.h.

52 {
53  std::string tmp = boost::apply_visitor(fipa::acl::message::ParameterPrinter(), p);
54  return out << "message::ParameterValue<" << tmp << ">";
55 }

◆ operator<<() [12/13]

template<typename C , typename E >
std::basic_ostream<C, E>& std::operator<< ( std::basic_ostream< C, E > &  out,
fipa::acl::Time  t 
)

Definition at line 45 of file debug.h.

46 {
47  return out << "Time<" << ">";
48 }

◆ operator<<() [13/13]

template<typename C , typename E >
std::basic_ostream<C, E>& std::operator<< ( std::basic_ostream< C, E > &  out,
fipa::acl::DateTime  dt 
)

Definition at line 38 of file debug.h.

39 {
40  std::string dtString = dt.toString();
41  return out << "DateTime<" << dtString << ">";
42 }
std::string toString() const
Definition: date_time.cpp:9