OSB_LIB::CountryInfo Class Reference

Collaboration diagram for OSB_LIB::CountryInfo:

Collaboration graph
[legend]
List of all members.

Detailed Description

This is just an infomation class contains the object identifier, name of the country, three letter alphabet code for this country and the international dialing E.164 code.

Definition at line 72 of file countryinfo.h.

Public Types

Public Member Functions

Read access to the data members:
Database operations:

Private Attributes

Friends


Member Typedef Documentation

typedef Id<CountryInfo> OSB_LIB::CountryInfo::Oid

Unique identifier.

Definition at line 78 of file countryinfo.h.


Constructor & Destructor Documentation

OSB_LIB::CountryInfo::CountryInfo ( const Oid oid = Oid()  ) 

Default constructor.


Member Function Documentation

const std::string& OSB_LIB::CountryInfo::alphabetCode (  )  const

Return the alphabet code for the country.

const std::string& OSB_LIB::CountryInfo::e164cc (  )  const

Return the international dialing E.164 code.

const std::string& OSB_LIB::CountryInfo::name (  )  const

Return the name of the country.

const Oid& OSB_LIB::CountryInfo::oid (  )  const

Return the unique object identifier.

bool OSB_LIB::CountryInfo::read ( const OSB_DB::Session session  ) 

Read the country info from the database.

This will read the country info from the database. Before calling this function the object id should be set.

Parameters:
session Database session to use.
Exceptions:
Exception on general database error.
Returns:
True if object read successfully else false.


Friends And Related Function Documentation

friend struct OSB_DB::CountryInfoGw [friend]

This is to access the private attributes on fetch method.

Definition at line 75 of file countryinfo.h.


Member Data Documentation

std::string OSB_LIB::CountryInfo::alphabetCode_ [private]

Three letter alphabet code for this country.

Definition at line 115 of file countryinfo.h.

std::string OSB_LIB::CountryInfo::e164cc_ [private]

International dialing E.164 code.

Definition at line 117 of file countryinfo.h.

std::string OSB_LIB::CountryInfo::name_ [private]

Name of the country.

Definition at line 113 of file countryinfo.h.

Oid OSB_LIB::CountryInfo::oid_ [private]

Unique object identifier.

Definition at line 111 of file countryinfo.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:15:25 2006 for OSB Library by  doxygen 1.4.7