NCBI C++ ToolKit
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CObjectTypeInfo Class Reference

Search Toolkit Book for CObjectTypeInfo

CObjectTypeInfo –. More...

#include <serial/objectinfo.hpp>

+ Inheritance diagram for CObjectTypeInfo:
+ Collaboration diagram for CObjectTypeInfo:

Public Types

typedef CObjectTypeInfoMI CMemberIterator
 
typedef CObjectTypeInfoVI CVariantIterator
 
typedef CObjectTypeInfoCV CChoiceVariant
 
typedef int TASNTag
 

Public Member Functions

 CObjectTypeInfo (TTypeInfo typeinfo=0)
 
const stringGetName (void) const
 Get type name. More...
 
ETypeFamily GetTypeFamily (void) const
 Get data type family. More...
 
bool Valid (void) const
 Check if object is valid. More...
 
 DECLARE_OPERATOR_BOOL_PTR (m_TypeInfo)
 
bool operator== (const CObjectTypeInfo &type) const
 
bool operator!= (const CObjectTypeInfo &type) const
 
EPrimitiveValueType GetPrimitiveValueType (void) const
 Get type of primitive value. More...
 
bool IsPrimitiveValueSigned (void) const
 Is primitive value signed. More...
 
const CEnumeratedTypeValuesGetEnumeratedTypeValues (void) const
 Get a set of possible values of enumeration. More...
 
CObjectTypeInfo GetElementType (void) const
 Get type information of an element of container. More...
 
CMemberIterator BeginMembers (void) const
 Create class member iterator. More...
 
CMemberIterator FindMember (const string &memberName) const
 Find class member by its name. More...
 
TMemberIndex FindMemberIndex (const string &name) const
 Find class member index by its name. More...
 
CMemberIterator FindMemberByTag (int memberTag) const
 Find class member by its numerical tag. More...
 
TMemberIndex FindMemberIndex (int tag) const
 Find class member index by its numerical tag. More...
 
CVariantIterator BeginVariants (void) const
 Create choice variant iterator. More...
 
CVariantIterator FindVariant (const string &memberName) const
 Find choice variant by its name. More...
 
TMemberIndex FindVariantIndex (const string &name) const
 Find choice variant index by its name. More...
 
CVariantIterator FindVariantByTag (int memberTag) const
 Find choice variant by its numerical tag. More...
 
TMemberIndex FindVariantIndex (int tag) const
 Find choice variant index by its numerical tag. More...
 
CObjectTypeInfo GetPointedType (void) const
 Get type information of data to which this type refers. More...
 
void SetLocalReadHook (CObjectIStream &stream, CReadObjectHook *hook) const
 Set local (for the specified stream) read hook. More...
 
void SetGlobalReadHook (CReadObjectHook *hook) const
 Set global (for all streams) read hook. More...
 
void ResetLocalReadHook (CObjectIStream &stream) const
 Reset local read hook. More...
 
void ResetGlobalReadHook (void) const
 Reset global read hooks. More...
 
void SetPathReadHook (CObjectIStream *stream, const string &path, CReadObjectHook *hook) const
 Set local context-specific read hook. More...
 
void SetLocalWriteHook (CObjectOStream &stream, CWriteObjectHook *hook) const
 Set local (for the specified stream) write hook. More...
 
void SetGlobalWriteHook (CWriteObjectHook *hook) const
 Set global (for all streams) write hook. More...
 
void ResetLocalWriteHook (CObjectOStream &stream) const
 Reset local write hook. More...
 
void ResetGlobalWriteHook (void) const
 Reset global write hooks. More...
 
void SetPathWriteHook (CObjectOStream *stream, const string &path, CWriteObjectHook *hook) const
 Set local context-specific write hook. More...
 
void SetLocalSkipHook (CObjectIStream &stream, CSkipObjectHook *hook) const
 Set local (for the specified stream) skip hook. More...
 
void ResetLocalSkipHook (CObjectIStream &stream) const
 Reset local skip hook. More...
 
void SetPathSkipHook (CObjectIStream *stream, const string &path, CSkipObjectHook *hook) const
 Set local context-specific skip hook. More...
 
void SetLocalCopyHook (CObjectStreamCopier &stream, CCopyObjectHook *hook) const
 Set local (for the specified stream) copy hook. More...
 
void SetGlobalCopyHook (CCopyObjectHook *hook) const
 Set global (for all streams) copy hook. More...
 
void ResetLocalCopyHook (CObjectStreamCopier &stream) const
 Reset local copy hook. More...
 
void ResetGlobalCopyHook (void) const
 Reset global read hooks. More...
 
void SetPathCopyHook (CObjectStreamCopier *stream, const string &path, CCopyObjectHook *hook) const
 Set local context-specific copy hook. More...
 
TTypeInfo GetTypeInfo (void) const
 
const CPrimitiveTypeInfoGetPrimitiveTypeInfo (void) const
 
const CEnumeratedTypeInfoGetEnumeratedTypeInfo (void) const
 
const CClassTypeInfoGetClassTypeInfo (void) const
 
const CChoiceTypeInfoGetChoiceTypeInfo (void) const
 
const CContainerTypeInfoGetContainerTypeInfo (void) const
 
const CPointerTypeInfoGetPointerTypeInfo (void) const
 
CMemberIterator GetMemberIterator (TMemberIndex index) const
 
CVariantIterator GetVariantIterator (TMemberIndex index) const
 
TASNTag GetASNTag () const
 

Protected Member Functions

void ResetTypeInfo (void)
 
void SetTypeInfo (TTypeInfo typeinfo)
 
void CheckTypeFamily (ETypeFamily family) const
 
void WrongTypeFamily (ETypeFamily needFamily) const
 

Private Member Functions

CTypeInfoGetNCTypeInfo (void) const
 
bool MatchPattern (vector< int > &pattern, size_t &pos, int depth, const CItemInfo *item=NULL) const
 

Private Attributes

TTypeInfo m_TypeInfo
 

Friends

class CObjectIStreamAsnBinary
 

Detailed Description

CObjectTypeInfo –.

Facilitate access to the data type information. No concrete object is referenced.

Definition at line 93 of file objectinfo.hpp.


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:04 2024 by modify_doxy.py rev. 669887