TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
box_parser.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_GEOMETRY_BOX_PARSER_H_
2#define INCLUDE_TINYURDF_GEOMETRY_BOX_PARSER_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <memory>
7#include "geometry_base.h"
8#include "parser_base.h"
9#include "utils.h"
10#include "box.h"
11
16class BoxParser : public ParserBase<Box> {
17public:
18 BoxParser();
19 void parse(const tinyxml2::XMLElement* xml) override;
20 bool isA(const char* name) override;
21 const char* getTypename() override;
22 void print(std::ostream& os) override;
23 bool empty() const override;
24 void clear() override;
25 std::shared_ptr<Box> get() override;
26 ~BoxParser() override;
27private:
28 std::shared_ptr<Box> p_;
29};
30#endif // INCLUDE_TINYURDF_GEOMETRY_BOX_PARSER_H_
Parser for Box geometry, inherits from ParserBase<Box> and provides the functionality to parse the bo...
Definition box_parser.h:16
void clear() override
Definition box_parser.cc:36
const char * getTypename() override
Definition box_parser.cc:22
bool empty() const override
Definition box_parser.cc:32
void print(std::ostream &os) override
Definition box_parser.cc:26
BoxParser()
Definition box_parser.cc:3
~BoxParser() override
bool isA(const char *name) override
Definition box_parser.cc:18
void parse(const tinyxml2::XMLElement *xml) override
Definition box_parser.cc:7
std::shared_ptr< Box > get() override
Definition box_parser.cc:40
Definition parser_base.h:16