#include <Gender.h>
Inheritance diagram for ogs::core::details::Gender:
Public Types | |
enum | Value { UNKNOWN = 0, MALE = 'M', FEMALE = 'F', ASEXUAL = 'A', BISEXUAL = 'B' } |
Value of gender. More... | |
Public Member Functions | |
Gender (Value value=UNKNOWN) | |
Create a new gender. | |
Value | getValue () const |
Determine the value of this gender. | |
std::string | getName () const |
Determine the name of this gender. | |
std::string | toString () const |
Format a string representation of this gender. |
|
This class supports five different genders. |
|
If the value is invalid, the value is set to UNKNOWN.
|
|
|
|
|
|
The string contains the value of this gender.
Reimplemented from ogs::support::Object. |