|
Jpp
|
Universal product identifier (UPI). More...
#include <JUPI.hh>
Public Member Functions | |
| JUPI () | |
| Default constructor. More... | |
| JUPI (const JPBS &pbs, const std::string &variant="") | |
| Constructor. More... | |
| JUPI (const std::string &upi) | |
| Constructor. More... | |
| const JUPI & | getUPI () const |
| Get UPI. More... | |
| const std::string & | getVariant () const |
| Get variant. More... | |
| ClassDefNV (JUPI, 1) | |
| const JPBS & | getPBS () const |
| Get PBS. More... | |
| bool | is_valid () const |
| Check validity. More... | |
| ClassDefNV (JPBS, 1) | |
Static Public Attributes | |
| static const char | DOT = '.' |
| Separator between PBS values. More... | |
| static const char | SEPARATOR = '/' |
| Separator between PBS and variant. More... | |
Protected Attributes | |
| std::string | variant |
Friends | |
| bool | operator== (const JUPI &first, const JUPI &second) |
| Equality. More... | |
| bool | operator< (const JUPI &first, const JUPI &second) |
| Less-than operator. More... | |
| std::istream & | operator>> (std::istream &in, JUPI &object) |
| Read UPI from input stream. More... | |
| std::ostream & | operator<< (std::ostream &out, const JUPI &object) |
| Write UPI to output stream. More... | |
Universal product identifier (UPI).
The UPI consists of a PBS and a variant, seperated by JPBS::SEPARATOR.
The ASCII format should therefore read "<int>[.<int>]+/<variant>".
The variant cannot start with any kind of white space.
|
inline |
|
inline |
|
inline |
|
inline |
Get variant.
| JDATABASE::JUPI::ClassDefNV | ( | JUPI | , |
| 1 | |||
| ) |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Equality.
| first | first UPI |
| second | second UPI |
Definition at line 92 of file JUPI.hh.
Less-than operator.
| first | first UPI |
| second | second UPI |
Definition at line 106 of file JUPI.hh.
|
friend |
Read UPI from input stream.
| in | input stream |
| object | UPI |
Definition at line 122 of file JUPI.hh.
|
friend |
Write UPI to output stream.
| out | output stream |
| object | UPI |
Definition at line 156 of file JUPI.hh.
|
staticinherited |
|
staticinherited |
1.8.5