TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
property_base.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_PROPERTY_BASE_H_
2#define INCLUDE_TINYURDF_PROPERTY_BASE_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <iostream>
7#include <any>
8
10public:
11 virtual bool validate() const {return true;};
12 virtual void set(const std::any& value){};
13protected:
15 virtual ~PropertyBase() {};
16 virtual bool isA(const char* name) = 0;
17 virtual PropertyBase* getPointer() {return this;};
18 virtual PropertyBase& operator=(const PropertyBase& rhs) {return *this;};
19 virtual void clear() = 0;
20 virtual void print(std::ostream& os) = 0;
21};
22#endif // INCLUDE_TINYURDF_PROPERTY_BASE_H_
Definition property_base.h:9
virtual void set(const std::any &value)
Definition property_base.h:12
PropertyBase()
Definition property_base.h:14
virtual PropertyBase * getPointer()
Definition property_base.h:17
virtual bool isA(const char *name)=0
virtual ~PropertyBase()
Definition property_base.h:15
virtual PropertyBase & operator=(const PropertyBase &rhs)
Definition property_base.h:18
virtual bool validate() const
Definition property_base.h:11
virtual void clear()=0
virtual void print(std::ostream &os)=0