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 public:
10 virtual bool validate() const {return true;};
11 virtual std::string toString() const = 0;
12 protected:
14 virtual ~PropertyBase() {};
15 virtual bool isA(const char* name) const = 0;
16 virtual PropertyBase* getPointer() {return this;};
17 virtual PropertyBase& operator=(const PropertyBase& rhs) {return *this;};
18 virtual void clear() = 0;
19};
20#endif // INCLUDE_TINYURDF_COMMON_PROPERTY_BASE_H_
Definition property_base.h:8
PropertyBase()
Definition property_base.h:13
virtual PropertyBase * getPointer()
Definition property_base.h:16
virtual ~PropertyBase()
Definition property_base.h:14
virtual bool isA(const char *name) const =0
virtual PropertyBase & operator=(const PropertyBase &rhs)
Definition property_base.h:17
virtual bool validate() const
Definition property_base.h:10
virtual void clear()=0
virtual std::string toString() const =0