MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Base class that encapsulates object-specific options (binary flags). More...
#include <mdsHasOptions.h>
Public Member Functions | |
CHasOptions & | addOption (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. | |
CHasOptions & | clearOption (int Flag) |
Removes a given flag. | |
int | getOptions () const |
Returns all flags. | |
CHasOptions & | operator= (const CHasOptions &Flags) |
Assignment operator. | |
CHasOptions & | setOption (int Flag) |
Adds a given flag using bitwise OR operation. | |
CHasOptions & | setOptions (int Flags) |
Sets complete flags. | |
Protected Attributes | |
int | m_Options |
Optional flags. |
Base class that encapsulates object-specific options (binary flags).
mds::base::CHasOptions::CHasOptions | ( | int | Flags = 0 | ) |
Default constructor.
mds::base::CHasOptions::CHasOptions | ( | const CHasOptions & | Flags | ) |
Copy constructor.
Adds a given flag using bitwise OR operation.
bool mds::base::CHasOptions::checkAllOptions | ( | int | Flags | ) | const |
Checks if all specified flags are set.
bool mds::base::CHasOptions::checkAnyOption | ( | int | Flags | ) | const |
Checks if any of specified flags is set.
int mds::base::CHasOptions::checkOption | ( | int | Flag | ) | const |
Checks if a single flag is set.
Removes a given flag.
int mds::base::CHasOptions::getOptions | ( | ) | const |
Returns all flags.
CHasOptions& mds::base::CHasOptions::operator= | ( | const CHasOptions & | Flags | ) |
Assignment operator.
Adds a given flag using bitwise OR operation.
CHasOptions& mds::base::CHasOptions::setOptions | ( | int | Flags | ) |
Sets complete flags.
int mds::base::CHasOptions::m_Options [protected] |
Optional flags.