sdaiGetAggregationAttrBN

This function is a specific version of sdaiGetAttrBN(..), where the valueType is sdaiAGGR. This call can be usefull 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 sdaiGetAggregationAttrBN will transform into the following call

    SdaiAggr    aggr = 0;
    sdaiGetAttr(
            instance,
            sdaiGetAttrDefinition(
                    sdaiGetInstanceType(
                            instance
                        ),
                    attributeName
                ),
            sdaiAGGR,
            &aggr
        );
    return  aggr;

Syntax

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

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


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

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

Property instance

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

Property attributeName

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