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.
typedef std::auto_ptr<ScFilter> OSB_LIB::ScFilter::AutoPtr |
OSB_LIB::ScFilter::ScFilter | ( | const Oid & | oid | ) |
Constructor with oid.
oid | Unique object identifier of the filter condition. |
OSB_LIB::ScFilter::ScFilter | ( | const Oid & | oid, | |
long | tId, | |||
OperatorType | op | |||
) |
Constructor with all info.
oid | Unique object identifier of the filter condition. | |
tId | Target service class id. | |
op | Type of operator. |
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.
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.
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.
session | Database session to use. | |
errors | Container for error messages if any. |
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.
session | Database session to use. |
Exception | on foreign key constraint. |
Implements OSB_LIB::FilterCond.
OperatorType OSB_LIB::ScFilter::oType | ( | ) | const |
Return the type of operator.
virtual void OSB_LIB::ScFilter::print | ( | ) | [virtual] |
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.
session | Database session to use. |
Exception | if object not found. |
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.
session | Database session to use. | |
errors | Container for error messages if any. |
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.
session | Database session to use. |
Exception | if object not found. |
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.
session | Database session to use. | |
errors | Container for error messages if any. |
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.
session | Database session to use. | |
errors | Container for error messages if any. |
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.
session | Database session to use. |
Exception | if object not found. |
Implements OSB_LIB::FilterCond.
friend class FilterCondFactory [friend] |
friend class FilterManager [friend] |
This will configure and manage this filter conditions.
Reimplemented from OSB_LIB::FilterCond.
friend struct OSB_DB::ScFilterGw [friend] |
OperatorType OSB_LIB::ScFilter::op_ [private] |
long OSB_LIB::ScFilter::tId_ [private] |