Cafu Engine
ModelLoaderT::UserCallbacksI Class Referenceabstract

An interface for user callbacks. More...

#include "Loader.hpp"

Public Member Functions

virtual std::string GetPasswordFromUser (const std::string &Message, const std::string &Caption="Enter password")=0
 Asks the user for a password to open the model file. More...
 

Detailed Description

An interface for user callbacks.

A concrete model loader may require e.g. asking the user for a password to open the file. The calling code can implement this interface and pass it to the concrete loader in order to achieve the desired functionality.

Member Function Documentation

virtual std::string ModelLoaderT::UserCallbacksI::GetPasswordFromUser ( const std::string &  Message,
const std::string &  Caption = "Enter password" 
)
pure virtual

Asks the user for a password to open the model file.

Returns
The entered password, or the empty string for cancel/none.

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