Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# Keos::ILoader< T > Class Template Reference

Base class for the loaders. More...

`#include <KeosLoader.h>`

List of all members.

## Public Member Functions

virtual | ~ILoader ()
| Destructor.
virtual T * | LoadFromFile (const String &strFilename)
| Load a T object from a file.
virtual void | SaveToFile (const T *pObject, const String &strFilename)
| Save a T object into a file.

## Protected Member Functions

| ILoader ()
| Protected constructor --> abstract class.

## Detailed Description

### template<class T>
class Keos::ILoader< T >

Base class for the loaders.

Definition at line 33 of file KeosLoader.h.

## Constructor & Destructor Documentation

template<class T>
virtual Keos::ILoader< T >::~ILoader | ( |  | ) | `[inline, virtual]`

| Destructor. Definition at line 39 of file KeosLoader.h.

template<class T>
Keos::ILoader< T >::ILoader | ( |  | ) | `[inline, protected]`

| Protected constructor --> abstract class. Definition at line 65 of file KeosLoader.h.

## Member Function Documentation

template<class T>
virtual T* Keos::ILoader< T >::LoadFromFile | ( | const String & | strFilename | ) | `[inline, virtual]`

| Load a T object from a file.

Parameters:

  | strFilename | Name of the file.

Returns:
  Pointer on the object T.

Reimplemented in Keos::CImagesLoader, Keos::CMD2Loader, Keos::CMDLQ1Loader, and Keos::CShadersLoader.

Definition at line 45 of file KeosLoader.h.

template<class T>
virtual void Keos::ILoader< T >::SaveToFile | ( | const T * | pObject,
|  | const String & | strFilename
| ) | `[inline, virtual]`

| Save a T object into a file.

Parameters:

  | pObject | Object to be saved.
  | strFilename | Name of the file.

Reimplemented in Keos::CImagesLoader.

Definition at line 55 of file KeosLoader.h.

The documentation for this class was generated from the following file:

- KeosEngine/KeosLoader.h