Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • sw/armarx/robot-api
  • uwkce_singer/robot-api
  • untcg_hofmann/robot-api
  • ulqba_korosakov/RobotAPI
4 results
Show changes
......@@ -34,10 +34,11 @@ namespace armarx::aron::type
/**
* @brief The Int class. It represents the int type
*/
class Int :
public detail::PrimitiveVariant<type::dto::AronInt, Int>
class Int : public detail::PrimitiveVariant<type::dto::AronInt, Int, int>
{
public:
using Base = detail::PrimitiveVariant<type::dto::AronInt, Int, int>;
/* constructors */
Int(const Path& = Path());
Int(const type::dto::AronInt&, const Path& = Path());
......@@ -48,4 +49,4 @@ namespace armarx::aron::type
virtual std::string getShortName() const override;
virtual std::string getFullName() const override;
};
}
} // namespace armarx::aron::type
......@@ -23,8 +23,8 @@
// STD/STL
#include <string>
#include <map>
#include <string>
// Header
#include "Long.h"
......@@ -32,29 +32,31 @@
namespace armarx::aron::type
{
/* constructors */
Long::Long(const Path& path) :
detail::PrimitiveVariant<type::dto::AronLong, Long>(type::Descriptor::LONG, path)
Long::Long(const Path& path) : Base(type::Descriptor::LONG, path)
{
}
Long::Long(const type::dto::AronLong&o, const Path& path) :
detail::PrimitiveVariant<type::dto::AronLong, Long>(o, type::Descriptor::LONG, path)
Long::Long(const type::dto::AronLong& o, const Path& path) :
Base(o, type::Descriptor::LONG, path)
{
}
type::dto::AronLongPtr Long::toLongDTO() const
type::dto::AronLongPtr
Long::toLongDTO() const
{
return this->aron;
}
/* virtual implementations */
std::string Long::getShortName() const
std::string
Long::getShortName() const
{
return "Long";
}
std::string Long::getFullName() const
std::string
Long::getFullName() const
{
return "armarx::aron::type::Long";
}
}
} // namespace armarx::aron::type
......@@ -34,10 +34,11 @@ namespace armarx::aron::type
/**
* @brief The Long class. It represents the long type
*/
class Long :
public detail::PrimitiveVariant<type::dto::AronLong, Long>
class Long : public detail::PrimitiveVariant<type::dto::AronLong, Long, long>
{
public:
using Base = detail::PrimitiveVariant<type::dto::AronLong, Long, long>;
/* constructors */
Long(const Path& = Path());
Long(const type::dto::AronLong&, const Path& = Path());
......@@ -48,4 +49,4 @@ namespace armarx::aron::type
virtual std::string getShortName() const override;
virtual std::string getFullName() const override;
};
}
} // namespace armarx::aron::type
......@@ -23,8 +23,8 @@
// STD/STL
#include <string>
#include <map>
#include <string>
// Header
#include "String.h"
......@@ -32,30 +32,32 @@
namespace armarx::aron::type
{
/* constructors */
String::String(const Path& path) :
detail::PrimitiveVariant<type::dto::AronString, String>(type::Descriptor::STRING, path)
String::String(const Path& path) : Base(type::Descriptor::STRING, path)
{
}
String::String(const type::dto::AronString&o, const Path& path) :
detail::PrimitiveVariant<type::dto::AronString, String>(o, type::Descriptor::STRING, path)
String::String(const type::dto::AronString& o, const Path& path) :
Base(o, type::Descriptor::STRING, path)
{
}
/* public member functions */
type::dto::AronStringPtr String::toStringDTO() const
type::dto::AronStringPtr
String::toStringDTO() const
{
return aron;
}
/* virtual implementations */
std::string String::getShortName() const
std::string
String::getShortName() const
{
return "String";
}
std::string String::getFullName() const
std::string
String::getFullName() const
{
return "armarx::aron::type::String";
}
}
} // namespace armarx::aron::type
......@@ -34,10 +34,11 @@ namespace armarx::aron::type
/**
* @brief The String class. It represents the string type
*/
class String :
public detail::PrimitiveVariant<type::dto::AronString, String>
class String : public detail::PrimitiveVariant<type::dto::AronString, String, std::string>
{
public:
using Base = detail::PrimitiveVariant<type::dto::AronString, String, std::string>;
/* constructors */
String(const Path& = Path());
String(const type::dto::AronString&, const Path& = Path());
......@@ -48,4 +49,4 @@ namespace armarx::aron::type
virtual std::string getShortName() const override;
virtual std::string getFullName() const override;
};
}
} // namespace armarx::aron::type