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