Improve:FilesManager include cleaner.
This commit is contained in:
parent
7619c74561
commit
6bb8c76751
|
@ -14,9 +14,9 @@
|
|||
*/
|
||||
#ifndef FILES_DATABASE_H
|
||||
#define FILES_DATABASE_H
|
||||
#include "StatusCode.h"
|
||||
#include "FilesHandle.h"
|
||||
#include "IFilesManager.h"
|
||||
#include "StatusCode.h"
|
||||
class FilesDatabase : public FilesHandle
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -14,17 +14,14 @@
|
|||
*/
|
||||
#include "FilesHandle.h"
|
||||
#include "ILog.h"
|
||||
#include <algorithm>
|
||||
#include <cctype>
|
||||
#include <chrono>
|
||||
#include <cstring>
|
||||
#include <ctime>
|
||||
#include <fstream>
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <string>
|
||||
std::string FilesHandle::CreateFilePathName(const std::string &sourceFile)
|
||||
{
|
||||
const std::string ERROR_SUFFIX = "";
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
#include "FilesManagerImpl.h"
|
||||
#include "IStorageManager.h"
|
||||
#include "IFilesManager.h"
|
||||
// #include "IStorageManager.h"
|
||||
#include "FilesDatabase.h"
|
||||
#include "StatusCode.h"
|
||||
StatusCode FilesManagerImpl::Init(void)
|
||||
{
|
||||
FilesDatabase::Init();
|
||||
|
|
|
@ -13,8 +13,11 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
#include "FilesManagerMakePtr.h"
|
||||
#include "ILog.h"
|
||||
#include "FilesManagerImpl.h"
|
||||
#include "IFilesManager.h"
|
||||
#include "ILog.h"
|
||||
#include "StatusCode.h"
|
||||
#include <memory>
|
||||
bool CreateFilesManagerModule(void)
|
||||
{
|
||||
auto instance = std::make_shared<IFilesManager>();
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
*/
|
||||
#include "IFilesManager.h"
|
||||
#include "ILog.h"
|
||||
#include "StatusCode.h"
|
||||
#include <memory>
|
||||
#include <string>
|
||||
save_file_info::save_file_info(const std::string &fileName) : mFileName(fileName)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -13,9 +13,13 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
#include "FilesDatabase.h"
|
||||
#include "FilesHandle.h"
|
||||
#include "IFilesManager.h"
|
||||
#include "ILog.h"
|
||||
#include "IStorageManager.h"
|
||||
#include "SqliteHandle.h"
|
||||
#include "StatusCode.h"
|
||||
#include <string>
|
||||
void FilesDatabase::Init(void)
|
||||
{
|
||||
SqliteHandle::GetInstance()->Init();
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
#include "SqliteHandle.h"
|
||||
#include "ILog.h"
|
||||
#include "sqlite3.h"
|
||||
#include <memory>
|
||||
#include <stdio.h>
|
||||
std::shared_ptr<SqliteHandle> &SqliteHandle::GetInstance(std::shared_ptr<SqliteHandle> *impl)
|
||||
{
|
||||
static auto instance = std::make_shared<SqliteHandle>();
|
||||
|
@ -42,5 +44,4 @@ void SqliteHandle::Init(void)
|
|||
}
|
||||
void SqliteHandle::UnInit(void)
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user