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