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>
11{
12 public:
14 void parse(const tinyxml2::XMLElement* xml) override;
15 bool isA(const char* name) const override;
16 const char* getTypename() const override;
17 std::string toString() const override;
18 bool empty() const override;
19 void clear() override;
20 std::shared_ptr<Sphere> get() override;
21 ~SphereParser() = default;
22
23 private:
24 std::shared_ptr<Sphere> p_;
25};
26#endif // INCLUDE_TINYURDF_INTERNAL_SPHERE_PARSER_H_
Definition parser_base.h:15
Definition sphere_parser.h:11
~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