oaSimpleConstraintDef Class Reference

Inheritance diagram for oaSimpleConstraintDef:

oaConstraintDef oaSessionObject oaObject


Static Public Methods

oaSimpleConstraintDef * create (const oaString &name, const oaSubset< oaType > &allowedValues, const oaSubset< oaType > &allowedObjects, const oaSubset< oaDBType > &allowedDB)
oaSimpleConstraintDef * get (oaSimpleConstraintType type)

Detailed Description

The oaSimpleConstraintDef object specifies a definition for a simple constraint. The definition contains a name, a list of databases that the constraint can be created in, and a list of types of oaValues that are allowed for the constraint. The names for constraint definitions must be unique.


Member Function Documentation

oaSimpleConstraintDef * oaSimpleConstraintDef::create const oaString &    name,
const oaSubset< oaType > &    allowedValues,
const oaSubset< oaType > &    allowedObjects,
const oaSubset< oaDBType > &    allowedDB
[static]
 

This function creates a new simple constraint definition with the specified attributes.

Parameters:
name The name of the new definition.
allowedValues The value types that constraints with this definition can have.
allowedObjects The objects that constraints with this definition can be attached to.
allowedDB The databases that constraints with this definition can be created in.
Exceptions:
oacConstraintDefExists 
oacInvalidValueType 

oaSimpleConstraintDef * oaSimpleConstraintDef::get oaSimpleConstraintType    type [static]
 

This function returns the built-in simple constraint definition of the type specified.

Parameters:
type The built in simple constraint type to get.


The documentation for this class was generated from the following files:

Return to top of page