TinyURDF 1.0.0
Loading...
Searching...
No Matches
box_parser.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_INTERNAL_BOX_PARSER_H_
2#define INCLUDE_TINYURDF_INTERNAL_BOX_PARSER_H_
3
4// Copyright 2025 Wissem CHIHA
5
8#include "core/box.h"
9#include "utility/utils.h"
10
15class BoxParser : public ParserBase<Box> {
16 public:
17 BoxParser();
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<Box> get() override;
25 ~BoxParser() override;
26 private:
27 std::shared_ptr<Box> p_;
28};
29#endif // INCLUDE_TINYURDF_INTERNAL_BOX_PARSER_H_
Parser for Box geometry, inherits from ParserBase<Box> and provides the functionality to parse the bo...
Definition box_parser.h:15
void clear() override
Definition box_parser.cc:39
bool empty() const override
Definition box_parser.cc:35
BoxParser()
Definition box_parser.cc:3
std::string toString() const override
Definition box_parser.cc:26
~BoxParser() override
const char * getTypename() const override
Definition box_parser.cc:22
void parse(const tinyxml2::XMLElement *xml) override
Definition box_parser.cc:7
std::shared_ptr< Box > get() override
Definition box_parser.cc:43
bool isA(const char *name) const override
Definition box_parser.cc:18
Definition parser_base.h:12