OpalMediaOptionNumericalValue< T > Class Template Reference

`#include <mediafmt.h>`

Inheritance diagram for OpalMediaOptionNumericalValue< T >:

## Public Member Functions

| OpalMediaOptionNumericalValue (const char *name, bool readOnly, OpalMediaOption::MergeType merge=OpalMediaOption::MinMerge, T value=0, T minimum=std::numeric_limits< T >::min(), T maximum=std::numeric_limits< T >::max())
virtual PObject * | Clone () const
virtual void | ReadFrom (istream &strm)
void | SetValue (T value)
void | SetMinimum (T m)
void | SetMaximum (T m)
Public Member Functions inherited from OpalMediaOptionValue< T >
| OpalMediaOptionValue (const char *name, bool readOnly, OpalMediaOption::MergeType merge=OpalMediaOption::MinMerge, T value=T())
virtual void | PrintOn (ostream &strm) const
virtual bool | Merge (const OpalMediaOption &option)
virtual Comparison | CompareValue (const OpalMediaOption &option) const
virtual void | Assign (const OpalMediaOption &option)
T | GetValue () const
void | SetValue (T value)
Public Member Functions inherited from OpalMediaOption
virtual Comparison | Compare (const PObject &obj) const
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

T | m_minimum
T | m_maximum
Protected Attributes inherited from OpalMediaOptionValue< T >
T | 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

template<typename T >

OpalMediaOptionNumericalValue< T >::OpalMediaOptionNumericalValue | ( | const char * | name,
|  | bool | readOnly,
|  | OpalMediaOption::MergeType | merge = `OpalMediaOption::MinMerge`,
|  | T | value = `0`,
|  | T | minimum = `std::numeric_limits<T>::min()`,
|  | T | maximum = `std::numeric_limits<T>::max()`
| ) |  |

inline

Referenced by OpalMediaOptionNumericalValue< T >::Clone().

## Member Function Documentation

template<typename T >

virtual PObject* OpalMediaOptionNumericalValue< T >::Clone | ( |  | ) | const

inline virtual

Reimplemented from OpalMediaOptionValue< T >.

References OpalMediaOptionNumericalValue< T >::OpalMediaOptionNumericalValue().

template<typename T >

virtual void OpalMediaOptionNumericalValue< T >::ReadFrom | ( | istream & | strm | ) |

inline virtual

Reimplemented from OpalMediaOptionValue< T >.

References OpalMediaOptionNumericalValue< T >::m_maximum, OpalMediaOptionNumericalValue< T >::m_minimum, and OpalMediaOptionValue< T >::m_value.

template<typename T >

void OpalMediaOptionNumericalValue< T >::SetMaximum | ( | T | m | ) |

inline

References OpalMediaOptionNumericalValue< T >::m_maximum.

template<typename T >

void OpalMediaOptionNumericalValue< T >::SetMinimum | ( | T | m | ) |

inline

References OpalMediaOptionNumericalValue< T >::m_minimum.

template<typename T >

void OpalMediaOptionNumericalValue< T >::SetValue | ( | T | value | ) |

inline

References OpalMediaOptionNumericalValue< T >::m_maximum, OpalMediaOptionNumericalValue< T >::m_minimum, and OpalMediaOptionValue< T >::m_value.

## Field Documentation

template<typename T >

T OpalMediaOptionNumericalValue< T >::m_maximum

protected

Referenced by OpalMediaOptionNumericalValue< T >::ReadFrom(), OpalMediaOptionNumericalValue< T >::SetMaximum(), and OpalMediaOptionNumericalValue< T >::SetValue().

template<typename T >

T OpalMediaOptionNumericalValue< T >::m_minimum

protected

Referenced by OpalMediaOptionNumericalValue< T >::ReadFrom(), OpalMediaOptionNumericalValue< T >::SetMinimum(), and OpalMediaOptionNumericalValue< T >::SetValue().

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

- mediafmt.h