TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
version.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_VERSION_H_
2#define INCLUDE_TINYURDF_VERSION_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <string>
7#include <vector>
8#include <iostream>
9
10#include <loguru/loguru.hpp>
11
12#include "property_base.h"
13#include "utils.h"
14
18class Version final : public PropertyBase{
19public:
20 Version();
21 Version(const char *attr);
22 Version(const Version& rhs);
23 Version& operator=(const Version& rhs);
24 bool isA(const char* name) override;
25 void clear() override;
26 void print(std::ostream& os) override;
27 bool equal(double maj, double min);
28 double getMajor() const;
29 double getMinor() const;
30 ~Version();
31private:
32 double major_, minor_ ;
33};
34#endif // INCLUDE_TINYURDF_VERSION_H_
Definition property_base.h:9
Version handling class.
Definition version.h:18
bool equal(double maj, double min)
Definition version.cc:69
double getMajor() const
Definition version.cc:74
Version & operator=(const Version &rhs)
Definition version.cc:44
bool isA(const char *name) override
Definition version.cc:54
~Version()
Definition version.cc:39
Version()
Definition version.cc:3
double getMinor() const
Definition version.cc:79
void print(std::ostream &os) override
Definition version.cc:64
void clear() override
Definition version.cc:59