API Reference > Functions > rxenum_cast Function
rxenum_cast Function
Syntax
C++
template <typename ValueType> const ValueType * rxenum_cast(const OdRxValue * value);

RxValue.h

Parameters 
Description 
const OdRxValue * value 
[in] Enumeration value which to cast a value type from. 

Value type if ValueType is contained in the specified enumeration value. NULL otherwise.

Const correct safe cast for enumerations. Returns non-NULL only if ValueType is contained in this value. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.