123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- //
- // JoinFile.h
- // JOINFILE
- //
- // Created by mac on 14-11-21.
- // Copyright (c) 2014年 mac. All rights reserved.
- //
- #ifndef __JOINFILE__JoinFile__
- #define __JOINFILE__JoinFile__
- #include <iostream>
- #include <string>
- #include <vector>
- #include <map>
- #endif /* defined(__JOINFILE__JoinFile__) */
- /**
- * @addtogroup platform
- * @{
- */
- //! @brief Helper class to handle file operations
- class JoinFile
- {
- public:
-
- static JoinFile* getInstance();
-
- virtual ~JoinFile();
- unsigned char* getFileData(const char* pszFilePath, const char* pszMode, unsigned long * pSize);
- void doJoinFile(const char* pszFromFilePath,const char* pszToFilePath,const char* type,const char* tmpName,const char* projectPath);
- void createFileFromConf(const char* projectPath);
- void setPackName(const char* packname);
- void rc4_crypt(char *key, unsigned char *Data, unsigned long Len);
- void test();
- void encryptSingleFile(std::string srcPath, std::string dstPath, std::string mode);
- protected:
- /**
- * The default constructor.
- */
- JoinFile();
- static JoinFile* s_sharedJoinFile;
- const char * _packname;
-
- };
|