SetSPFFHeader

This call is an aggregate of several SetSPFFHeaderItem calls. In several cases the header can be set easily with this call. In case an argument is zero, this argument will not be updated, i.e. it will not be filled with 0.

Syntax

//
//   Strong typing definition
//
void            SetSPFFHeader(
                        SdaiModel               model,
                        const char              * description,
                        const char              * implementationLevel,
                        const char              * name,
                        const char              * timeStamp,
                        const char              * author,
                        const char              * organization,
                        const char              * preprocessorVersion,
                        const char              * originatingSystem,
                        const char              * authorization,
                        const char              * fileSchema
                    );

static  inline  void    SetSPFFHeader(
                                SdaiModel               model,
                                char                    * description,
                                char                    * implementationLevel,
                                char                    * name,
                                char                    * timeStamp,
                                char                    * author,
                                char                    * organization,
                                char                    * preprocessorVersion,
                                char                    * originatingSystem,
                                char                    * authorization,
                                char                    * fileSchema
                            )
{
    return  SetSPFFHeader(
                    model,
                    (const char*) description,
                    (const char*) implementationLevel,
                    (const char*) name,
                    (const char*) timeStamp,
                    (const char*) author,
                    (const char*) organization,
                    (const char*) preprocessorVersion,
                    (const char*) originatingSystem,
                    (const char*) authorization,
                    (const char*) fileSchema
                );
}


//
//   Weak typing definition
//
void    __declspec(dllexport) __stdcall SetSPFFHeader(
                                                int_t                   model,
                                                const char              * description,
                                                const char              * implementationLevel,
                                                const char              * name,
                                                const char              * timeStamp,
                                                const char              * author,
                                                const char              * organization,
                                                const char              * preprocessorVersion,
                                                const char              * originatingSystem,
                                                const char              * authorization,
                                                const char              * fileSchema
                                            );

static  inline  void    SetSPFFHeader(
                                int_t                   model,
                                char                    * description,
                                char                    * implementationLevel,
                                char                    * name,
                                char                    * timeStamp,
                                char                    * author,
                                char                    * organization,
                                char                    * preprocessorVersion,
                                char                    * originatingSystem,
                                char                    * authorization,
                                char                    * fileSchema
                            )
{
    return  SetSPFFHeader(
                    model,
                    (const char*) description,
                    (const char*) implementationLevel,
                    (const char*) name,
                    (const char*) timeStamp,
                    (const char*) author,
                    (const char*) organization,
                    (const char*) preprocessorVersion,
                    (const char*) originatingSystem,
                    (const char*) authorization,
                    (const char*) fileSchema
                );
}
    

Property model

Size: 64 bit / 8 byte (value)
The handle to the model. The model handle is static during its existance. Several models can be opened simultaniously within one session. Different models are always independent, threads are allowed to be running on different models simultaniously.

Property description

Size: 64 bit / 8 byte (reference)
...

Property implementationLevel

Size: 64 bit / 8 byte (reference)
...

Property name

Size: 64 bit / 8 byte (reference)
...

Property timeStamp

Size: 64 bit / 8 byte (reference)
...

Property author

Size: 64 bit / 8 byte (reference)
...

Property organization

Size: 64 bit / 8 byte (reference)
...

Property preprocessorVersion

Size: 64 bit / 8 byte (reference)
...

Property originatingSystem

Size: 64 bit / 8 byte (reference)
...

Property authorization

Size: 64 bit / 8 byte (reference)
...

Property fileSchema

Size: 64 bit / 8 byte (reference)
...

Example (based on pure API calls)

Here you can find code snippits that show how the API call SetSPFFHeader can be used.

#include    "./include/ifcengine.h"
char    * ifcFileName = 0, * timeStamp = 0;

...
...

SetSPFFHeader(
            model,
            "ViewDefinition [CoordinationView]",
            "2;1",
            ifcFileName,
            timeStamp,
            "Architect",
            "Building Designer Office",
            "IFC Engine DLL",
            "Documentation Example",
            "The authorising person",
            "IFC4"
        );


OR


wchar_t * ifcFileName = 0, * timeStamp = 0;

...
...

setStringUnicode(1);
SetSPFFHeader(
            model,
            (char*) L"ViewDefinition [CoordinationView]",
            (char*) L"2;1",
            ifcFileName,
            timeStamp,
            (char*) L"Architect",
            (char*) L"Building Designer Office",
            (char*) L"IFC Engine DLL",
            (char*) L"Documentation Example",
            (char*) L"The authorising person",
            (char*) L"IFC4"
        );