TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
Version Class Referencefinal

Version handling class. More...

#include <version.h>

Inheritance diagram for Version:
[legend]
Collaboration diagram for Version:
[legend]

Public Member Functions

 Version ()
 
 Version (const char *attr)
 
 Version (const Version &rhs)
 
Versionoperator= (const Version &rhs)
 
bool isA (const char *name) override
 
void clear () override
 
void print (std::ostream &os) override
 
bool equal (double maj, double min)
 
double getMajor () const
 
double getMinor () const
 
 ~Version ()
 
- Public Member Functions inherited from PropertyBase
virtual bool validate () const
 
virtual void set (const std::any &value)
 

Additional Inherited Members

- Protected Member Functions inherited from PropertyBase
 PropertyBase ()
 
virtual ~PropertyBase ()
 
virtual PropertyBasegetPointer ()
 
virtual PropertyBaseoperator= (const PropertyBase &rhs)
 

Detailed Description

Version handling class.

Note
Only accepts version strings of the type <major>.<minor>.
Todo:
Update to accept <major>, <minor>, or <major> <minor> (spaced) in a future release.

Constructor & Destructor Documentation

◆ Version() [1/3]

Version::Version ( )

◆ Version() [2/3]

Version::Version ( const char *  attr)

◆ Version() [3/3]

Version::Version ( const Version rhs)

◆ ~Version()

Version::~Version ( )

Member Function Documentation

◆ clear()

void Version::clear ( )
overridevirtual

Implements PropertyBase.

◆ equal()

bool Version::equal ( double  maj,
double  min 
)

◆ getMajor()

double Version::getMajor ( ) const

◆ getMinor()

double Version::getMinor ( ) const

◆ isA()

bool Version::isA ( const char *  name)
overridevirtual

Implements PropertyBase.

◆ operator=()

Version & Version::operator= ( const Version rhs)

◆ print()

void Version::print ( std::ostream &  os)
overridevirtual

Implements PropertyBase.


The documentation for this class was generated from the following files: