Mobile API Reference
MicroStrategy 2019
|
#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) |
DSSBinaryDataReader * | getBinaryReader () |
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) |
DSSBinaryDataReader * | getBinaryReader () |
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) |
DSSDataSource::DSSDataSource | ( | ) |
DSSDataSource::~DSSDataSource | ( | ) |
DSSDataSource::DSSDataSource | ( | ) |
DSSDataSource::~DSSDataSource | ( | ) |
void DSSDataSource::Clean | ( | ) |
void DSSDataSource::Clean | ( | ) |
int DSSDataSource::createMMapMemory | ( | const char * | ipFilePath, |
bool & | ibUseNewFile | ||
) |
int DSSDataSource::createMMapMemory | ( | const char * | ipFilePath, |
bool & | ibUseNewFile | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
MBase::CString DSSDataSource::getFileDirectory | ( | ) |
MBase::CString DSSDataSource::getFileDirectory | ( | ) |
|
inline |
|
inline |
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).
ipSourceBinary | The 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 |
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).
ipSourceBinary | The 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 |
int DSSDataSource::Init | ( | DSSBinaryDataReader * | ipSourceBinary, |
int | start, | ||
int | end, | ||
MBase::CString & | irPath, | ||
bool | ibMakeCopy | ||
) |
int DSSDataSource::Init | ( | DSSBinaryDataReader * | ipSourceBinary, |
int | start, | ||
int | end, | ||
MBase::CString & | irPath, | ||
bool | ibMakeCopy | ||
) |
int DSSDataSource::InitForNewRWD | ( | DSSBinaryDataReader * | ipSourceBinary, |
int | BinaryOffset, | ||
int | start, | ||
int | end, | ||
int | nSlices, | ||
std::vector< int > & | irvSliceOffset, | ||
const MBase::CString & | irPath, | ||
bool | ibMakeCopy | ||
) |
int DSSDataSource::InitForNewRWD | ( | DSSBinaryDataReader * | ipSourceBinary, |
int | BinaryOffset, | ||
int | start, | ||
int | end, | ||
int | nSlices, | ||
std::vector< int > & | irvSliceOffset, | ||
const MBase::CString & | irPath, | ||
bool | ibMakeCopy | ||
) |
|
inline |
|
inline |
int DSSDataSource::LoadData | ( | DSSDataModelBase * | ipModel, |
int | iSlice, | ||
bool & | orbLoadNewSlice | ||
) |
int DSSDataSource::LoadData | ( | DSSDataModelBase * | ipModel, |
int | iSlice, | ||
bool & | orbLoadNewSlice | ||
) |
int DSSDataSource::LoadFieldData | ( | DSSDataModelBase * | ipModel, |
std::vector< int > & | rvSlices | ||
) |
int DSSDataSource::LoadFieldData | ( | DSSDataModelBase * | ipModel, |
std::vector< int > & | rvSlices | ||
) |
int DSSDataSource::LoadInputControlModel | ( | DSSDataModelBase * | ipModel, |
std::string | iKey, | ||
DSSDataModelControlImpl ** | oppControl | ||
) |
int DSSDataSource::LoadInputControlModel | ( | DSSDataModelBase * | ipModel, |
std::string | iKey, | ||
DSSDataModelControlImpl ** | oppControl | ||
) |
int DSSDataSource::LoadModel | ( | DSSDataModelBase * | ipModel | ) |
int DSSDataSource::LoadModel | ( | DSSDataModelBase * | ipModel | ) |
int DSSDataSource::LoadNewRWDModel | ( | DSSRWNodeModel * | ipNodeModel | ) |
int DSSDataSource::LoadNewRWDModel | ( | DSSRWNodeModel * | ipNodeModel | ) |
int DSSDataSource::LoadSliceDataForNewRWD | ( | DSSViewDataSet * | ipViewDataSet, |
int | iSlice | ||
) |
int DSSDataSource::LoadSliceDataForNewRWD | ( | DSSViewDataSet * | ipViewDataSet, |
int | iSlice | ||
) |
int DSSDataSource::MapFileBuffer | ( | ) |
int DSSDataSource::MapFileBuffer | ( | ) |
|
static |
|
static |
void DSSDataSource::Reset | ( | ) |
void DSSDataSource::Reset | ( | ) |
int DSSDataSource::size | ( | ) |
int DSSDataSource::size | ( | ) |
int DSSDataSource::UnMapFileBuffer | ( | ) |
int DSSDataSource::UnMapFileBuffer | ( | ) |