TDbiBinaryFile.cxx File Reference

#include <iostream>
#include "TClass.h"
#include "TObject.h"
#include "Api.h"
#include "TSystem.h"
#include "TDbiBinaryFile.hxx"
#include "TDbiTableRow.hxx"
#include <TSK_DBI_Log.hxx>
#include <MsgFormat.h>
#include "TVldRange.hxx"
#include "TVldTimeStamp.hxx"
Include dependency graph for TDbiBinaryFile.cxx:

Go to the source code of this file.

Defines

#define READ_BUILTIN(t)
#define WRITE_BUILTIN(t)
#define READ_SIMPLE(t)
#define WRITE_SIMPLE(t)

Enumerations

enum  Markers { StartMarker = 0xaabbccdd, EndMarker = 0xddbbccaa }

Functions

void * GetVTptr (const void *obj)
void SetVTptr (void *obj, const void *vt)

Define Documentation

#define READ_BUILTIN (  ) 
Value:
\
TDbiBinaryFile& TDbiBinaryFile::operator >> (t& v) {        \
  UInt_t numBytes = sizeof(v);                            \
  char* bytes = reinterpret_cast<char*>(&v);              \
  this->Read(bytes,numBytes);                             \
  return *this;                                           \
}

Definition at line 127 of file TDbiBinaryFile.cxx.

#define READ_SIMPLE (  ) 
Value:
\
TDbiBinaryFile& TDbiBinaryFile::operator >> (t& v) {        \
  void* vt = GetVTptr(&v);                                \
  UInt_t numBytes = sizeof(v);                            \
  char* bytes = reinterpret_cast<char*>(&v);              \
  this->Read(bytes,numBytes);                             \
  SetVTptr(&v,vt);                                        \
  return *this;                                           \
}

Definition at line 157 of file TDbiBinaryFile.cxx.

#define WRITE_BUILTIN (  ) 
Value:
\
TDbiBinaryFile& TDbiBinaryFile::operator << (const t& v) {  \
  UInt_t numBytes = sizeof(v);                            \
  const char* bytes = reinterpret_cast<const char*>(&v);  \
  this->Write(bytes,numBytes);                            \
  return *this;                                           \
}

Definition at line 135 of file TDbiBinaryFile.cxx.

#define WRITE_SIMPLE (  ) 
Value:
\
TDbiBinaryFile& TDbiBinaryFile::operator << (const t& v) {  \
  UInt_t numBytes = sizeof(v);                            \
  const char* bytes = reinterpret_cast<const char*>(&v);  \
  this->Write(bytes,numBytes);                            \
  return *this;                                           \
}

Definition at line 167 of file TDbiBinaryFile.cxx.


Enumeration Type Documentation

enum Markers
Enumerator:
StartMarker 
EndMarker 

Definition at line 18 of file TDbiBinaryFile.cxx.

00018              { StartMarker = 0xaabbccdd,
00019                EndMarker   = 0xddbbccaa};


Function Documentation

void* GetVTptr ( const void *  obj  ) 

Definition at line 24 of file TDbiBinaryFile.cxx.

00024                                 {
00025 
00026 //  Return an object's virtual table pointer.
00027 
00028   void* ptr;
00029   memcpy(&ptr,obj,4);
00030   return ptr;
00031 
00032 }

void SetVTptr ( void *  obj,
const void *  vt 
)

Definition at line 33 of file TDbiBinaryFile.cxx.

00033                                          {
00034 
00035 //  Set an object's virtual table pointer.
00036 
00037   memcpy(obj,&vt,4);
00038 
00039 }


Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1