|
Jpp
18.3.0
the software that should make you happy
|
Universal product identifier (UPI). More...
#include <JUPI_t.hh>
Public Member Functions | |
| JUPI_t () | |
| Default constructor. More... | |
| JUPI_t (const JPBS_t &pbs) | |
| Constructor. More... | |
| JUPI_t (const JPBS_t &pbs, const std::string &variant, const int version, const int number) | |
| Constructor. More... | |
| JUPI_t (const std::string &upi) | |
| Constructor. More... | |
| const JUPI_t & | getUPI () const |
| Get UPI. More... | |
| const std::string & | getVariant () const |
| Get variant. More... | |
| int | getVersion () const |
| Get version. More... | |
| int | getNumber () const |
| Get serial number. More... | |
| std::string | toString () const |
| Convert UPI. More... | |
| ClassDefNV (JUPI_t, 1) | |
| const JPBS_t & | getPBS () const |
| Get PBS. More... | |
| bool | is_valid () const |
| Check validity. More... | |
| ClassDefNV (JPBS_t, 1) | |
Static Public Attributes | |
| static const char | SEPARATOR = '/' |
| Separator between PBS, variant and version. More... | |
| static const int | DEFAULT_VERSION = -1 |
| Default version. More... | |
| static const int | DEFAULT_NUMBER = -1 |
| Default number. More... | |
| static const char | DOT = '.' |
| Separator between PBS values. More... | |
Protected Attributes | |
| std::string | variant |
| int | version |
| int | number |
Friends | |
| bool | operator== (const JUPI_t &first, const JUPI_t &second) |
| Equality. More... | |
| bool | operator< (const JUPI_t &first, const JUPI_t &second) |
| Less-than operator. More... | |
| std::istream & | operator>> (std::istream &in, JUPI_t &object) |
| Read UPI from input stream. More... | |
| std::ostream & | operator<< (std::ostream &out, const JUPI_t &object) |
| Write UPI to output stream. More... | |
Universal product identifier (UPI).
The UPI consists of a PBS, variant, version and serial number.
The corresponding ASCII format reads "<int>[.<int>]*/<variant>/<int>.<int>".
The version and serial number are not subject to I/O in case their value is default.
|
inline |
Default constructor.
Definition at line 44 of file JUPI_t.hh.
|
inline |
Constructor.
| pbs | PBS |
Definition at line 57 of file JUPI_t.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get version.
|
inline |
Get serial number.
|
inline |
| JDATABASE::JUPI_t::ClassDefNV | ( | JUPI_t | , |
| 1 | |||
| ) |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Equality.
| first | first UPI |
| second | second UPI |
Definition at line 161 of file JUPI_t.hh.
Less-than operator.
| first | first UPI |
| second | second UPI |
Definition at line 177 of file JUPI_t.hh.
|
friend |
Read UPI from input stream.
| in | input stream |
| object | UPI |
Definition at line 207 of file JUPI_t.hh.
|
friend |
Write UPI to output stream.
| out | output stream |
| object | UPI |
Definition at line 254 of file JUPI_t.hh.
|
static |
|
static |
|
static |
|
protected |
|
staticinherited |
1.8.5