OSB_LIB::Udr Class Reference

Inheritance diagram for OSB_LIB::Udr:

Inheritance graph
[legend]
List of all members.

Detailed Description

Common base for all kinds of usage details records.

Current known usage details records includes:

Definition at line 382 of file cdr.h.

Public Types

Public Member Functions

Protected Member Functions


Member Enumeration Documentation

enum OSB_LIB::Udr::UdrType

Types of summary usage details record.

Enumerator:
unknownUdr  Unknown type of Udr.
cdrCommon  Common call details record.
sumcdrPng  PNG summary CDR.
sumcdr01  SumCdr type 1.

Definition at line 388 of file cdr.h.


Constructor & Destructor Documentation

virtual OSB_LIB::Udr::~Udr (  )  [inline, virtual]

Virtual destructor.

Definition at line 385 of file cdr.h.


Member Function Documentation

template<typename T>
const T * OSB_LIB::Udr::isa ( const T *&  ptr  )  const

Downcasting: see template<typename T> T* isa(T*& ptr).

Definition at line 951 of file cdr.h.

template<typename T>
T * OSB_LIB::Udr::isa ( T *&  ptr  ) 

Downcast to a derived class.

The function uses dynamic_cast<T*> to downcast an object of RatingFn to an object of a derived class. An example is given below:

          class DerivedUdr : public Udr
          {
              ...
          };

          void foo(const Udr& udr)
          {
              ...
              DerivedUdr *newUdr = rf.isa<DerivedUdr>();
              if (newUdr) {
                  // work with newUdr.
              }
          }

Returns:
A pointer that has the type of the derived class. If the function fails, the pointer value is 0.

Definition at line 945 of file cdr.h.

virtual Udr& OSB_LIB::Udr::operator= ( const Udr rhs  )  [protected, virtual]

Assignment operator.

Remarks:
The operator is protected in order to avoid partial assignments of derived classes through pointers or references to the base class.

virtual UdrType OSB_LIB::Udr::udrType (  )  const [pure virtual]

Return the type of usage details record it is.

All derived classes should implement this function as the following:

          class DerivedUdr : public Udr
          {
              ...
              UdrType udrType() { return udrType; };
              ...
              static const UdrType const udrType_ = Udr::XXXX;
              ...
          };

Returns:
Type of usage details record this object is.

Implemented in OSB_LIB::Cdr, and OSB_LIB::SumCdr01.


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