sdaiGetStringAttrBN

This function is a specific version of sdaiGetAttrBN(..), where the valueType is sdaiSTRING. This call can be useful in case of specific programming languages that cannot map towards sdaiGetAttrBN(..) directly, this function is useless for languages as C, C++, C#, JAVA, VB.NET, Delphi and similar as they are able to map sdaiGetAttrBN(..) directly. Technically sdaiGetStringAttrBN will transform into the following call

    char    * rValue = 0;
    sdaiGetAttr(
            instance,
            sdaiGetAttrDefinition(
                    sdaiGetInstanceType(
                            instance
                        ),
                    attributeName
                ),
            sdaiSTRING,
            &rValue
        );
    return  rValue;

Syntax

//
//   Strong typing definition
//
char            * sdaiGetStringAttrBN(
                        SdaiInstance            instance,
                        const char              * attributeName
                    );

static  inline  char    * sdaiGetStringAttrBN(
                                SdaiInstance            instance,
                                char                    * attributeName
                            )
{
    return  sdaiGetStringAttrBN(
                    instance,
                    (const char*) attributeName
                );
}


//
//   Weak typing definition
//
char    __declspec(dllexport) * __stdcall   sdaiGetStringAttrBN(
                                                    int_t                   instance,
                                                    const char              * attributeName
                                                );

static  inline  char    * sdaiGetStringAttrBN(
                                int_t                   instance,
                                char                    * attributeName
                            )
{
    return  sdaiGetStringAttrBN(
                    instance,
                    (const char*) attributeName
                );
}
    

Property instance

Size: 32 bit / 4 byte (value)
...

Property attributeName

Size: 32 bit / 4 byte (reference)
...