logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ost::TypeManager - This class manages the types for generation of the persistent objects.

Author

       Generated automatically by Doxygen for GNU CommonC++ from the source code.

GNU CommonC++                                    Sun Dec 27 2020                             ost::TypeManager(3)

Detailed Description

       This class manages the types for generation of the persistent objects.

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

       Author
           Daniel Silverstone

       Type manager for persistence engine.

Member Function Documentation

staticvoidost::TypeManager::add(constchar*name,NewBaseObjectFunctionconstruction)[static]
       This adds a new construction function to the type manager.

   staticBaseObject*ost::TypeManager::createInstanceOf(constchar*name)[static]
       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

   staticvoidost::TypeManager::remove(constchar*name)[static]
       And this one removes a type from the managers lists.

Member Typedef Documentation

typedefstd::map<String,NewBaseObjectFunction>ost::TypeManager::StringFunctionMap

Name

       ost::TypeManager - This class manages the types for generation of the persistent objects.

Synopsis

       #include <persist.h>

   Classes
       class Registration
           This manages a registration to the typemanager - attempting to remove problems with the optimisers.

   PublicTypes
       typedef std::map< String, NewBaseObjectFunction > StringFunctionMapStaticPublicMemberFunctions
       static void add (const char *name, NewBaseObjectFunction construction)
           This adds a new construction function to the type manager.
       static void remove (const char *name)
           And this one removes a type from the managers lists.
       static BaseObject * createInstanceOf (const char *name)
           This function creates a new object of the required type and returns a pointer to it.

See Also