📄 eb_rsrcmgr.h
字号:
/***************************************************************************
EB_RsrcMgr.h -
-------------------
begin : Tue Mar 3 2004
copyright : (C) 2004-2006 by DigitalAirways
email : info@digitalairways.com
***************************************************************************/
/*
* Copyright (c) 2000-2006 DigitalAirways, sarl. All Rights Reserved.
*
* This software is the confidential and proprietary information of
* DigitalAirways, sarl. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with DigitalAirways.
* A copy of this license is included in the licence.txt file included
* in this software package.
*/
/*
**************************************************************
* TODO
**************************************************************
-
**************************************************************
* HISTORY
**************************************************************
-
*/
#ifndef __EB_RSRCMGR__
#define __EB_RSRCMGR__
#include "EB_Defs.h"
#ifdef USE_STORE_SYSTEM
#include "EB_StoreSystem.h"
#endif // def USE_STORE_SYSTEM
class GContext ;
class KREBDLIBS_API RsrcMgr {
private:
//
GContext* gContext ;
#ifdef USE_STORE_SYSTEM
StoreSystem* storeSystem ;
#endif // def USE_STORE_SYSTEM
// This is the prefix that must be added to any file name when a
// resource dir is not specified
pchar fsPrefix ;
public :
DEFINE_NEW(RsrcMgr);
DEFINE_DELETE(RsrcMgr);
RsrcMgr(GContext* newGContext=NULL) ;
virtual ~RsrcMgr() ;
//
GContext* getContext() { return gContext; }
virtual void setFsPrefix(pchar newFsPrefix) ;
virtual pchar getFsPrefix() { return fsPrefix; };
/*
* The ownership of the returned value is not transferred to the caller
*/
virtual pchar getEmbeddedResource(unsigned char* fileName, int* fileLen);
/*
* The ownership of the returned value is not transferred to the caller
*/
virtual pchar getResource(pchar fileName, int* fileLen, char* resourcesdir=NULL);
/*
* Allows to know if the concerned data is static.
* Static data is data whose pointer may be kept for long term use.
* Note that in case of doubt, the data must be considered ad NON-static.
*/
virtual boolean isStaticData(pchar data);
/*
* if returns TRUE, the property is transferred to the caller.
* if returns FALSE, the resource is static, the property cannot be transferred.
* data will be set as a pointer on the actual data at the end of the method
*/
virtual boolean keepResource(pchar fileName, unsigned char** data, int* fileLen, char* resourcedir=NULL);
/* The ownership of the transfered value is not transferred to the caller
*/
virtual int setResource(pchar fileName, pchar fileData, int fileLen, char* resourcesDir=NULL) ;
} ;
#endif // ndef __EB_RSRCMGR__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -