engiGetAttrNameByIndex

This call can be used to retrieve the name of the n-th argument of the given entity. Arguments of parent entities are included in the index. Both explicit and inverse attributes are included. This call is deprecated, use SdaiAttr or attribute name as primary data and engiGetEntityAttributePosition.

Syntax

//
//   Strong typing definition
//
SdaiString                  engiGetAttrNameByIndex(
                                    SdaiEntity              entity,
                                    SdaiInteger             index,
                                    SdaiPrimitiveType       valueType,
                                    SdaiString              * attributeName
                                );

static  inline  SdaiString  engiGetAttrNameByIndex(
                                    SdaiEntity              entity,
                                    SdaiInteger             index,
                                    SdaiPrimitiveType       valueType,
                                    char                    ** attributeName
                                )
{
    return  engiGetAttrNameByIndex(
                    entity,
                    index,
                    valueType,
                    (SdaiString*) attributeName
                );
}

static  inline  SdaiString  engiGetAttrNameByIndex(
                                    SdaiEntity              entity,
                                    SdaiInteger             index,
                                    SdaiPrimitiveType       valueType
                                )
{
    return  engiGetAttrNameByIndex(
                    entity,
                    index,
                    valueType,
                    (SdaiString*) nullptr               //    attributeName
                );
}

static  inline  SdaiString  engiGetAttrNameByIndex(
                                    SdaiEntity              entity,
                                    SdaiInteger             index
                                )
{
    return  engiGetAttrNameByIndex(
                    entity,
                    index,
                    sdaiSTRING                          //    valueType
                );
}


//
//   Weak typing definition
//
const char  __declspec(dllexport) * __stdcall   engiGetAttrNameByIndex(
                                                        int_t                   entity,
                                                        int_t                   index,
                                                        int_t                   valueType,
                                                        const char              ** attributeName
                                                    );

static  inline  const char  * engiGetAttrNameByIndex(
                                    int_t                   entity,
                                    int_t                   index,
                                    int_t                   valueType,
                                    char                    ** attributeName
                                )
{
    return  engiGetAttrNameByIndex(
                    entity,
                    index,
                    valueType,
                    (const SdaiString*) attributeName
                );
}

static  inline  const char  * engiGetAttrNameByIndex(
                                    int_t                   entity,
                                    int_t                   index,
                                    int_t                   valueType
                                )
{
    return  engiGetAttrNameByIndex(
                    entity,
                    index,
                    valueType,
                    (const SdaiString*) nullptr         //    attributeName
                );
}

static  inline  const char  * engiGetAttrNameByIndex(
                                    int_t                   entity,
                                    int_t                   index
                                )
{
    return  engiGetAttrNameByIndex(
                    entity,
                    index,
                    sdaiSTRING                          //    valueType
                );
}
    

Property entity

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

Property index

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

Property valueType

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

Property attributeName

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