See template<typename T> Id for the motivation.
In the OSB library many classes support versions, e.g. TariffPeriod an TpVersion.
This template provides object identifiers to support such relationships.
Definition at line 135 of file osbid.h.
OSB_LIB::Id2< I >::Id2 | ( | ) | [inline] |
OSB_LIB::Id2< I >::Id2 | ( | long | id1 | ) | [inline, explicit] |
OSB_LIB::Id2< I >::Id2 | ( | long | id1, | |
long | id2 | |||
) | [inline] |
bool OSB_LIB::Id2< I >::id1Set | ( | ) | const [inline] |
bool OSB_LIB::Id2< I >::id2Set | ( | ) | const [inline] |
bool OSB_LIB::Id2< I >::isSet | ( | ) | const [inline] |
Object id set?
Definition at line 148 of file osbid.h.
Referenced by OSB_LIB::Id2< OSB_LIB::PersProductNode >::notSet().
bool OSB_LIB::Id2< I >::notSet | ( | ) | const [inline] |
bool OSB_LIB::Id2< I >::operator!= | ( | const Id2< I > & | rhs | ) | const [inline] |
bool OSB_LIB::Id2< I >::operator< | ( | const Id2< I > & | rhs | ) | const [inline] |
bool OSB_LIB::Id2< I >::operator<= | ( | const Id2< I > & | rhs | ) | const [inline] |
bool OSB_LIB::Id2< I >::operator== | ( | const Id2< I > & | rhs | ) | const [inline] |
bool OSB_LIB::Id2< I >::operator> | ( | const Id2< I > & | rhs | ) | const [inline] |
bool OSB_LIB::Id2< I >::operator>= | ( | const Id2< I > & | rhs | ) | const [inline] |
long OSB_LIB::Id2< I >::id1_ |
Primary id: usually the one of the parent object.
Definition at line 203 of file osbid.h.
Referenced by OSB_LIB::Id2< OSB_LIB::PersProductNode >::id1Set(), OSB_LIB::Id2< OSB_LIB::PersProductNode >::isSet(), OSB_LIB::Id2< OSB_LIB::PersProductNode >::operator<(), OSB_LIB::Id2< OSB_LIB::PersProductNode >::operator==(), and OSB_LIB::PricelistCfg::pricelistId().
long OSB_LIB::Id2< I >::id2_ |
Secondary id: usually this identifes the child or the version.
Definition at line 205 of file osbid.h.
Referenced by OSB_LIB::Id2< OSB_LIB::PersProductNode >::id2Set(), OSB_LIB::Id2< OSB_LIB::PersProductNode >::isSet(), OSB_LIB::Id2< OSB_LIB::PersProductNode >::operator<(), and OSB_LIB::Id2< OSB_LIB::PersProductNode >::operator==().