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... | |
bool | equals (const JUPI &upi) const |
Equality. More... | |
const JPBS & | getPBS () const |
Get PBS. More... | |
bool | is_valid () const |
Check validity. More... | |
bool | equals (const JPBS &pbs) const |
Equality. More... | |
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) |
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 |
|
inline |
Equality.
upi | UPI |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Equality.
pbs | PBS |
|
friend |
|
friend |
Write UPI to output stream.
out | output stream |
object | UPI |
|
staticinherited |
|
staticinherited |