GME  13
Classes | Public Types | Public Member Functions | Public Attributes
CCoreBinFile Class Reference

#include <CoreBinFile.h>

Inheritance diagram for CCoreBinFile:
Inheritance graph
[legend]
Collaboration diagram for CCoreBinFile:
Collaboration graph
[legend]

List of all members.

Classes

struct  resolve_type

Public Types

typedef std::map< BinAttrBase
*, CComVariant > 
undos_type
typedef undos_type::iterator undos_iterator
typedef core::hash_map
< metaid_type, objid_type
maxobjids_type
typedef maxobjids_type::iterator maxobjids_iterator
typedef core::forward_list
< resolve_type
resolvelist_type

Public Member Functions

 CCoreBinFile ()
 ~CCoreBinFile ()
STDMETHODIMP get_MetaProject (ICoreMetaProject **p)
STDMETHODIMP put_MetaProject (ICoreMetaProject *p)
void OpenMetaProject ()
void CloseMetaProject () NOTHROW
STDMETHODIMP get_MetaObject (ICoreMetaObject **p)
STDMETHODIMP put_MetaObject (ICoreMetaObject *p)
STDMETHODIMP get_MetaID (metaid_type *p)
STDMETHODIMP put_MetaID (metaid_type p)
void OpenMetaObject ()
void CloseMetaObject () NOTHROW
STDMETHODIMP get_MetaAttribute (ICoreMetaAttribute **p)
STDMETHODIMP put_MetaAttribute (ICoreMetaAttribute *p)
STDMETHODIMP get_AttrID (attrid_type *p)
STDMETHODIMP put_AttrID (attrid_type p)
void OpenMetaAttribute ()
void CloseMetaAttribute () NOTHROW
void read (unsigned char &a)
void read (short &a)
void read (int &a)
void read (long &a)
void read (double &a)
void read (CComBstrObj &a)
void read (CComBstrObj &ss, char *&cifs)
void read (bindata &a)
void read (unsigned char *&b, int &len)
void readstring (char *&pos)
void write (unsigned char a)
void write (short a)
void write (int a)
void write (long a)
void write (double a)
void write (const CComBstrObj &a)
void write (const bindata &a)
void write (const unsigned char *a, int len)
void write (const wchar_t *a, int len)
void writestring (const char *pos)
STDMETHODIMP get_AttributeValue (VARIANT *p)
STDMETHODIMP put_AttributeValue (VARIANT p)
void InitMaxObjIDs ()
STDMETHODIMP OpenObject (objid_type objid)
STDMETHODIMP CreateObject (objid_type *objid)
STDMETHODIMP CloseObject () NOTHROW
STDMETHODIMP DeleteObject ()
STDMETHODIMP LockObject ()
bool IsOpened () const
bool InTransaction () const
void CancelProject () NOTHROW
void SaveProject (const std::wstring &origfname, bool keepoldname)
void LoadProject ()
STDMETHODIMP OpenProject (BSTR connection, VARIANT_BOOL *ro_mode)
STDMETHODIMP CreateProject (BSTR connection)
STDMETHODIMP CloseProject (VARIANT_BOOL abort=VARIANT_FALSE) NOTHROW
STDMETHODIMP SaveProject (BSTR connection, VARIANT_BOOL keepoldname)
STDMETHODIMP DeleteProject ()
STDMETHODIMP BeginTransaction ()
STDMETHODIMP CommitTransaction ()
STDMETHODIMP AbortTransaction ()
STDMETHODIMP get_StorageType (long *p)

Public Attributes

CComObjPtr< ICoreMetaProjectmetaproject
bindata metaprojectid
CComObjPtr< ICoreMetaObjectmetaobject
metaid_type metaid
CComObjPtr< ICoreMetaAttributemetaattribute
attrid_type attrid
char * cifs
char * cifs_eof
std::ofstream ofs
undos_type undos
objects_type objects
objects_iterator opened_object
bool isEmpty
maxobjids_type maxobjids
core::forward_list
< objects_iterator
deleted_objects
core::forward_list
< objects_iterator
created_objects
resolvelist_type resolvelist
std::wstring filename
bool read_only
bool intrans
bool modified
membuf file_buffer

Detailed Description

Definition at line 184 of file CoreBinFile.h.


Member Typedef Documentation

typedef maxobjids_type::iterator CCoreBinFile::maxobjids_iterator

Definition at line 296 of file CoreBinFile.h.

Definition at line 295 of file CoreBinFile.h.

typedef core::forward_list<resolve_type> CCoreBinFile::resolvelist_type

Definition at line 309 of file CoreBinFile.h.

typedef undos_type::iterator CCoreBinFile::undos_iterator

Definition at line 281 of file CoreBinFile.h.

typedef std::map<BinAttrBase*, CComVariant> CCoreBinFile::undos_type

Definition at line 280 of file CoreBinFile.h.


Constructor & Destructor Documentation

Definition at line 415 of file CoreBinFile.cpp.

Definition at line 424 of file CoreBinFile.cpp.


Member Function Documentation

Definition at line 1411 of file CoreBinFile.cpp.

Definition at line 1369 of file CoreBinFile.cpp.

Definition at line 963 of file CoreBinFile.cpp.

Definition at line 650 of file CoreBinFile.cpp.

Definition at line 553 of file CoreBinFile.cpp.

Definition at line 463 of file CoreBinFile.cpp.

STDMETHODIMP CCoreBinFile::CloseObject ( )

Definition at line 928 of file CoreBinFile.cpp.

STDMETHODIMP CCoreBinFile::CloseProject ( VARIANT_BOOL  abort = VARIANT_FALSE)

Definition at line 1349 of file CoreBinFile.cpp.

Definition at line 1382 of file CoreBinFile.cpp.

STDMETHODIMP CCoreBinFile::CreateObject ( objid_type objid)

Definition at line 888 of file CoreBinFile.cpp.

STDMETHODIMP CCoreBinFile::CreateProject ( BSTR  connection)

Definition at line 1274 of file CoreBinFile.cpp.

STDMETHODIMP CCoreBinFile::DeleteObject ( )

Definition at line 942 of file CoreBinFile.cpp.

STDMETHODIMP CCoreBinFile::DeleteProject ( ) [inline]

Definition at line 343 of file CoreBinFile.h.

STDMETHODIMP CCoreBinFile::get_AttributeValue ( VARIANT *  p)

Definition at line 789 of file CoreBinFile.cpp.

STDMETHODIMP CCoreBinFile::get_AttrID ( attrid_type p)

Definition at line 602 of file CoreBinFile.cpp.

Definition at line 563 of file CoreBinFile.cpp.

STDMETHODIMP CCoreBinFile::get_MetaID ( metaid_type p)

Definition at line 511 of file CoreBinFile.cpp.

Definition at line 476 of file CoreBinFile.cpp.

Definition at line 430 of file CoreBinFile.cpp.

STDMETHODIMP CCoreBinFile::get_StorageType ( long *  p)

Definition at line 1460 of file CoreBinFile.cpp.

Definition at line 828 of file CoreBinFile.cpp.

bool CCoreBinFile::InTransaction ( ) const [inline]

Definition at line 332 of file CoreBinFile.h.

bool CCoreBinFile::IsOpened ( ) const [inline]

Definition at line 331 of file CoreBinFile.h.

Definition at line 1121 of file CoreBinFile.cpp.

STDMETHODIMP CCoreBinFile::LockObject ( )

Definition at line 934 of file CoreBinFile.cpp.

Definition at line 640 of file CoreBinFile.cpp.

Definition at line 546 of file CoreBinFile.cpp.

Definition at line 453 of file CoreBinFile.cpp.

STDMETHODIMP CCoreBinFile::OpenObject ( objid_type  objid)

Definition at line 859 of file CoreBinFile.cpp.

STDMETHODIMP CCoreBinFile::OpenProject ( BSTR  connection,
VARIANT_BOOL *  ro_mode 
)

Definition at line 1250 of file CoreBinFile.cpp.

STDMETHODIMP CCoreBinFile::put_AttributeValue ( VARIANT  p)

Definition at line 806 of file CoreBinFile.cpp.

Definition at line 613 of file CoreBinFile.cpp.

Definition at line 572 of file CoreBinFile.cpp.

Definition at line 520 of file CoreBinFile.cpp.

Definition at line 485 of file CoreBinFile.cpp.

Definition at line 439 of file CoreBinFile.cpp.

void CCoreBinFile::read ( unsigned char &  a) [inline]

Definition at line 254 of file CoreBinFile.h.

void CCoreBinFile::read ( short &  a) [inline]

Definition at line 255 of file CoreBinFile.h.

void CCoreBinFile::read ( int a) [inline]

Definition at line 256 of file CoreBinFile.h.

void CCoreBinFile::read ( long &  a) [inline]

Definition at line 257 of file CoreBinFile.h.

void CCoreBinFile::read ( double &  a) [inline]

Definition at line 258 of file CoreBinFile.h.

Definition at line 707 of file CoreBinFile.cpp.

void CCoreBinFile::read ( CComBstrObj ss,
char *&  cifs 
)

Definition at line 712 of file CoreBinFile.cpp.

void CCoreBinFile::read ( bindata a)

Definition at line 658 of file CoreBinFile.cpp.

void CCoreBinFile::read ( unsigned char *&  b,
int len 
)

Definition at line 680 of file CoreBinFile.cpp.

void CCoreBinFile::readstring ( char *&  pos)

Definition at line 699 of file CoreBinFile.cpp.

void CCoreBinFile::SaveProject ( const std::wstring &  origfname,
bool  keepoldname 
)

Definition at line 992 of file CoreBinFile.cpp.

STDMETHODIMP CCoreBinFile::SaveProject ( BSTR  connection,
VARIANT_BOOL  keepoldname = VARIANT_TRUE 
)

Definition at line 1319 of file CoreBinFile.cpp.

void CCoreBinFile::write ( unsigned char  a) [inline]

Definition at line 265 of file CoreBinFile.h.

void CCoreBinFile::write ( short  a) [inline]

Definition at line 266 of file CoreBinFile.h.

void CCoreBinFile::write ( int  a) [inline]

Definition at line 267 of file CoreBinFile.h.

void CCoreBinFile::write ( long  a) [inline]

Definition at line 268 of file CoreBinFile.h.

void CCoreBinFile::write ( double  a) [inline]

Definition at line 269 of file CoreBinFile.h.

void CCoreBinFile::write ( const CComBstrObj a)

Definition at line 758 of file CoreBinFile.cpp.

void CCoreBinFile::write ( const bindata a)

Definition at line 733 of file CoreBinFile.cpp.

void CCoreBinFile::write ( const unsigned char *  a,
int  len 
)

Definition at line 746 of file CoreBinFile.cpp.

void CCoreBinFile::write ( const wchar_t *  a,
int  len 
) [inline]

Definition at line 273 of file CoreBinFile.h.

void CCoreBinFile::writestring ( const char *  pos)

Definition at line 778 of file CoreBinFile.cpp.


Member Data Documentation

Definition at line 233 of file CoreBinFile.h.

Definition at line 247 of file CoreBinFile.h.

Definition at line 248 of file CoreBinFile.h.

Definition at line 300 of file CoreBinFile.h.

Definition at line 299 of file CoreBinFile.h.

Definition at line 330 of file CoreBinFile.h.

std::wstring CCoreBinFile::filename

Definition at line 325 of file CoreBinFile.h.

Definition at line 327 of file CoreBinFile.h.

Definition at line 293 of file CoreBinFile.h.

Definition at line 298 of file CoreBinFile.h.

Definition at line 232 of file CoreBinFile.h.

Definition at line 218 of file CoreBinFile.h.

Definition at line 217 of file CoreBinFile.h.

Definition at line 205 of file CoreBinFile.h.

Definition at line 206 of file CoreBinFile.h.

Definition at line 328 of file CoreBinFile.h.

Definition at line 291 of file CoreBinFile.h.

std::ofstream CCoreBinFile::ofs

Definition at line 250 of file CoreBinFile.h.

Definition at line 292 of file CoreBinFile.h.

Definition at line 326 of file CoreBinFile.h.

Definition at line 310 of file CoreBinFile.h.

Definition at line 283 of file CoreBinFile.h.


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