MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Member Functions | Protected Attributes
mds::base::CHasOptions Class Reference

Base class that encapsulates object-specific options (binary flags). More...

#include <mdsHasOptions.h>

Inheritance diagram for mds::base::CHasOptions:
Inheritance graph
[legend]

List of all members.

Public Member Functions

CHasOptionsaddOption (int Flag)
 Adds a given flag using bitwise OR operation.
 CHasOptions (int Flags=0)
 Default constructor.
 CHasOptions (const CHasOptions &Flags)
 Copy constructor.
bool checkAllOptions (int Flags) const
 Checks if all specified flags are set.
bool checkAnyOption (int Flags) const
 Checks if any of specified flags is set.
int checkOption (int Flag) const
 Checks if a single flag is set.
CHasOptionsclearOption (int Flag)
 Removes a given flag.
int getOptions () const
 Returns all flags.
CHasOptionsoperator= (const CHasOptions &Flags)
 Assignment operator.
CHasOptionssetOption (int Flag)
 Adds a given flag using bitwise OR operation.
CHasOptionssetOptions (int Flags)
 Sets complete flags.

Protected Attributes

int m_Options
 Optional flags.

Detailed Description

Base class that encapsulates object-specific options (binary flags).


Constructor & Destructor Documentation

Default constructor.

Copy constructor.


Member Function Documentation

Adds a given flag using bitwise OR operation.

Checks if all specified flags are set.

Checks if any of specified flags is set.

Checks if a single flag is set.

  • Returns zero on false.

Removes a given flag.

Returns all flags.

CHasOptions& mds::base::CHasOptions::operator= ( const CHasOptions Flags)

Assignment operator.

Adds a given flag using bitwise OR operation.

Sets complete flags.


Member Data Documentation

Optional flags.


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