Skip to main content

System Coupling Participant library 2025 R2

File syscAttribute.h

Last update: 17.07.2025

Location: syscAttribute.h

Classes

Includes

  • SystemCouplingParticipant/LibraryType.hpp
  • SystemCouplingParticipant/syscCommonTypes.h
  • <stddef.h>
  • <stdint.h>
graph LR
5["stdint.h"]

3["SystemCouplingParticipant/syscCommonTypes.h"]

4["stddef.h"]

2["SystemCouplingParticipant/LibraryType.hpp"]

1["syscAttribute.h"]
click 1 "syscAttribute_8h.md#syscAttribute_8h"
1 --> 2
1 --> 3
1 --> 4
1 --> 5

Functions

Function syscGetRealAttribute

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

Create a real-valued attribute.

Parameters:

  • name: - attribute name.
  • value: - attribute value.
  • dimensionality: - attribute dimensionality.

Parameters:

Return type: SyscRealAttribute

Function syscGetRealAttributeVDM

SyscRealAttribute syscGetRealAttributeVDM(const char *name, double value, SyscDimensionality dimensionality, int modifiable)

Create a real-valued attribute.

Parameters:

  • name: - attribute name.
  • value: - attribute value.
  • dimensionality: - attribute dimensionality.
  • modifiable: - attribute is modifiable.

Parameters:

Return type: SyscRealAttribute

Function syscGetIntegerAttribute

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

Create an integer-valued attribute.

Parameters:

  • name: - attribute name.
  • value: - attribute value.

Parameters:

  • const char * name
  • long long int value

Return type: SyscIntegerAttribute

Function syscGetIntegerAttributeVM

SyscIntegerAttribute syscGetIntegerAttributeVM(const char *name, long long int value, int modifiable)

Create an integer-valued attribute.

Parameters:

  • name: - attribute name.
  • value: - attribute value.
  • modifiable: - attribute is modifiable.

Parameters:

  • const char * name
  • long long int value
  • int modifiable

Return type: SyscIntegerAttribute

Source

/*
* Copyright ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
*/

#pragma once

#include "SystemCouplingParticipant/LibraryType.hpp"

#include "SystemCouplingParticipant/syscCommonTypes.h"

#include <stddef.h>
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
  char name[SYSC_STRING_LENGTH];     
  double value;                      
  SyscDimensionality dimensionality; 
  int modifiable;                    
} SyscRealAttribute;

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

SyscRealAttribute syscGetRealAttributeVDM(
  const char* name,
  double value,
  SyscDimensionality dimensionality,
  int modifiable);

typedef struct {
  char name[SYSC_STRING_LENGTH]; 
  long long int value;           
  int modifiable;                
} SyscIntegerAttribute;

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

SyscIntegerAttribute syscGetIntegerAttributeVM(
  const char* name,
  long long int value,
  int modifiable);

#ifdef __cplusplus
}
#endif

Connect with Ansys