Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

proto_creator< C, T, A > Class Template Reference

base proto class for creators More...

#include <proto.h>

List of all members.

Public Types

typedef T TYPE
 object type
typedef A ARG
 argument type

Static Public Member Functions

static C & static_constructor ()
 returns static constructor
static const A & get_default_arg ()
 returns static defualt argument
static size_t get_default_timeout ()
 returns static default timeout
static T * create (const A &)
 creates object
static void activate (T *, const A &)
 activates object nothing to do
static bool find (T *, const A &)
 finds object - all objects are equal
static void back (T *, const A &)
 backing object - nothing to do
static void destroy (T *obj, const A &)
 destroys object
static void deactivate (T *, const A &)
 deactivates object - nothing to do

Static Private Attributes

static A s_def_arg
 default static argument
static C s_constructor
 default static constructor


Detailed Description

template<class C, class T, class A>
class proto_creator< C, T, A >

base proto class for creators

Definition at line 37 of file proto.h.


Member Typedef Documentation

template<class C, class T, class A>
proto_creator< C, T, A >::TYPE

object type

Definition at line 42 of file proto.h.

template<class C, class T, class A>
proto_creator< C, T, A >::ARG

argument type

Definition at line 45 of file proto.h.


Member Function Documentation

template<class C, class T, class A>
static C& proto_creator< C, T, A >::static_constructor (  )  [inline, static]

returns static constructor

Definition at line 49 of file proto.h.

template<class C, class T, class A>
static const A& proto_creator< C, T, A >::get_default_arg (  )  [inline, static]

returns static defualt argument

Definition at line 56 of file proto.h.

template<class C, class T, class A>
static size_t proto_creator< C, T, A >::get_default_timeout (  )  [inline, static]

returns static default timeout

Definition at line 63 of file proto.h.

template<class C, class T, class A>
static T* proto_creator< C, T, A >::create ( const A &   )  [inline, static]

creates object

Reimplemented in thread_creator, orcl_db_creator, odbc_db_creator, and mysql_db_creator.

Definition at line 70 of file proto.h.

template<class C, class T, class A>
static void proto_creator< C, T, A >::activate ( T *  ,
const A &   
) [inline, static]

activates object nothing to do

Reimplemented in thread_creator, db_creator< T >, db_creator< orcl_db_creator >, db_creator< mysql_db_creator >, and db_creator< odbc_db_creator >.

Definition at line 79 of file proto.h.

template<class C, class T, class A>
static bool proto_creator< C, T, A >::find ( T *  ,
const A &   
) [inline, static]

finds object - all objects are equal

Reimplemented in db_creator< T >, db_creator< orcl_db_creator >, db_creator< mysql_db_creator >, and db_creator< odbc_db_creator >.

Definition at line 87 of file proto.h.

template<class C, class T, class A>
static void proto_creator< C, T, A >::back ( T *  ,
const A &   
) [inline, static]

backing object - nothing to do

Reimplemented in thread_creator, db_creator< T >, db_creator< orcl_db_creator >, db_creator< mysql_db_creator >, and db_creator< odbc_db_creator >.

Definition at line 96 of file proto.h.

template<class C, class T, class A>
static void proto_creator< C, T, A >::destroy ( T *  obj,
const A &   
) [inline, static]

destroys object

Parameters:
obj  object pointer

Reimplemented in thread_creator, db_creator< T >, db_creator< orcl_db_creator >, db_creator< mysql_db_creator >, and db_creator< odbc_db_creator >.

Definition at line 104 of file proto.h.

template<class C, class T, class A>
static void proto_creator< C, T, A >::deactivate ( T *  ,
const A &   
) [inline, static]

deactivates object - nothing to do

Reimplemented in thread_creator, db_creator< T >, db_creator< orcl_db_creator >, db_creator< mysql_db_creator >, and db_creator< odbc_db_creator >.

Definition at line 114 of file proto.h.


Member Data Documentation

template<class C, class T, class A>
A proto_creator< C, T, A >::s_def_arg [inline, static, private]

default static argument

Definition at line 121 of file proto.h.

Referenced by proto_creator< msg_creator, msg_cpp, size_t >::get_default_arg().

template<class C, class T, class A>
C proto_creator< C, T, A >::s_constructor [inline, static, private]

default static constructor

static definitions

Definition at line 122 of file proto.h.

Referenced by proto_creator< msg_creator, msg_cpp, size_t >::static_constructor().


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


© Copyright Terimber 2003-.