> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ansys::CffVersion Class Reference

Provides some basic version extraction and comparison functions.

`#include "CffInterface/CffVersion.hpp"`

Inheritance diagram for ansys::CffVersion:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/cff/common-fluids-format-sdk-guide/classansys_1_1_cff_version.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=36a65ae8401e95707131b20540e4123f)

## Public Member Functions

| Type | Name |
| - | - |
| | [CffVersion](#a9274e8b4fd14afdc71d46fb66dc405cd) () |
| | [\~CffVersion](#a3ee0c0a7f11906983671c5b693860430) () |

## Static Public Member Functions

| Type | Name |
| - | - |
| static unsigned int | [getMajor](#a6eac2194e4845de8b13fc6654a6061db) () |
| static unsigned int | [getMinor](#ae580f388b6c6dd9e68db8433749da81e) () |
| static unsigned int | [getPatch](#ad1139980443eb9200c7c37e1a48433ac) () |
| static std::string | [getSHA](#a054bb0e156cf7a084145cd536399fcf1) () |
| static bool | [isBeta](#a49bba0b8a37276210f7e51c425ee4788) () |
| static std::string | [apiVersionAsString](#aba256dcc082e509be94d1c332a88f1dc) (const std::string \&separator=".") |
| static std::string | [ansysApplicationVersion](#a839a336d8430485ed81d1bafdc6671cc) (const std::string \&appName) |
| static std::string | [copyright](#a36112f9aea74b547d2d238c447ab89a9) (bool allRightsReserved) |

## Detailed Description

Provides some basic version extraction and comparison functions.

## Constructor & Destructor Documentation

### CffVersion()

```cpp theme={null}
ansys::CffVersion::CffVersion()
```

`inline`

### \~CffVersion()

```cpp theme={null}
ansys::CffVersion::~CffVersion()
```

`inline`

## Member Function Documentation

### ansysApplicationVersion()

```cpp theme={null}
std::string ansys::CffVersion::ansysApplicationVersion(const std::string & appName)
```

`static`

Returns the version of the API including an application name Primarily this is for use when writing release information to a file

### apiVersionAsString()

```cpp theme={null}
std::string ansys::CffVersion::apiVersionAsString(const std::string & separator = ".")
```

`static`

Returns the version of the API as string in the form: \<MAJOR>\<separator>\<MINOR>\[\<separator>\<PATCH>]

### copyright()

```cpp theme={null}
std::string ansys::CffVersion::copyright(bool allRightsReserved)
```

`static`

Returns a copyright string containing the ANSYS copyright information

### getMajor()

```cpp theme={null}
unsigned int ansys::CffVersion::getMajor()
```

`static`

Returns the major release version of the API

### getMinor()

```cpp theme={null}
unsigned int ansys::CffVersion::getMinor()
```

`static`

Returns the minor release version of the API

### getPatch()

```cpp theme={null}
unsigned int ansys::CffVersion::getPatch()
```

`static`

Returns the path release version of the API

### getSHA()

```cpp theme={null}
std::string ansys::CffVersion::getSHA()
```

`static`

Returns the unique SHA index of the API

### isBeta()

```cpp theme={null}
bool ansys::CffVersion::isBeta()
```

`static`

Returns whether this version of the API is at Beta release level
