fipa_acl  1.4
Public Member Functions | List of all members
fipa::acl::ReceivedObject Class Reference

#include <received_object.h>

Public Member Functions

bool operator== (const ReceivedObject &receivedObject) const
 
const URLgetBy () const
 
void setBy (const URL &by)
 
const URLgetFrom () const
 
void setFrom (const URL &from)
 
const base::Time & getDate () const
 
void setDate (const base::Time &date)
 
const IDgetId () const
 
void setId (const ID &id)
 
const ViagetVia () const
 
void setVia (const Via &via)
 
std::string toString (size_t indent=0) const
 
const UserdefinedParameterListgetUserdefinedParameters () const
 
void setUserdefinedParameters (const UserdefinedParameterList &paramList)
 

Detailed Description

Received object is attached to the message envelope by each Message Transport Service

Definition at line 19 of file received_object.h.

Member Function Documentation

◆ getBy()

const URL& fipa::acl::ReceivedObject::getBy ( ) const
inline

Get URL representing the transport address of the receiving ACC

Definition at line 62 of file received_object.h.

62 { return mBy; }

◆ getDate()

const base::Time& fipa::acl::ReceivedObject::getDate ( ) const
inline

Get the date when the message was received

Definition at line 82 of file received_object.h.

82 { return mDate; }

◆ getFrom()

const URL& fipa::acl::ReceivedObject::getFrom ( ) const
inline

Get URL representing the transport address of the sending ACC

Definition at line 72 of file received_object.h.

72 { return mFrom; }

◆ getId()

const ID& fipa::acl::ReceivedObject::getId ( ) const
inline

Get the unique id of the message - unique within the scope of the sending ACC

Definition at line 92 of file received_object.h.

92 { return mId; }

◆ getUserdefinedParameters()

const UserdefinedParameterList& fipa::acl::ReceivedObject::getUserdefinedParameters ( ) const
inline

Get userdefined parameters

Definition at line 117 of file received_object.h.

117 { return mUserdefinedParameters; }

◆ getVia()

const Via& fipa::acl::ReceivedObject::getVia ( ) const
inline

Get the via - the MTP the message was delivered over

Definition at line 102 of file received_object.h.

102 { return mVia; }

◆ operator==()

bool fipa::acl::ReceivedObject::operator== ( const ReceivedObject receivedObject) const
inline

Definition at line 57 of file received_object.h.

57 { return true; }

◆ setBy()

void fipa::acl::ReceivedObject::setBy ( const URL by)
inline

Set URL representing the transport address of the receiving ACC

Definition at line 67 of file received_object.h.

67 { mBy = by; }

◆ setDate()

void fipa::acl::ReceivedObject::setDate ( const base::Time &  date)
inline

Set the date when the message was received

Definition at line 87 of file received_object.h.

87 { mDate = date; }

◆ setFrom()

void fipa::acl::ReceivedObject::setFrom ( const URL from)
inline

Set URL representing the transport address of the sending ACC

Definition at line 77 of file received_object.h.

77 { mFrom = from; }

◆ setId()

void fipa::acl::ReceivedObject::setId ( const ID id)
inline

Set the unique id of the message - unique within the scope of the sending ACC

Definition at line 97 of file received_object.h.

97 { mId = id; }

◆ setUserdefinedParameters()

void fipa::acl::ReceivedObject::setUserdefinedParameters ( const UserdefinedParameterList paramList)
inline

Set userdefined parameters

Definition at line 122 of file received_object.h.

122 { mUserdefinedParameters = paramList; }

◆ setVia()

void fipa::acl::ReceivedObject::setVia ( const Via via)
inline

Set via

Definition at line 107 of file received_object.h.

107 { mVia = via; }

◆ toString()

std::string fipa::acl::ReceivedObject::toString ( size_t  indent = 0) const

Create to string methods

Definition at line 7 of file received_object.cpp.

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 }

The documentation for this class was generated from the following files: