OSB_LIB::ScFilter Class Reference

Inheritance diagram for OSB_LIB::ScFilter:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::ScFilter:

Collaboration graph
[legend]
List of all members.

Detailed Description

Service class filter condition.

This contains service class id to be matched and the operator to apply on the used service.

Definition at line 1591 of file filter.h.

Public Types

Public Member Functions

Read access to data members:
Modify data members.

Private Member Functions

Database operations.
Specific checking before status changes.

Private Attributes

Friends


Member Typedef Documentation

typedef std::auto_ptr<ScFilter> OSB_LIB::ScFilter::AutoPtr

Auto pointer to the service class filter.

Reimplemented from OSB_LIB::FilterCond.

Definition at line 1613 of file filter.h.


Constructor & Destructor Documentation

OSB_LIB::ScFilter::ScFilter ( const Oid oid  ) 

Constructor with oid.

Parameters:
oid Unique object identifier of the filter condition.

OSB_LIB::ScFilter::ScFilter ( const Oid oid,
long  tId,
OperatorType  op 
)

Constructor with all info.

Parameters:
oid Unique object identifier of the filter condition.
tId Target service class id.
op Type of operator.


Member Function Documentation

AutoPtr OSB_LIB::ScFilter::clone (  )  const

Returns the auto pointer to the copy of the service class filter condition

Reimplemented from OSB_LIB::FilterCond.

virtual FilterCond* OSB_LIB::ScFilter::clone_ (  )  const [private, virtual]

Abstract virtual constructor.

Create a copy of the service class filter condition: Allocate memory and initialize it with the current object. Clients of the class use the public member clone(), that returns an auto_ptr to the service class filter condition.

Returns:
A pointer to the new allocated copy of the service class filter condition.

Implements OSB_LIB::FilterCond.

bool OSB_LIB::ScFilter::eval ( const Cdr cdr,
const UsedService us 
) [virtual]

Evaluate the cdr and usedservice.

This will evaluate the usedservice by applying the operator on service class id in the usedservice and target id of this filter condition and return the result.

Parameters:
cdr Cdr object to use.
us UsedService object for evaluation.

Implements OSB_LIB::FilterCond.

virtual bool OSB_LIB::ScFilter::freezeSpecific ( const OSB_DB::Session session,
std::vector< OsbError > &  errors 
) [private, virtual]

Criteria checking before setting the status from editable to standby.

Parameters:
session Database session to use.
errors Container for error messages if any.
Returns:
True if all criteria satisfied else false.

Implements OSB_LIB::FilterCond.

bool OSB_LIB::ScFilter::insSpecific ( const OSB_DB::Session session  )  [private, virtual]

Insert service class filter specific data members into the database.

Parameters:
session Database session to use.
Exceptions:
Exception on foreign key constraint.
Returns:
True if the data members inserted successfully else false.

Implements OSB_LIB::FilterCond.

OperatorType OSB_LIB::ScFilter::oType (  )  const

Return the type of operator.

virtual void OSB_LIB::ScFilter::print (  )  [virtual]

This is for debugging purpose.

Implements OSB_LIB::FilterCond.

bool OSB_LIB::ScFilter::readSpecific ( const OSB_DB::Session session  )  [private, virtual]

Read service class filter specific data members from database. Before reading the data members, the filter condition id should be set because it is used to identify the object in the database.

Parameters:
session Database session to use.
Exceptions:
Exception if object not found.
Returns:
True if the service class filter read successfully else false.

Implements OSB_LIB::FilterCond.

virtual bool OSB_LIB::ScFilter::releaseSpecific ( const OSB_DB::Session session,
std::vector< OsbError > &  errors 
) [private, virtual]

Criteria checking before setting the status from standby to release.

Parameters:
session Database session to use.
errors Container for error messages if any.
Returns:
True if all criteria satisfied else false.

Implements OSB_LIB::FilterCond.

bool OSB_LIB::ScFilter::removeSpecific ( const OSB_DB::Session session  )  [private, virtual]

Remove service class filter specific data members from the database.

Parameters:
session Database session to use.
Exceptions:
Exception if object not found.
Returns:
True if the data members removed successfully else false.

Implements OSB_LIB::FilterCond.

virtual bool OSB_LIB::ScFilter::revokeSpecific ( const OSB_DB::Session session,
std::vector< OsbError > &  errors 
) [private, virtual]

Criteria checking before setting the status from release to standby.

Parameters:
session Database session to use.
errors Container for error messages if any.
Returns:
True if all criteria satisfied else false.

Implements OSB_LIB::FilterCond.

bool OSB_LIB::ScFilter::setOperator ( OperatorType  op  ) 

Set the operator.

bool OSB_LIB::ScFilter::setTargetId ( long  tId  ) 

Set the target service class id.

long OSB_LIB::ScFilter::targetId (  )  const

Return the target value for this filter condition object.

virtual bool OSB_LIB::ScFilter::unfreezeSpecific ( const OSB_DB::Session session,
std::vector< OsbError > &  errors 
) [private, virtual]

Criteria checking before setting the status from standby to editable.

Parameters:
session Database session to use.
errors Container for error messages if any.
Returns:
True if all criteria satisfied else false.

Implements OSB_LIB::FilterCond.

bool OSB_LIB::ScFilter::updSpecific ( const OSB_DB::Session session  )  [private, virtual]

Update service class filter specific data members in database.

Parameters:
session Database session to use.
Exceptions:
Exception if object not found.
Returns:
True if the data members updated successfully else false.

Implements OSB_LIB::FilterCond.


Friends And Related Function Documentation

friend class FilterCondFactory [friend]

This will create this filter condition and configure the given input.

Definition at line 1603 of file filter.h.

friend class FilterManager [friend]

This will configure and manage this filter conditions.

Reimplemented from OSB_LIB::FilterCond.

Definition at line 1608 of file filter.h.

friend struct OSB_DB::ScFilterGw [friend]

This will perform all the database operation for service class filter.

Definition at line 1597 of file filter.h.


Member Data Documentation

OperatorType OSB_LIB::ScFilter::op_ [private]

Type of operator (e.g. ==,!=).

Definition at line 1799 of file filter.h.

long OSB_LIB::ScFilter::tId_ [private]

Target service class id.

Definition at line 1802 of file filter.h.


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