libvpb
4.2.61
|
Classes | |
struct | Country |
Container type for country specific data. More... | |
Functions | |
void WINAPI | vpb_set_country (const Country *country) |
Set the global default country specific information. More... | |
int WINAPI | vpb_set_country (VPBPortHandle handle, const Country *country) |
Set the country specific information for an individual port. More... | |
const Country *WINAPI | vpb_get_port_country (VPBPortHandle handle) |
Get the current country data for port handle. | |
const Country *WINAPI | vpb_get_country_data (const std::string &name) |
Get country specific data by name. More... | |
const Country *WINAPI | vpb_get_country_data (int code) |
Get country specific data by numeric country code. More... | |
const Country* WINAPI vpb_get_country_data | ( | const std::string & | name | ) |
Get country specific data by name.
name | A country name from the list here. |
NULL
if name is not a pre-defined country name. Referenced by VTCore::Reset().
const Country* WINAPI vpb_get_country_data | ( | int | code | ) |
Get country specific data by numeric country code.
code | The ITU-T numeric country calling code. A comprehensive list of the numeric country codes is available here: http://wikipedia.org/wiki/List_of_country_calling_codes |
NULL
if code is not a pre-defined numeric country code. void WINAPI vpb_set_country | ( | const Country * | country | ) |
Set the global default country specific information.
This data will be used for ports that have not had their country data set individually. If country is NULL
it will restore the initial hardcoded default country settings (ie. AUSTRALIA
).
int WINAPI vpb_set_country | ( | VPBPortHandle | handle, |
const Country * | country | ||
) |
Set the country specific information for an individual port.
This will override the default country data for handle. If country is NULL
, then handle will revert to using the global default data.