Go to the documentation of this file.
29 #include <unordered_map>
32 #include <RobotAPI/interface/aron.h>
87 return *
this == *other;
95 static std::vector<VariantPtr>
FromAronDTO(
const std::vector<data::dto::GenericDataPtr>&,
99 static std::vector<data::dto::GenericDataPtr>
ToAronDTO(
const std::vector<VariantPtr>&);
128 virtual std::vector<VariantPtr>
getChildren()
const = 0;
152 virtual data::dto::GenericDataPtr
toAronDTO()
const = 0;
virtual bool fullfillsType(const type::VariantPtr &) const =0
checks, if the current data variant fullfills the given type
std::unique_ptr< VariantFactory > VariantFactoryPtr
const data::Descriptor descriptor
std::shared_ptr< Variant > VariantPtr
virtual std::string getFullName() const =0
get the full str representation of this variant
static VariantPtr FromAronDTO(const data::dto::GenericDataPtr &, const Path &=Path())
create a variant from a dto object
The VariantFactory class.
Path getPath() const
get the path
virtual VariantPtr navigateAbsolute(const Path &path) const =0
naviate absolute
std::shared_ptr< Variant > VariantPtr
virtual std::vector< VariantPtr > getChildren() const =0
get the children of a data variant
std::shared_ptr< Value > value()
virtual bool operator==(const Variant &other) const =0
data::Descriptor getDescriptor() const
getter for the descriptor enum
virtual size_t childrenSize() const =0
get the children size of a data variant
virtual data::dto::GenericDataPtr toAronDTO() const =0
convert the variant to the ice representation
A convenience header to include all aron files (full include, not forward declared)
static std::vector< data::dto::GenericDataPtr > ToAronDTO(const std::vector< VariantPtr > &)
return a list of dto objects from a list of variant objects
virtual type::VariantPtr recalculateType() const =0
recalculate the type of a data variant. Please not tha the mapping ist NOT bijective,...
virtual VariantPtr cloneAsVariant() const =0
get a pointer to a copy of this variant
virtual ~Variant()=default
virtual VariantPtr navigateRelative(const Path &path) const =0
navigate relative
std::filesystem::path Path
Variant(const data::Descriptor &descriptor, const Path &path)
virtual std::string getShortName() const =0
get a short str representation of this variant
bool operator==(const VariantPtr &other) const
std::string pathToString() const
get the path as string
std::string toString() const