tbx  0.7.6
Public Member Functions | List of all members
tbx::doc::DocCreator< T, W > Class Template Reference

Templated class to provide information on a documents file type and how to create the document and its window. More...

#include <docmanager.h>

Inheritance diagram for tbx::doc::DocCreator< T, W >:
tbx::doc::DocCreatorBase

Public Member Functions

 DocCreator (int file_type)
 Construct document creator for a file type. More...
 
virtual Documentcreate_document ()
 Override this method to create the document object. More...
 
virtual void create_window (Document *doc)
 Create the window used to display the given document. More...
 
- Public Member Functions inherited from tbx::doc::DocCreatorBase
 DocCreatorBase (int file_type)
 Construct a document and window creator for a file type. More...
 
int file_type () const
 Return the file type handled by this document creator.
 

Detailed Description

template<class T, class W>
class tbx::doc::DocCreator< T, W >

Templated class to provide information on a documents file type and how to create the document and its window.

Constructor & Destructor Documentation

◆ DocCreator()

template<class T , class W >
tbx::doc::DocCreator< T, W >::DocCreator ( int  file_type)
inline

Construct document creator for a file type.

Parameters
file_typefile type of documents created by this object

Member Function Documentation

◆ create_document()

template<class T , class W >
virtual Document* tbx::doc::DocCreator< T, W >::create_document ( )
inlinevirtual

Override this method to create the document object.

Returns
Document derived object to handle the document data

Implements tbx::doc::DocCreatorBase.

◆ create_window()

template<class T , class W >
virtual void tbx::doc::DocCreator< T, W >::create_window ( Document doc)
inlinevirtual

Create the window used to display the given document.

Parameters
docdocument to create the main window for

Implements tbx::doc::DocCreatorBase.


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