OSB_LIB::IpAssignments Class Reference

Collaboration diagram for OSB_LIB::IpAssignments:

Collaboration graph
[legend]
List of all members.

Detailed Description

Assignments of IP addresses to IP groups.

This class provides read-only access to the assigments of IP addresses to IP groups.

Remarks:
The design is specialized for the needs of the rating application.

Definition at line 74 of file ipassignment.h.

Public Types

Public Member Functions

Private Attributes

Friends

Classes


Member Typedef Documentation

typedef std::vector<Entry> OSB_LIB::IpAssignments::Entries

STL-container used for assignment entries.

Definition at line 113 of file ipassignment.h.


Member Function Documentation

const Entries OSB_LIB::IpAssignments::entries (  )  const

Read access to all entries.

const Entry* OSB_LIB::IpAssignments::find ( const std::string &  ip,
IpGroup::Direction  dir,
const DateTime ts 
) const

Find the assignment of an IP address for a timestamp.

Parameters:
ip IP 4 or 6 address.
dir Direction of the traffic to search for.
ts Timestamp to search for.
Returns:
Pointer to the matching entry, 0 if no assignment for ts exists.
Remarks:
The signature of the function assumes that IP addresses (version 4 or 6) are unique accross all networks and network elements.

void OSB_LIB::IpAssignments::read ( const OSB_DB::Session session  ) 

Read all entries from the database.


Friends And Related Function Documentation

friend class OSB_DB::IpAssignmentGw [friend]

Definition at line 75 of file ipassignment.h.


Member Data Documentation

Entries OSB_LIB::IpAssignments::entries_ [private]

STL-containter with all assignments.

Definition at line 142 of file ipassignment.h.


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