TinyURDF 1.0.0
Loading...
Searching...
No Matches
version_parser.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_INTERNAL_VERSION_PARSER_H_
2#define INCLUDE_TINYURDF_INTERNAL_VERSION_PARSER_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <tinyxml2/tinyxml2.h>
7
8#include "internal/version.h"
9
16class VersionParser final
17{
18 public:
20 void parse(const tinyxml2::XMLDocument doc);
21 const char* getTypename() const;
22 std::shared_ptr<Version> get() const { return p_; }
24
25 private:
26 std::shared_ptr<Version> p_;
27};
28#endif // TINYURDF_VERSION_PARSER_H_
Base parser for the XML version tag.
Definition version_parser.h:17
void parse(const tinyxml2::XMLDocument doc)
Definition version_parser.cc:7
VersionParser()
Definition version_parser.cc:3
std::shared_ptr< Version > get() const
Definition version_parser.h:22
const char * getTypename() const
Definition version_parser.cc:32
~VersionParser()
Definition version_parser.cc:36