OpalMediaOptionEnum Class Reference

`#include <mediafmt.h>`

Inheritance diagram for OpalMediaOptionEnum:

## Public Member Functions

| OpalMediaOptionEnum (const char *name, bool readOnly)
| OpalMediaOptionEnum (const char *name, bool readOnly, const char *const *enumerations, PINDEX count, MergeType merge=EqualMerge, PINDEX value=0)
virtual PObject * | Clone () const
virtual void | PrintOn (ostream &strm) const
virtual void | ReadFrom (istream &strm)
virtual Comparison | CompareValue (const OpalMediaOption &option) const
virtual void | Assign (const OpalMediaOption &option)
PINDEX | GetValue () const
void | SetValue (PINDEX value)
const PStringArray & | GetEnumerations () const
void | SetEnumerations (const PStringArray &e)
Public Member Functions inherited from OpalMediaOption
virtual Comparison | Compare (const PObject &obj) const
virtual bool | Merge (const OpalMediaOption &option)
virtual bool | ValidateMerge (const OpalMediaOption &option) const
PString | AsString () const
bool | FromString (const PString &value)
const PString & | GetName () const
bool | IsReadOnly () const
void | SetReadOnly (bool readOnly)
MergeType | GetMerge () const
void | SetMerge (MergeType merge)
const PString & | GetFMTPName () const
void | SetFMTPName (const char *name)
const PString & | GetFMTPDefault () const
void | SetFMTPDefault (const char *value)
const H245GenericInfo & | GetH245Generic () const
void | SetH245Generic (const H245GenericInfo &genericInfo)

## Protected Attributes

PStringArray | m_enumerations
PINDEX | m_value
Protected Attributes inherited from OpalMediaOption
PCaselessString | m_name
bool | m_readOnly
MergeType | m_merge
PCaselessString | m_FMTPName
PString | m_FMTPDefault
H245GenericInfo | m_H245Generic

## Additional Inherited Members

Public Types inherited from OpalMediaOption
enum | MergeType { NoMerge, MinMerge, MaxMerge, EqualMerge, NotEqualMerge, AlwaysMerge, CustomMerge, IntersectionMerge, AndMerge = MinMerge, OrMerge = MaxMerge }
Protected Member Functions inherited from OpalMediaOption
| OpalMediaOption (const PString &name)
| OpalMediaOption (const char *name, bool readOnly, MergeType merge)

## Constructor & Destructor Documentation

OpalMediaOptionEnum::OpalMediaOptionEnum | ( | const char * | name,
|  | bool | readOnly
| ) |  |

OpalMediaOptionEnum::OpalMediaOptionEnum | ( | const char * | name,
|  | bool | readOnly,
|  | const char *const * | enumerations,
|  | PINDEX | count,
|  | MergeType | merge = `EqualMerge`,
|  | PINDEX | value = `0`
| ) |  |

## Member Function Documentation

virtual void OpalMediaOptionEnum::Assign | ( | const OpalMediaOption & | option | ) |

virtual

Implements OpalMediaOption.

virtual PObject* OpalMediaOptionEnum::Clone | ( |  | ) | const

virtual

virtual Comparison OpalMediaOptionEnum::CompareValue | ( | const OpalMediaOption & | option | ) | const

virtual

Implements OpalMediaOption.

const PStringArray& OpalMediaOptionEnum::GetEnumerations | ( |  | ) | const

inline

References m_enumerations.

PINDEX OpalMediaOptionEnum::GetValue | ( |  | ) | const

inline

References m_value.

virtual void OpalMediaOptionEnum::PrintOn | ( | ostream & | strm | ) | const

virtual

virtual void OpalMediaOptionEnum::ReadFrom | ( | istream & | strm | ) |

virtual

void OpalMediaOptionEnum::SetEnumerations | ( | const PStringArray & | e | ) |

inline

References m_enumerations.

void OpalMediaOptionEnum::SetValue | ( | PINDEX | value | ) |

## Field Documentation

PStringArray OpalMediaOptionEnum::m_enumerations

protected

Referenced by GetEnumerations(), and SetEnumerations().

PINDEX OpalMediaOptionEnum::m_value

protected

Referenced by GetValue().

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

- mediafmt.h