Manage Dependencies

Model RealTime typically does not require dependencies to be created for types within the RTClasses package during standard use. However, when exporting the model using the Art Exporter, these dependencies are required. This ensures that the Art Exporter generates the necessary #include directives in the exported header files.

To configure these dependencies correctly, do the following:

  1. Review your Model RealTime classes and identify attributes or operations that use types from RTClasses package:

    alt text

  2. Add the dependency to your model before exporting:

    Dependency Configuration

  3. Run the Art Exporter. It will generate the appropriate include directives:

    #include <RTBoolean.h>
    #include <RTPointer.h>
    
    class [[rt::auto_descriptor]] DataClass
    {
    public:
        RTBoolean a;
        RTPointer b;
        DataClass( void );
        virtual ~DataClass( void );
        DataClass( const DataClass & rtg_arg );
        DataClass & operator=( const DataClass & rtg_arg );
    };
    

If compilation of the generated code fails with unknown type name errors, verify that the dependencies are added to all types in RTClasses before exporting.