TinyURDF 1.0.0
Loading...
Searching...
No Matches
cylinder_parser.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_INTERNAL_CYLINDER_PARSER_H_
2#define INCLUDE_TINYURDF_INTERNAL_CYLINDER_PARSER_H_
3
4// Copyright 2025 Wissem CHIHA
5
8#include "core/cylinder.h"
9#include "utility/utils.h"
10
15class CylinderParser final : public ParserBase<Cylinder> {
16public:
18 void parse(const tinyxml2::XMLElement* xml) override;
19 bool isA(const char* name) const override;
20 const char* getTypename() const override;
21 std::string toString() const override;
22 bool empty() const override;
23 void clear() override;
24 std::shared_ptr<Cylinder> get() override;
25 ~CylinderParser() = default;
26private:
27 std::shared_ptr<Cylinder> p_;
28};
29#endif // INCLUDE_TINYURDF_INTERNAL_CYLINDER_PARSER_H_
Parser for Cylinder geometry, inherits from ParserBase<Cylinder> and provides the functionality to pa...
Definition cylinder_parser.h:15
bool empty() const override
Definition cylinder_parser.cc:38
CylinderParser()
Definition cylinder_parser.cc:3
const char * getTypename() const override
Definition cylinder_parser.cc:26
std::shared_ptr< Cylinder > get() override
Definition cylinder_parser.cc:46
void clear() override
Definition cylinder_parser.cc:42
void parse(const tinyxml2::XMLElement *xml) override
Definition cylinder_parser.cc:7
~CylinderParser()=default
bool isA(const char *name) const override
Definition cylinder_parser.cc:22
std::string toString() const override
Definition cylinder_parser.cc:30
Definition parser_base.h:12