You are here: Part 2: Core Concepts > Data Types and DDS Data Samples > Creating User Data Types with IDL > Type Codes

Type Codes

Type codes are enabled by default when you run RTI Code Generator. The -notypecode option disables generation of type code information. Type-code support does increase the amount of memory used, so if you need to save on memory, you may consider disabling type codes. (The
-notypecode option is described in the RTI Code Generator User’s Manual.)

Locally, your application can access the type code for a generated type "Foo" by calling the FooTypeSupport::get_typecode() (Traditional C++ Notation) operation in the code for the type generated by RTI Code Generator (unless type-code support is disabled with the -notypecode option).

Note: Type-code support must be enabled if you are going to use ContentFilteredTopics with the default SQL filter. You may disable type codes and use a custom filter, as described in Creating ContentFilteredTopics.

© 2015 RTI