TinyURDF 1.0.0
Loading...
Searching...
No Matches
sphere_parser.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_INTERNAL_SPHERE_PARSER_H_
2#define INCLUDE_TINYURDF_INTERNAL_SPHERE_PARSER_H_
3
4// Copyright 2025 Wissem CHIHA
5
7#include "core/sphere.h"
8#include "utility/utils.h"
9
10class SphereParser final : public ParserBase<Sphere> {
11public:
13 void parse(const tinyxml2::XMLElement* xml) override;
14 bool isA(const char* name) const override;
15 const char* getTypename() const override;
16 std::string toString() const override;
17 bool empty() const override;
18 void clear() override;
19 std::shared_ptr<Sphere> get() override;
20 ~SphereParser() = default;
21private:
22 std::shared_ptr<Sphere> p_;
23};
24#endif // INCLUDE_TINYURDF_INTERNAL_SPHERE_PARSER_H_
Definition parser_base.h:12
Definition sphere_parser.h:10
~SphereParser()=default
std::string toString() const override
Definition sphere_parser.cc:27
bool isA(const char *name) const override
Definition sphere_parser.cc:19
SphereParser()
Definition sphere_parser.cc:3
const char * getTypename() const override
Definition sphere_parser.cc:23
void clear() override
Definition sphere_parser.cc:41
bool empty() const override
Definition sphere_parser.cc:37
std::shared_ptr< Sphere > get() override
Definition sphere_parser.cc:45
void parse(const tinyxml2::XMLElement *xml) override
Definition sphere_parser.cc:7