|
#include "ServiceReference.h"
#include <string>
using namespace std;
using namespace sof::framework;
ServiceReference::ServiceReference( const string &name, const Properties &properties, const IService::ConstPtr serv ) : serviceName( name ), props( properties ), service( serv )
{
}
ServiceReference::ServiceReference( const ServiceReference& serviceRef )
{
this->serviceName = serviceRef.serviceName;
this->props = serviceRef.props;
this->service = serviceRef.service;
}
ServiceReference& ServiceReference::operator=( const ServiceReference &serviceRef )
{
if (this != &serviceRef)
{
this->serviceName = serviceRef.serviceName;
this->props = serviceRef.props;
this->service = serviceRef.service;
}
return *this;
}
ServiceReference::~ServiceReference()
{
}
string ServiceReference::getServiceName() const
{
return this->serviceName;
}
Properties ServiceReference::getServiceProperties() const
{
return this->props;
}
IService::ConstPtr ServiceReference::getService() const
{
return this->service;
}
string ServiceReference::toString() const
{
ostringstream refStream;
refStream << "ServiceReference={";
refStream << "serviceName=" << this->serviceName << ", ";
refStream << this->props.toString();
refStream << "}";
return refStream.str();
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.