---
name: "CL_Resource"
section: "3"
platform: "linux"
package: "clanlib0-common-dev"
version: "0.4.4-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/CL_Resource"
---

# CL\_Resource(3)

Interface representing a resource in the resource manager.

## NAME

CL\_Resource - Interface representing a resource in the resource manager.

## DESCRIPTION

All resources available in the resource manager is an instance of this class. The purpose of the class is to load and unload the resource, and if a datafile is being built, it is also used to save it. The resource manager uses instances of CL\_ResourceType to create CL\_Resource'es. To get more information on how to use create your own version of this class, please see the overview documentation.

## CLASS MEMBERS

- virtual const std::string &**get\_name**()

  - virtual void **load**()

  - virtual void **unload**()

  - virtual int **get\_load\_count**()

  - virtual void **serialize\_save**(

  ```
  CL_OutputSource *output)
  ```

## MEMBERS WITH DESCRIPTIONS

- virtual const std::string &**get\_name**()

  ```
  Description:
  ```

- virtual void **load**()

  ```
  Description:
  ```

- virtual void **unload**()

  ```
  Description:
  ```

- virtual int **get\_load\_count**()

  ```
  Description:
  ```

- virtual void **serialize\_save**(

  ```
  CL_OutputSource *output)
  ```

  ```
  Description:
  ```

## SEE ALSO

All ClanLib API classes can be found in **clanlib (3)**.

## AUTHORS

Originally written by Magnus Norddahl \<*mbn@dark.x.dtu.dk*\> and Martin Starch \<*starch@dark.x.dtu.dk*\>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at **http://somewhere.in.the.world.org**).

See **clanlib (3)** to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.
