This is user created, non-prepaid, network specific, re-usable resource.
Definition at line 73 of file ipaddress.h.
Constructor with resource number and network id.
rn | The resource number(IP address string). | |
nw | The id of the network that owns the IP address resource. |
bool OSB_LIB::Ip4Address::canSetGroup | ( | ) | const |
Can set or unset IP group? (Always true here).
bool OSB_LIB::Ip4Address::canUpd | ( | ) | const [virtual] |
This IP4 address can be update?
Reimplemented from OSB_LIB::Resource.
const std::string& OSB_LIB::Ip4Address::des | ( | ) | const |
Description.
bool OSB_LIB::Ip4Address::insert | ( | const OSB_DB::Session & | session | ) | [virtual] |
bool OSB_LIB::Ip4Address::isAvailable | ( | ) | const [virtual] |
Check if an IP4 address can be assigned to an IP group.
Reimplemented from OSB_LIB::Resource.
bool OSB_LIB::Ip4Address::read | ( | const OSB_DB::Session & | session | ) | [virtual] |
bool OSB_LIB::Ip4Address::remove | ( | const OSB_DB::Session & | session | ) | [virtual] |
void OSB_LIB::Ip4Address::setDes | ( | const std::string & | des | ) |
Set the description.
Type OSB_LIB::Ip4Address::typeId | ( | ) | const [virtual] |
void OSB_LIB::Ip4Address::updData | ( | const OSB_DB::Session & | session | ) | [virtual] |
void OSB_LIB::Ip4Address::verify | ( | ) | const [private] |
To verify whether the resource number(IP address string) is valid.
The IP address will be composed of 4 parts (part1.part2.part3.part4) separated by dots. Each part is a number with range from 0 to 255 except part1 from 1 to 255.
friend class IpGroup [friend] |
friend class OSB_DB::Ip4AddressGw [friend] |
std::string OSB_LIB::Ip4Address::des_ [private] |
const Type OSB_LIB::Ip4Address::typeId_ = rtIp4Address [static, private] |