---
name: "TypeManager"
section: "3cc"
platform: "linux"
package: "libcommoncpp2-dev"
version: "1.0.13-5"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/TypeManager"
---

# TypeManager(3cc)

This class manages the types for generation of the persistent objects. Type manager for persistence engine.

## NAME

TypeManager - This class manages the types for generation of the persistent objects. Type manager for persistence engine.

## SYNOPSIS

`#include <persist.h>`

### Public Types

typedef std::map\< std::string, **NewBaseObjectFunction** \> **StringFunctionMap**\

### Public Methods

**CCXX\_MEMBER\_EXPORT** (static void) add(const char \*name\
 *This adds a new construction function to the type manager.* **CCXX\_MEMBER\_EXPORT** (static void) remove(const char \*name)\
 *And this one removes a type from the managers lists.* **CCXX\_EXPORT** (static **BaseObject** \*) createInstanceOf(const char \*name)\
 *This function creates a new object of the required type and returns a pointer to it.*

### Public Attributes

**NewBaseObjectFunction** **construction**\

## DETAILED DESCRIPTION

This class manages the types for generation of the persistent objects. Type manager for persistence engine.

Its data structures are managed automatically by the system. They are implicitly filled by the constructors who declare classes to the system.

**Author:**  Daniel Silverstone

## MEMBER TYPEDEF DOCUMENTATION

### typedef std::map\<std::string,NewBaseObjectFunction\> TypeManager::StringFunctionMap

## MEMBER FUNCTION DOCUMENTATION

### TypeManager::CCXX\_EXPORT (static BaseObject \*) const

This function creates a new object of the required type and returns a pointer to it.

NULL is returned if we couldn't find  the type

### TypeManager::CCXX\_MEMBER\_EXPORT (static void) const

And this one removes a type from the managers lists.

### TypeManager::CCXX\_MEMBER\_EXPORT (static void) const

This adds a new construction function to the type manager.

## MEMBER DATA DOCUMENTATION

### NewBaseObjectFunction TypeManager::construction

## AUTHOR

Generated automatically by Doxygen for CommonC++ from the source code.
