Attribute: headerfile - nidium/IDL GitHub Wiki
Attribute HeaderFile
- Name: headerFile
- since: draft
- Usage on 'Interface'
- Allowed value: string with the cppclassname
- Default value: if this is not set, it is equivalent to the name of the class 'name'
- Rationale: Sometimes the base class is located in a different/nonstandard header file.
- Reference: 'Socket'
Example
IDL
[ HeaderFile=JSSocket ] interface Socket {
};
Template
#include "../{{ headerfile }}.h"
C++
#include "../JSSocket.h"
Javascript
// no example needed here