Definition at line 327 of file resourcelists.h.
OSB_LIB::ResourceLists::ResourceLists | ( | bool | useLocks | ) | [explicit] |
Constructor with locking flag.
useLocks | Flag if locking should be applied or not. |
bool OSB_LIB::ResourceLists::fetchAn | ( | const OSB_DB::Session & | session, | |
bool | availOnly = false , |
|||
const Id< Network > & | nwId = Id< Network >() | |||
) |
Read access number resource into internal list.
session | Database session to use. | |
availOnly | Flag if only available access number resources should be read. | |
nwId | Optional network id of the access number resources to read. |
static bool OSB_LIB::ResourceLists::fetchAn | ( | const OSB_DB::Session & | session, | |
AnList & | dest, | |||
bool | availOnly = false , |
|||
const Id< Network > & | nwId = Id< Network >() | |||
) | [static] |
Read access number resources from the database.
session | Database session to use. | |
dest | Access number resource list to populate. | |
availOnly | Flag if only available access number resources should be read. | |
nwId | Optional network id of the access number resources to read. |
bool OSB_LIB::ResourceLists::fetchE164 | ( | const OSB_DB::Session & | session, | |
Resource::Status | status, | |||
const std::string & | pattern, | |||
size_t | maxAdd | |||
) |
Read E.164 resources from the database.
session | Database session to use. | |
status | Status of the number, ignored if set to Resource::rsUnknown. | |
pattern | Pattern for which to search, ignored if empty: '?' matches one digit, '*' matches a sequence of digits. | |
maxAdd | Maximum number of entries added to dest. |
static bool OSB_LIB::ResourceLists::fetchE164 | ( | const OSB_DB::Session & | session, | |
E164List & | dest, | |||
Resource::Status | status, | |||
const std::string & | pattern, | |||
size_t | maxAdd | |||
) | [static] |
Read E.164 resources from the database.
session | Database session to use. | |
dest | Resource list to populate. | |
status | Status of the number, ignored if set to Resource::rsUnknown. | |
pattern | Pattern for which to search, ignored if empty: '?' matches one digit, '*' matches a sequence of digits. | |
maxAdd | Maximum number of entries added to dest. |
bool OSB_LIB::ResourceLists::fetchIp4 | ( | const OSB_DB::Session & | session, | |
bool | availOnly = false , |
|||
const Id< Network > & | nwId = Id< Network >() | |||
) |
Read IP4 address resource into internal list.
session | Database session to use. | |
availOnly | Flag if only available IP4 address resources should be read. | |
nwId | Optional network id of the IP4 address resources to read. |
static bool OSB_LIB::ResourceLists::fetchIp4 | ( | const OSB_DB::Session & | session, | |
Ip4List & | dest, | |||
bool | availOnly = false , |
|||
const Id< Network > & | nwId = Id< Network >() | |||
) | [static] |
Read IP4 address resources from the database.
session | Database session to use. | |
dest | IP4 address resource list to populate. | |
availOnly | Flag if only available IP4 address resources should be read. | |
nwId | Optional network id of the IP4 address resources to read. |
bool OSB_LIB::ResourceLists::fetchIpg | ( | const OSB_DB::Session & | session, | |
bool | availOnly = false , |
|||
const Id< Network > & | nwId = Id< Network >() | |||
) |
Read IP group resource into internal list.
session | Database session to use. | |
availOnly | Flag if only available IP group resources should be read. | |
nwId | Optional network id of the IP group resources to read. |
static bool OSB_LIB::ResourceLists::fetchIpg | ( | const OSB_DB::Session & | session, | |
IpGroupList & | dest, | |||
bool | availOnly = false , |
|||
const Id< Network > & | nwId = Id< Network >() | |||
) | [static] |
Read IP group resources from the database.
session | Database session to use. | |
dest | IP group resource list to populate. | |
availOnly | Flag if only available IP group resources should be read. | |
nwId | Optional network id of the IP group resources to read. |
bool OSB_LIB::ResourceLists::fetchTr | ( | const OSB_DB::Session & | session, | |
bool | availOnly = false , |
|||
const Id< Network > & | nwId = Id< Network >() | |||
) |
Read trunk resource into internal list.
session | Database session to use. | |
availOnly | Flag if only available trunk resources should be read. | |
nwId | Optional network id of the trunk resources to read. |
static bool OSB_LIB::ResourceLists::fetchTr | ( | const OSB_DB::Session & | session, | |
TrList & | dest, | |||
bool | availOnly = false , |
|||
const Id< Network > & | nwId = Id< Network >() | |||
) | [static] |
Read trunk resources from the database.
session | Database session to use. | |
dest | Trunk resource list to populate. | |
availOnly | Flag if only available trunk resources should be read. | |
nwId | Optional network id of the trunk resources to read. |
void OSB_LIB::ResourceLists::getAssignableIp4s | ( | const OSB_DB::Session & | session, | |
AssignableIp4s & | dest | |||
) |
Get assignable IP4 addresses that can be assigned to the IP group.
session | Database session to use. | |
dest | Assignable IP4 address list to populate. |