Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > ad1ba1135a9c9eeffc2e538163e00373 > files > 793

libCommonC++2_1.4-devel-1.4.1-1mdv2007.0.i586.rpm

\section{ost::Type\-Manager Class Reference}
\label{classost_1_1_type_manager}\index{ost::TypeManager@{ost::TypeManager}}
This class manages the types for generation of the persistent objects.Type manager for persistence engine.  


{\tt \#include $<$persist.h$>$}

\subsection*{Public Types}
\begin{CompactItemize}
\item 
typedef std::map$<$ {\bf String}, {\bf New\-Base\-Object\-Function} $>$ {\bf String\-Function\-Map}
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static void {\bf add} (const char $\ast$name, {\bf New\-Base\-Object\-Function} construction)
\begin{CompactList}\small\item\em This adds a new construction function to the type manager. \item\end{CompactList}\item 
static void {\bf remove} (const char $\ast$name)
\begin{CompactList}\small\item\em And this one removes a type from the managers lists. \item\end{CompactList}\item 
static {\bf Base\-Object} $\ast$ {\bf create\-Instance\-Of} (const char $\ast$name)
\begin{CompactList}\small\item\em This function creates a new object of the required type and returns a pointer to it. \item\end{CompactList}\end{CompactItemize}
\subsection*{Classes}
\begin{CompactItemize}
\item 
class {\bf Registration}
\begin{CompactList}\small\item\em This manages a registration to the typemanager - attempting to remove problems with the optimisers. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
This class manages the types for generation of the persistent objects.Type manager for persistence engine. 

Its data structures are managed automatically by the system. They are implicitly filled by the constructors who declare classes to the system.

\begin{Desc}
\item[Author:]Daniel Silverstone \end{Desc}




\subsection{Member Typedef Documentation}
\index{ost::TypeManager@{ost::Type\-Manager}!StringFunctionMap@{StringFunctionMap}}
\index{StringFunctionMap@{StringFunctionMap}!ost::TypeManager@{ost::Type\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef std::map$<${\bf String},{\bf New\-Base\-Object\-Function}$>$ {\bf ost::Type\-Manager::String\-Function\-Map}}\label{classost_1_1_type_manager_898c5cca59cb8c845d8c836aeed0fae0}




\subsection{Member Function Documentation}
\index{ost::TypeManager@{ost::Type\-Manager}!add@{add}}
\index{add@{add}!ost::TypeManager@{ost::Type\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void ost::Type\-Manager::add (const char $\ast$ {\em name}, {\bf New\-Base\-Object\-Function} {\em construction})\hspace{0.3cm}{\tt  [static]}}\label{classost_1_1_type_manager_da6b3c436c67f4e2f9a2a44bfcc34583}


This adds a new construction function to the type manager. 

\index{ost::TypeManager@{ost::Type\-Manager}!createInstanceOf@{createInstanceOf}}
\index{createInstanceOf@{createInstanceOf}!ost::TypeManager@{ost::Type\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf Base\-Object}$\ast$ ost::Type\-Manager::create\-Instance\-Of (const char $\ast$ {\em name})\hspace{0.3cm}{\tt  [static]}}\label{classost_1_1_type_manager_ec12ff7c1d3949b563e25005a578c046}


This function creates a new object of the required type and returns a pointer to it. 

NULL is returned if we couldn't find the type \index{ost::TypeManager@{ost::Type\-Manager}!remove@{remove}}
\index{remove@{remove}!ost::TypeManager@{ost::Type\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void ost::Type\-Manager::remove (const char $\ast$ {\em name})\hspace{0.3cm}{\tt  [static]}}\label{classost_1_1_type_manager_65faf1182b3b27f7d70c94e2ba26e71c}


And this one removes a type from the managers lists. 



The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
{\bf persist.h}\end{CompactItemize}