---
name: "sc_AssignedKeyVal"
section: "3"
platform: "linux"
package: "libsc-doc"
version: "2.3.1-22"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_AssignedKeyVal"
---

# sc\_AssignedKeyVal(3)

This class allows keyval associations to be set up by the program, rather than determined by an external file.

## NAME

sc::AssignedKeyVal - This class allows keyval associations to be set up by the program, rather than determined by an external file.

## SYNOPSIS

`#include <keyval.h>`

Inherits **sc::KeyVal**.

### Public Member Functions

**Assignments.**\
 Each of this routines assigns key to val.

void **assign** (const char \*key, const **Ref**\< **KeyValValue** \> &val)\
 void **assign** (const char \*key, double val)\
 void **assignboolean** (const char \*key, int val)\
 void **assign** (const char \*key, float val)\
 void **assign** (const char \*key, char val)\
 void **assign** (const char \*key, int val)\
 void **assign** (const char \*key, const char \*val)\
 void **assign** (const char \*key, const **Ref**\< **DescribedClass** \> &val)\
 void **clear** ()\
 Erase all of the stored assignments.

### Protected Member Functions

int **key\_exists** (const char \*)\
 Ultimately called by exists.  **Ref**\< **KeyValValue** \> **key\_value** (const char \*, const **KeyValValue** &def)\
 Ultimately called by value.

### Additional Inherited Members

## Detailed Description

This class allows keyval associations to be set up by the program, rather than determined by an external file.

## Member Function Documentation

### int sc::AssignedKeyVal::key\_exists (const char \*)` [protected]`, ` [virtual]`

Ultimately called by exists.

Implements **sc::KeyVal**.

### Ref\< KeyValValue \> sc::AssignedKeyVal::key\_value (const char \*, const KeyValValue & def)` [protected]`, ` [virtual]`

Ultimately called by value.

Implements **sc::KeyVal**.

## Author

Generated automatically by Doxygen for MPQC from the source code.
