You must include the appropriate Connext DDS header files, which are listed in Table 1 . The header files that need to be included depend on the API being used.
Connext DDS API |
Header Files |
C |
#include “ndds/ndds_c.h” |
C++ |
#include “ndds/ndds_cpp.h” |
C++/CLI, C#, Java |
none |
For the compiler to find the included files, the path to the appropriate include directories must be provided. Table 2 lists the appropriate include path for use with the compiler. The exact path depends on where you installed Connext DDS. See Paths Mentioned in Documentation.
Connext DDS API |
Include Path Directories |
C and C++ |
<NDDSHOME>/include <NDDSHOME>/include/ndds |
C++/CLI, C#, Java |
none |
The header files that define the data types you want to use within the application also need to be included. For example, Table 3 lists the files to be include for type “Foo” (these are the filenames generated by RTI Code Generator, described in Data Types and DDS Data Samples).
Connext DDS API |
User Data Type Header Files |
C and C++ |
#include “Foo.h” #include “FooSupport.h” |
|
none |
© 2015 RTI