#ifndef ARMARX_MEMORYX_CORE_COUNT_ENTITY_H_
#define ARMARX_MEMORYX_CORE_COUNT_ENTITY_H_
#include <MemoryX/interface/core/EntityBase.h>
#include <MemoryX/interface/memorytypes/MyNewEntities.h>
{
class Count;
class Count :
public memoryx::CountBase,
{
public:
Count();
virtual ~Count();
CountPtr clone(
const Ice::Current&
c = Ice::emptyCurrent)
const;
Ice::Int getCount(
const Ice::Current& context = Ice::emptyCurrent)
const;
void setCount(
Ice::Int count,
const Ice::Current& context = Ice::emptyCurrent);
private:
void output(std::ostream &stream) const;
public:
friend std::ostream &
operator<<(std::ostream &stream,
const Count& rhs)
{
rhs.output(stream);
return stream;
}
friend std::ostream &
operator<<(std::ostream &stream,
const CountPtr& rhs)
{
rhs->output(stream);
return stream;
}
friend std::ostream &
operator<<(std::ostream &stream,
const CountBasePtr& rhs)
{
stream << CountPtr::dynamicCast(rhs);
return stream;
}
};
}
#endif