TinyURDF 1.0.0
Loading...
Searching...
No Matches
property_base.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_COMMON_PROPERTY_BASE_H_
2#define INCLUDE_TINYURDF_COMMON_PROPERTY_BASE_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <string>
7
9{
10 public:
11 virtual bool validate() const { return true; };
12 virtual std::string toString() const = 0;
13
14 protected:
16 virtual ~PropertyBase() {};
17 virtual bool isA(const char* name) const = 0;
18 virtual PropertyBase* getPointer() { return this; };
19 virtual PropertyBase& operator=(const PropertyBase& rhs) { return *this; };
20 virtual void clear() = 0;
21};
22#endif // INCLUDE_TINYURDF_COMMON_PROPERTY_BASE_H_
Definition property_base.h:9
PropertyBase()
Definition property_base.h:15
virtual PropertyBase * getPointer()
Definition property_base.h:18
virtual ~PropertyBase()
Definition property_base.h:16
virtual bool isA(const char *name) const =0
virtual PropertyBase & operator=(const PropertyBase &rhs)
Definition property_base.h:19
virtual bool validate() const
Definition property_base.h:11
virtual void clear()=0
virtual std::string toString() const =0