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

Move function implementation to cpp, add assertion messages

parent 5870d7cc
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ Client::Client(ManagedIceObject& obj,
std::string const& storageName)
{
componentName = obj.getName();
ARMARX_CHECK_NOT_EMPTY(componentName);
ARMARX_CHECK_NOT_EMPTY(componentName) << "ArViz client must be created with non-empty component name.";
obj.getTopic(topic, topicName);
obj.getProxy(storage, storageName);
}
......@@ -70,6 +70,13 @@ Client Client::createForGuiPlugin(Component& component,
return client;
}
Layer Client::layer(const std::string &name) const
{
ARMARX_CHECK_NOT_EMPTY(componentName) << "Layers must be created with non-empty component name.";
ARMARX_CHECK_NOT_EMPTY(name) << "Layers must be created with non-empty layer name.";
return Layer(componentName, name);
}
CommitResult Client::commit(const StagedCommit& commit)
{
CommitResult result;
......
......@@ -130,12 +130,7 @@ namespace viz
std::string const& topicName = "ArVizTopic",
std::string const& storageName = "ArVizStorage");
Layer layer(std::string const& name) const
{
ARMARX_CHECK_NOT_EMPTY(componentName);
ARMARX_CHECK_NOT_EMPTY(name);
return Layer(componentName, name);
}
Layer layer(std::string const& name) const;
StagedCommit stage()
{
......
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