fipa_acl  1.4
received_object.cpp
Go to the documentation of this file.
1 #include "received_object.h"
2 #include <sstream>
3 
4 namespace fipa {
5 namespace acl {
6 
7 std::string ReceivedObject::toString(size_t indent) const
8 {
9  std::string hspace(indent,' ');
10  std::stringstream ss;
11  ss << hspace << "ReceivedObject:" << std::endl;
12  ss << hspace << " by: " << mBy << std::endl;
13  ss << hspace << " from: " << mFrom << std::endl;
14  ss << hspace << " date: " << mDate.toString() << std::endl;
15  ss << hspace << " id: " << mId << std::endl;
16  ss << hspace << " via: " << mVia << std::endl;
17  ss << hspace << " user-defined-parameters:" << std::endl;
18  std::vector<UserdefParam>::const_iterator cit = mUserdefinedParameters.begin();
19  for(; cit != mUserdefinedParameters.end(); ++cit)
20  {
21  ss << hspace << " " << cit->toString() << std::endl;
22  }
23 
24  return ss.str();
25 }
26 
27 } // end namespace acl
28 } // end namespace fipa
std::string toString(size_t indent=0) const