TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
material_parser.h
Go to the documentation of this file.
1#ifndef TINYURDF_MATERIALPARSER_H
2#define TINYURDF_MATERIALPARSER_H
3
4// Copyright 2025 Wissem CHIHA
5
6#include "parser_base.h"
7#include "material.h"
8#include "color_parser.h"
9#include "property_parser.h"
10
12class MaterialParser : public ParserBase<Material> {
13public:
15 void print(std::ostream& os) override;
16 bool empty() const override;
17 void clear() override;
18 const char* getTypename() override;
19 bool isA(const char* name) override;
20 void parse(const tinyxml2::XMLElement* xml) override;
21 std::shared_ptr<Material> get() override;
22 ~MaterialParser() override;
23private:
24 std::shared_ptr<Material> p_;
25};
26#endif // TINYURDF_MATERIALPARSER_H
Parses the link material.
Definition material_parser.h:12
MaterialParser()
Definition material_parser.cc:3
const char * getTypename() override
Definition material_parser.cc:21
std::shared_ptr< Material > get() override
Definition material_parser.cc:56
void parse(const tinyxml2::XMLElement *xml) override
Definition material_parser.cc:29
void clear() override
Definition material_parser.cc:17
void print(std::ostream &os) override
Definition material_parser.cc:7
bool empty() const override
Definition material_parser.cc:13
bool isA(const char *name) override
Definition material_parser.cc:25
~MaterialParser() override
Definition parser_base.h:16