    

 ## On this page

  

 

 # syscAttribute

 Last update: 17.07.2025 

<a id="l00001" name="l00001"></a> 1/\*

<a id="l00002" name="l00002"></a> 2\* Copyright ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.

<a id="l00003" name="l00003"></a> 3\*/

<a id="l00004" name="l00004"></a> 4 

<a id="l00005" name="l00005"></a> 5\#pragma once

<a id="l00006" name="l00006"></a> 6 

<a id="l00007" name="l00007"></a> 7\#include "SystemCouplingParticipant/LibraryType.hpp"

<a id="l00008" name="l00008"></a> 8 

<a id="l00009" name="l00009"></a> 9\#include "SystemCouplingParticipant/syscCommonTypes.h"

<a id="l00010" name="l00010"></a> 10 

<a id="l00011" name="l00011"></a> 11\#include &lt;stddef.h&gt;

<a id="l00012" name="l00012"></a> 12\#include &lt;stdint.h&gt;

<a id="l00013" name="l00013"></a> 13 

<a id="l00014" name="l00014"></a> 14\#ifdef \_\_cplusplus

<a id="l00015" name="l00015"></a> 15extern "C" {

<a id="l00016" name="l00016"></a> 16\#endif

<a id="l00017" name="l00017"></a> 17 

<a id="l00024" name="l00024"></a>[ 24](structSyscRealAttribute.xhtml)typedef struct {

<a id="l00025" name="l00025"></a>[ 25](structSyscRealAttribute.xhtml#a6be2003fdd58b29a31513f1025a44218) char name[[SYSC\_STRING\_LENGTH](group__SyscParticipantLibraryCAPI.xhtml#gab4cd55b5b37dd76c5755020302086b15)]; 

<a id="l00026" name="l00026"></a>[ 26](structSyscRealAttribute.xhtml#ac6dd95726f82ff857471b1967c42b235) double [value](structSyscRealAttribute.xhtml#ac6dd95726f82ff857471b1967c42b235); 

<a id="l00027" name="l00027"></a>[ 27](structSyscRealAttribute.xhtml#a4a2a0d3d61d37523416b353c3dc2585c) [SyscDimensionality](structSyscDimensionality.xhtml) [dimensionality](structSyscRealAttribute.xhtml#a4a2a0d3d61d37523416b353c3dc2585c); 

<a id="l00028" name="l00028"></a> 28} [SyscRealAttribute](structSyscRealAttribute.xhtml);



<a id="l00029" name="l00029"></a> 29 

<a id="l00042" name="l00042"></a>[ 42](group__SyscParticipantLibraryCAPI.xhtml#ga7025ebcdef40667b4c2df0d2b087f600)[SyscRealAttribute](structSyscRealAttribute.xhtml) [syscGetRealAttribute](group__SyscParticipantLibraryCAPI.xhtml#ga7025ebcdef40667b4c2df0d2b087f600)(

<a id="l00043" name="l00043"></a> 43 const char* name,

<a id="l00044" name="l00044"></a> 44 double value,

<a id="l00045" name="l00045"></a> 45 [SyscDimensionality](structSyscDimensionality.xhtml) dimensionality);

<a id="l00046" name="l00046"></a> 46 

<a id="l00048" name="l00048"></a>[ 48](structSyscIntegerAttribute.xhtml)typedef struct {

<a id="l00049" name="l00049"></a>[ 49](structSyscIntegerAttribute.xhtml#ab13f95caf8c2c7b73b3c3f2435876f27) char name[[SYSC\_STRING\_LENGTH](group__SyscParticipantLibraryCAPI.xhtml#gab4cd55b5b37dd76c5755020302086b15)]; 

<a id="l00050" name="l00050"></a>[ 50](structSyscIntegerAttribute.xhtml#a272f235cfc28cb256a9f5793cb3d51f4) long long int [value](structSyscIntegerAttribute.xhtml#a272f235cfc28cb256a9f5793cb3d51f4); 

<a id="l00051" name="l00051"></a> 51} [SyscIntegerAttribute](structSyscIntegerAttribute.xhtml);



<a id="l00052" name="l00052"></a> 52 

<a id="l00064" name="l00064"></a>[ 64](group__SyscParticipantLibraryCAPI.xhtml#gaf6d02a55f607a7af07039957b21ab511)[SyscIntegerAttribute](structSyscIntegerAttribute.xhtml) [syscGetIntegerAttribute](group__SyscParticipantLibraryCAPI.xhtml#gaf6d02a55f607a7af07039957b21ab511)(

<a id="l00065" name="l00065"></a> 65 const char* name,

<a id="l00066" name="l00066"></a> 66 long long int value);

<a id="l00067" name="l00067"></a> 67 

<a id="l00070" name="l00070"></a> 70\#ifdef \_\_cplusplus

<a id="l00071" name="l00071"></a> 71}

<a id="l00072" name="l00072"></a> 72\#endif

[syscGetRealAttribute](group__SyscParticipantLibraryCAPI.xhtml#ga7025ebcdef40667b4c2df0d2b087f600)

SyscRealAttribute syscGetRealAttribute(const char *name, double value, SyscDimensionality dimensionality)

Create a real-valued attribute.



[SYSC\_STRING\_LENGTH](group__SyscParticipantLibraryCAPI.xhtml#gab4cd55b5b37dd76c5755020302086b15)

\#define SYSC_STRING_LENGTH

Define maximum string length.

**Definition** [syscCommonTypes.h:23](syscCommonTypes_8h_source.xhtml#l00023)



[syscGetIntegerAttribute](group__SyscParticipantLibraryCAPI.xhtml#gaf6d02a55f607a7af07039957b21ab511)

SyscIntegerAttribute syscGetIntegerAttribute(const char *name, long long int value)

Create an integer-valued attribute.



[SyscDimensionality](structSyscDimensionality.xhtml)

Provide a structure for dimensionality.

**Definition** [syscCommonTypes.h:68](syscCommonTypes_8h_source.xhtml#l00068)



[SyscIntegerAttribute](structSyscIntegerAttribute.xhtml)

Provide a struct for an integer-valued attribute.

**Definition** [syscAttribute.h:48](syscAttribute_8h_source.xhtml#l00048)



[SyscIntegerAttribute::value](structSyscIntegerAttribute.xhtml#a272f235cfc28cb256a9f5793cb3d51f4)

long long int value

**Definition** [syscAttribute.h:50](syscAttribute_8h_source.xhtml#l00050)



[SyscRealAttribute](structSyscRealAttribute.xhtml)

Provide a struct for a real-valued attribute.

**Definition** [syscAttribute.h:24](syscAttribute_8h_source.xhtml#l00024)



[SyscRealAttribute::dimensionality](structSyscRealAttribute.xhtml#a4a2a0d3d61d37523416b353c3dc2585c)

SyscDimensionality dimensionality

**Definition** [syscAttribute.h:27](syscAttribute_8h_source.xhtml#l00027)



[SyscRealAttribute::value](structSyscRealAttribute.xhtml#ac6dd95726f82ff857471b1967c42b235)

double value

**Definition** [syscAttribute.h:26](syscAttribute_8h_source.xhtml#l00026)