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#include "internal/version.h"
8
15class VersionParser final {
16 public:
18 void parse(const tinyxml2::XMLDocument doc);
19 const char* getTypename() const;
20 std::shared_ptr<Version> get() const { return p_; }
22
23 private:
24 std::shared_ptr<Version> p_;
25};
26#endif // TINYURDF_VERSION_PARSER_H_
Base parser for the XML version tag.
Definition version_parser.h:15
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:20
const char * getTypename() const
Definition version_parser.cc:32
~VersionParser()
Definition version_parser.cc:36