Get information about what IDL features the IDL compiler has, similarly to the "version" standard header in C++.
In C++ it can be used like this if you want to be compatible with older versions of TAO:
#include "tao/orbconf.h" #if defined TAO_HAS_IDL_FEATURES && TAO_HAS_IDL_FEATURES // Use this macro if you are using something that's not the max possible // version.
define TAO_IDL_IDL_VERSION 0x30000
include "tao/idl_features.h"
if defined TAO_IDL_HAS_FEATURE && TAO_IDL_HAS_FEATURE
define USE_FEATURE
endif
#endif
In IDL it can be used like this if you want to be compatible with older versions of TAO:
#if defined __TAO_IDL_FEATURES
include __TAO_IDL_FEATURES
if defined TAO_IDL_HAS_FEATURE && TAO_IDL_HAS_FEATURE
define USE_FEATURE
endif
#endif
Note that support for annotations and anonymous types in IDL4 predate this file, so they are a potential special case depending on what ACE/TAO is being used.