Skip to content
Snippets Groups Projects
Commit 01bb825e authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Added operators

parent 415479d7
No related branches found
No related tags found
No related merge requests found
......@@ -134,4 +134,29 @@ namespace armarx
this->sleepFor(shortSleepDuration);
}
DebugDrawerTopic::operator bool() const
{
return topic;
}
armarx::DebugDrawerTopic::operator DebugDrawerInterfacePrx& ()
{
return topic;
}
armarx::DebugDrawerTopic::operator const DebugDrawerInterfacePrx& () const
{
return topic;
}
DebugDrawerInterfacePrx& DebugDrawerTopic::operator->()
{
return topic;
}
const DebugDrawerInterfacePrx& DebugDrawerTopic::operator->() const
{
return topic;
}
}
......@@ -87,12 +87,23 @@ namespace armarx
const DrawColor& color, const std::string& name, const std::string& layer);
/// Indicate whether a topic is set, i.e. visualization is enabled.
operator bool() const;
operator DebugDrawerInterfacePrx& ();
operator const DebugDrawerInterfacePrx& () const;
/// Pointer member access operator to access the raw debug drawer proxy.
DebugDrawerInterfacePrx& operator->();
const DebugDrawerInterfacePrx& operator->() const;
private:
/// Sleep for the shortSleepDuration. Useful after clearing.
void shortSleep();
/// The name of the debug drawer topic.
static const std::string TOPIC_NAME;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment