Mobile API Reference  MicroStrategy 2019
DSSDataSource Class Reference

#include <DSSDataSource.h>

Public Member Functions

 DSSDataSource ()
 
 ~DSSDataSource ()
 
int Init (DSSBinaryDataReader *ipSourceBinary, int BinaryOffset, int start, int end, int nSlices, int *ipvSliceOffset, int inSliceOffset, const MBase::CString &irPath, bool ibMakeCopy, bool ibFieldGroup=false)
 
int Init (DSSBinaryDataReader *ipSourceBinary, int start, int end, MBase::CString &irPath, bool ibMakeCopy)
 
DSSBinaryDataReadergetBinaryReader ()
 
int LoadData (DSSDataModelBase *ipModel, int iSlice, bool &orbLoadNewSlice)
 
bool IsAllLoaded ()
 
int LoadModel (DSSDataModelBase *ipModel)
 
int size ()
 
void Reset ()
 
int getFileOffset ()
 
int LoadNewRWDModel (DSSRWNodeModel *ipNodeModel)
 
int LoadSliceDataForNewRWD (DSSViewDataSet *ipViewDataSet, int iSlice)
 
void Clean ()
 
int InitForNewRWD (DSSBinaryDataReader *ipSourceBinary, int BinaryOffset, int start, int end, int nSlices, std::vector< int > &irvSliceOffset, const MBase::CString &irPath, bool ibMakeCopy)
 
int LoadFieldData (DSSDataModelBase *ipModel, std::vector< int > &rvSlices)
 
int createMMapMemory (const char *ipFilePath, bool &ibUseNewFile)
 
int MapFileBuffer ()
 
int UnMapFileBuffer ()
 
int LoadInputControlModel (DSSDataModelBase *ipModel, std::string iKey, DSSDataModelControlImpl **oppControl)
 
MBase::CString getFileDirectory ()
 
MBase::CString getDataSourcePath ()
 
 DSSDataSource ()
 
 ~DSSDataSource ()
 
int Init (DSSBinaryDataReader *ipSourceBinary, int BinaryOffset, int start, int end, int nSlices, int *ipvSliceOffset, int inSliceOffset, const MBase::CString &irPath, bool ibMakeCopy, bool ibFieldGroup=false)
 
int Init (DSSBinaryDataReader *ipSourceBinary, int start, int end, MBase::CString &irPath, bool ibMakeCopy)
 
DSSBinaryDataReadergetBinaryReader ()
 
int LoadData (DSSDataModelBase *ipModel, int iSlice, bool &orbLoadNewSlice)
 
bool IsAllLoaded ()
 
int LoadModel (DSSDataModelBase *ipModel)
 
int size ()
 
void Reset ()
 
int getFileOffset ()
 
int LoadNewRWDModel (DSSRWNodeModel *ipNodeModel)
 
int LoadSliceDataForNewRWD (DSSViewDataSet *ipViewDataSet, int iSlice)
 
void Clean ()
 
int InitForNewRWD (DSSBinaryDataReader *ipSourceBinary, int BinaryOffset, int start, int end, int nSlices, std::vector< int > &irvSliceOffset, const MBase::CString &irPath, bool ibMakeCopy)
 
int LoadFieldData (DSSDataModelBase *ipModel, std::vector< int > &rvSlices)
 
int createMMapMemory (const char *ipFilePath, bool &ibUseNewFile)
 
int MapFileBuffer ()
 
int UnMapFileBuffer ()
 
int LoadInputControlModel (DSSDataModelBase *ipModel, std::string iKey, DSSDataModelControlImpl **oppControl)
 
MBase::CString getFileDirectory ()
 
MBase::CString getDataSourcePath ()
 

Static Public Member Functions

static int ReadFileContent (std::string &irPath, int offset, int length, unsigned char **oppData)
 
static int ReadFileContent (std::string &irPath, int offset, int length, unsigned char **oppData)
 

Constructor & Destructor Documentation

◆ DSSDataSource() [1/2]

DSSDataSource::DSSDataSource ( )

◆ ~DSSDataSource() [1/2]

DSSDataSource::~DSSDataSource ( )

◆ DSSDataSource() [2/2]

DSSDataSource::DSSDataSource ( )

◆ ~DSSDataSource() [2/2]

DSSDataSource::~DSSDataSource ( )

Member Function Documentation

◆ Clean() [1/2]

void DSSDataSource::Clean ( )

◆ Clean() [2/2]

void DSSDataSource::Clean ( )

◆ createMMapMemory() [1/2]

int DSSDataSource::createMMapMemory ( const char *  ipFilePath,
bool &  ibUseNewFile 
)

◆ createMMapMemory() [2/2]

int DSSDataSource::createMMapMemory ( const char *  ipFilePath,
bool &  ibUseNewFile 
)

◆ getBinaryReader() [1/2]

DSSBinaryDataReader* DSSDataSource::getBinaryReader ( )
inline

◆ getBinaryReader() [2/2]

DSSBinaryDataReader* DSSDataSource::getBinaryReader ( )
inline

◆ getDataSourcePath() [1/2]

MBase::CString DSSDataSource::getDataSourcePath ( )
inline

◆ getDataSourcePath() [2/2]

MBase::CString DSSDataSource::getDataSourcePath ( )
inline

◆ getFileDirectory() [1/2]

MBase::CString DSSDataSource::getFileDirectory ( )

◆ getFileDirectory() [2/2]

MBase::CString DSSDataSource::getFileDirectory ( )

◆ getFileOffset() [1/2]

int DSSDataSource::getFileOffset ( )
inline

◆ getFileOffset() [2/2]

int DSSDataSource::getFileOffset ( )
inline

◆ Init() [1/4]

int DSSDataSource::Init ( DSSBinaryDataReader ipSourceBinary,
int  BinaryOffset,
int  start,
int  end,
int  nSlices,
int *  ipvSliceOffset,
int  inSliceOffset,
const MBase::CString irPath,
bool  ibMakeCopy,
bool  ibFieldGroup = false 
)

Init data source with the binary data range [start, end) of ipSourceBinary The data is not loaded until needed. So this function only remember where to load(irPath), and how many to load (end - start).

Parameters
ipSourceBinaryThe Binary data reader, it has the binary data loaded from file param BinaryOffset The offset within binary file
param start The offset within ipSourceBinary param end The offset within ipSourceBinary param nSlices number of slices param irvSliceOffset The offset within ipSourceBinary for each data slice param irPath The binary file path param ibMakeCopy if the binary file is not persist, we need make a local copy

◆ Init() [2/4]

int DSSDataSource::Init ( DSSBinaryDataReader ipSourceBinary,
int  BinaryOffset,
int  start,
int  end,
int  nSlices,
int *  ipvSliceOffset,
int  inSliceOffset,
const MBase::CString irPath,
bool  ibMakeCopy,
bool  ibFieldGroup = false 
)

Init data source with the binary data range [start, end) of ipSourceBinary The data is not loaded until needed. So this function only remember where to load(irPath), and how many to load (end - start).

Parameters
ipSourceBinaryThe Binary data reader, it has the binary data loaded from file param BinaryOffset The offset within binary file
param start The offset within ipSourceBinary param end The offset within ipSourceBinary param nSlices number of slices param irvSliceOffset The offset within ipSourceBinary for each data slice param irPath The binary file path param ibMakeCopy if the binary file is not persist, we need make a local copy

◆ Init() [3/4]

int DSSDataSource::Init ( DSSBinaryDataReader ipSourceBinary,
int  start,
int  end,
MBase::CString irPath,
bool  ibMakeCopy 
)

◆ Init() [4/4]

int DSSDataSource::Init ( DSSBinaryDataReader ipSourceBinary,
int  start,
int  end,
MBase::CString irPath,
bool  ibMakeCopy 
)

◆ InitForNewRWD() [1/2]

int DSSDataSource::InitForNewRWD ( DSSBinaryDataReader ipSourceBinary,
int  BinaryOffset,
int  start,
int  end,
int  nSlices,
std::vector< int > &  irvSliceOffset,
const MBase::CString irPath,
bool  ibMakeCopy 
)

◆ InitForNewRWD() [2/2]

int DSSDataSource::InitForNewRWD ( DSSBinaryDataReader ipSourceBinary,
int  BinaryOffset,
int  start,
int  end,
int  nSlices,
std::vector< int > &  irvSliceOffset,
const MBase::CString irPath,
bool  ibMakeCopy 
)

◆ IsAllLoaded() [1/2]

bool DSSDataSource::IsAllLoaded ( )
inline

◆ IsAllLoaded() [2/2]

bool DSSDataSource::IsAllLoaded ( )
inline

◆ LoadData() [1/2]

int DSSDataSource::LoadData ( DSSDataModelBase ipModel,
int  iSlice,
bool &  orbLoadNewSlice 
)

◆ LoadData() [2/2]

int DSSDataSource::LoadData ( DSSDataModelBase ipModel,
int  iSlice,
bool &  orbLoadNewSlice 
)

◆ LoadFieldData() [1/2]

int DSSDataSource::LoadFieldData ( DSSDataModelBase ipModel,
std::vector< int > &  rvSlices 
)

◆ LoadFieldData() [2/2]

int DSSDataSource::LoadFieldData ( DSSDataModelBase ipModel,
std::vector< int > &  rvSlices 
)

◆ LoadInputControlModel() [1/2]

int DSSDataSource::LoadInputControlModel ( DSSDataModelBase ipModel,
std::string  iKey,
DSSDataModelControlImpl **  oppControl 
)

◆ LoadInputControlModel() [2/2]

int DSSDataSource::LoadInputControlModel ( DSSDataModelBase ipModel,
std::string  iKey,
DSSDataModelControlImpl **  oppControl 
)

◆ LoadModel() [1/2]

int DSSDataSource::LoadModel ( DSSDataModelBase ipModel)

◆ LoadModel() [2/2]

int DSSDataSource::LoadModel ( DSSDataModelBase ipModel)

◆ LoadNewRWDModel() [1/2]

int DSSDataSource::LoadNewRWDModel ( DSSRWNodeModel ipNodeModel)

◆ LoadNewRWDModel() [2/2]

int DSSDataSource::LoadNewRWDModel ( DSSRWNodeModel ipNodeModel)

◆ LoadSliceDataForNewRWD() [1/2]

int DSSDataSource::LoadSliceDataForNewRWD ( DSSViewDataSet ipViewDataSet,
int  iSlice 
)

◆ LoadSliceDataForNewRWD() [2/2]

int DSSDataSource::LoadSliceDataForNewRWD ( DSSViewDataSet ipViewDataSet,
int  iSlice 
)

◆ MapFileBuffer() [1/2]

int DSSDataSource::MapFileBuffer ( )

◆ MapFileBuffer() [2/2]

int DSSDataSource::MapFileBuffer ( )

◆ ReadFileContent() [1/2]

static int DSSDataSource::ReadFileContent ( std::string &  irPath,
int  offset,
int  length,
unsigned char **  oppData 
)
static

◆ ReadFileContent() [2/2]

static int DSSDataSource::ReadFileContent ( std::string &  irPath,
int  offset,
int  length,
unsigned char **  oppData 
)
static

◆ Reset() [1/2]

void DSSDataSource::Reset ( )

◆ Reset() [2/2]

void DSSDataSource::Reset ( )

◆ size() [1/2]

int DSSDataSource::size ( )

◆ size() [2/2]

int DSSDataSource::size ( )

◆ UnMapFileBuffer() [1/2]

int DSSDataSource::UnMapFileBuffer ( )

◆ UnMapFileBuffer() [2/2]

int DSSDataSource::UnMapFileBuffer ( )