Om  1.0.0
A universal framework for multimedia simulation
Public Types | Public Member Functions | List of all members
om::engine::base::ConnectorFlags Class Reference

A class that specifies boolean flags for how two connected objects interact. More...

#include <omEngineConnectorFlags.h>

Public Types

enum  Flag {
  UNDEFINED = 0, ENABLED = (1 << 0), PRE = (1 << 1), POST = (1 << 2),
  DEFAULT = ENABLED | PRE
}
 An enum that specifies the different connector flags. More...
 

Public Member Functions

 ConnectorFlags ()
 Create a new connector flags object with no flags set. More...
 
 ConnectorFlags (Flag flag)
 Create a new connector flags object with the specified flag value initially set. More...
 
 ConnectorFlags (UInt32 newFlags)
 Create a new connector flags object with the specified initial combined flags value. More...
 
 operator UInt32 () const
 Convert this connector flags object to an integer value. More...
 
Bool isSet (Flag flag) const
 Return whether or not the specified flag value is set for this flags object. More...
 
void set (Flag flag, Bool newIsSet)
 Set whether or not the specified flag value is set for this flags object. More...
 

Detailed Description

A class that specifies boolean flags for how two connected objects interact.

Member Enumeration Documentation

An enum that specifies the different connector flags.

Enumerator
UNDEFINED 

The flag value when all flags are not set.

ENABLED 

A flag indicating that the connector is enabled.

PRE 

A flag indicating that the connector is updated before a system's update.

POST 

A flag indicating that the connector is updated after a system's update.

DEFAULT 

The default flags to use for a connector.

Constructor & Destructor Documentation

om::engine::base::ConnectorFlags::ConnectorFlags ( )
inline

Create a new connector flags object with no flags set.

om::engine::base::ConnectorFlags::ConnectorFlags ( Flag  flag)
inline

Create a new connector flags object with the specified flag value initially set.

om::engine::base::ConnectorFlags::ConnectorFlags ( UInt32  newFlags)
inline

Create a new connector flags object with the specified initial combined flags value.

Member Function Documentation

om::engine::base::ConnectorFlags::operator UInt32 ( ) const
inline

Convert this connector flags object to an integer value.

This operator is provided so that the ConnectorFlags object can be used as an integer value for bitwise logical operations.

Bool om::engine::base::ConnectorFlags::isSet ( Flag  flag) const
inline

Return whether or not the specified flag value is set for this flags object.

void om::engine::base::ConnectorFlags::set ( Flag  flag,
Bool  newIsSet 
)
inline

Set whether or not the specified flag value is set for this flags object.


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