> ## 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.

# sysc::ValidityStatus Struct Reference

Part of [C++ Interfaces for Participant Library](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/group__SystemCouplingParticipantAPIs)

Provide a struct that contains information about validity.

`#include <CommonTypes.hpp>`

## Public Member Functions

| Type | Name |
| - | - |
| | [ValidityStatus](#a11dcd716f4542e1231c0e2ec25ff0d71) (bool [isValid](#ac45ce7d05d6ab0126511da670f3e10a9), std::string [message](#ad78928b787427d9c0edf9e7a1e3d857c)) Provide a non-default constructor for [ValidityStatus](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ValidityStatus.md). |

## Public Attributes

| Type | Name |
| - | - |
| bool | [isValid](#ac45ce7d05d6ab0126511da670f3e10a9) |
| std::string | [message](#ad78928b787427d9c0edf9e7a1e3d857c) |

## Detailed Description

Provide a struct that contains information about validity.

Definition at line [180](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/CommonTypes_8hpp_source) of file [CommonTypes.hpp](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/CommonTypes_8hpp_source).

## Constructor & Destructor Documentation

### ValidityStatus()

```cpp theme={null}
sysc::ValidityStatus::ValidityStatus(
    bool isValid,
    std::string message
)
```

`inline`

Provide a non-default constructor for [ValidityStatus](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/structsysc_1_1ValidityStatus.md).

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | isValid | Validity status flag. |
| \[in] | message | Message explaining errors (if any). |

Definition at line [194](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/CommonTypes_8hpp_source) of file [CommonTypes.hpp](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/CommonTypes_8hpp_source).

```cpp theme={null}
                                                   :
       isValid(isValid),
       message(std::move(message)){};
```

## Member Data Documentation

### isValid

```cpp theme={null}
bool sysc::ValidityStatus::isValid
```

Validity status flag.

Definition at line [181](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/CommonTypes_8hpp_source) of file [CommonTypes.hpp](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/CommonTypes_8hpp_source).

### message

```cpp theme={null}
std::string sysc::ValidityStatus::message
```

Message explaining errors (if any).

Definition at line [182](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/CommonTypes_8hpp_source) of file [CommonTypes.hpp](https://developer.synopsys.com/docs/system-coupling/system-coupling-cpp-library/CommonTypes_8hpp_source).
