#include "Count.h"
{
Count::Count() :
Entity()
{
EntityAttributePtr countAttribute = new EntityAttribute("count");
putAttribute(countAttribute);
}
Count::Count(const Count& source):
::
armarx::Serializable(source),
EntityBase(),
CountBase(source),
Entity(source)
{
}
Count::~Count()
{
}
void Count::output(std::ostream &stream) const
{
Entity::output(stream);
}
Ice::ObjectPtr Count::ice_clone() const
{
return this->clone();
}
CountPtr Count::clone(
const Ice::Current&
c)
const
{
boost::shared_lock<boost::shared_mutex> entityLock(entityMutex);
armarx::RecursiveMutex::scoped_lock wrappersLock(wrappersMutex);
CountPtr ret = new Count(*this);
return ret;
}
Ice::Int Count::getCount(const Ice::Current& context) const
{
return getAttribute("count")->getValue()->getInt();
}
void Count::setCount(Ice::Int count, const Ice::Current& context)
{
}
}
The Variant class is described here: Variants.
Mutex::scoped_lock ScopedLock
This file offers overloads of toIce() and fromIce() functions for STL container types.