HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HCE::sphinx::IndexStoreDataFile Class Reference

#include <SphinxAdminCommand.hpp>

Inheritance diagram for HCE::sphinx::IndexStoreDataFile:
Collaboration diagram for HCE::sphinx::IndexStoreDataFile:

Public Member Functions

 IndexStoreDataFile (SphinxFunctionalObject &fObj)
virtual ~IndexStoreDataFile (void)
bool serialize (std::string &json)
bool unserialize (const std::string &json)
bool execute (void)
void setIndexName (const std::string &indexName_)
std::string getIndexName (void) const
void setBranchName (const std::string &branchName_)
std::string getBranchName (void) const
void setDataContent (const std::string &dataContent_)
std::string getDataContent (void) const
- Public Member Functions inherited from HCE::sphinx::SphinxAdminCommand
 SphinxAdminCommand (SphinxFunctionalObject &fObj_)
virtual ~SphinxAdminCommand (void)
void setResultData (const std::string &resultData_)
std::string getResultData (void) const
- Public Member Functions inherited from HCE::IJsonSerializable
 IJsonSerializable (void)
virtual ~IJsonSerializable (void)
void setErrorMsg (const std::string &errorMsg_)
std::string getErrorMsg (void) const
void setErrorCode (unsigned int errorCode_)
unsigned int getErrorCode (void) const
bool isError (void) const

Protected Types

typedef SphinxAdminCommand inherited
- Protected Types inherited from HCE::sphinx::SphinxAdminCommand
typedef IJsonSerializable inherited

Protected Attributes

std::string indexName
std::string branchName
std::string dataContent
- Protected Attributes inherited from HCE::sphinx::SphinxAdminCommand
SphinxFunctionalObjectfObj
std::string resultData
CustomMessagemessage
- Protected Attributes inherited from HCE::IJsonSerializable
std::string errorMsg
unsigned int errorCode
bool _isError

Additional Inherited Members

- Protected Member Functions inherited from HCE::sphinx::SphinxAdminCommand
bool makeDir (const std::string &path)
bool cleanDir (const std::string &path)
bool isExistDir (const std::string &path)
bool isExistFile (const std::string &file)
bool isAllowedString (const std::string &str)
bool copyFile (const std::string &srcFile, const std::string &dstFile)
bool moveFile (const std::string &srcFile, const std::string &dstFile)
bool removeFile (const std::string &file)
bool moveIndexFiles (const std::string &indexFileName, const std::string &srcPath, const std::string &dstPath)
bool copyIndexFiles (const std::string &indexFileName, const std::string &srcPath, const std::string &dstPath)
bool removeIndexFile (const std::string &indexFileName, const std::string &path)
bool getFileList (const std::string &path, std::vector< std::string > &vFiles, const std::string &ext)
bool getIndexList (const std::string &path, std::vector< std::string > &vIndexes)
bool getFreeAllowedPort (unsigned int &res)
bool makeTrunkConfig (const std::string &trunkName, const std::string &indexName, const std::string &indexFileName, SphinxConfigOptions &configOptions)
bool isExistError (const std::string &shellExecMsg)
std::string getPropertyFileName (const std::string &indexPath, const std::string &branchName)
std::string getConfigFileName (const std::string &indexPath, const std::string &branchName)
void writePropertyOptions (SphinxConfigCreator &configCreator, const SphinxConfigOptions &configOptions)

Detailed Description

Definition at line 145 of file SphinxAdminCommand.hpp.

Member Typedef Documentation

Constructor & Destructor Documentation

HCE::sphinx::IndexStoreDataFile::IndexStoreDataFile ( SphinxFunctionalObject fObj)
explicit

Definition at line 862 of file SphinxAdminCommand.cpp.

virtual HCE::sphinx::IndexStoreDataFile::~IndexStoreDataFile ( void  )
inlinevirtual

Definition at line 149 of file SphinxAdminCommand.hpp.

Member Function Documentation

bool HCE::sphinx::IndexStoreDataFile::execute ( void  )
virtual

Implements HCE::sphinx::SphinxAdminCommand.

Reimplemented in HCE::sphinx::IndexAppendDataFile.

Definition at line 928 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

std::string HCE::sphinx::IndexStoreDataFile::getBranchName ( void  ) const
inline

Definition at line 159 of file SphinxAdminCommand.hpp.

std::string HCE::sphinx::IndexStoreDataFile::getDataContent ( void  ) const
inline

Definition at line 162 of file SphinxAdminCommand.hpp.

std::string HCE::sphinx::IndexStoreDataFile::getIndexName ( void  ) const
inline

Definition at line 156 of file SphinxAdminCommand.hpp.

bool HCE::sphinx::IndexStoreDataFile::serialize ( std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 867 of file SphinxAdminCommand.cpp.

void HCE::sphinx::IndexStoreDataFile::setBranchName ( const std::string &  branchName_)
inline

Definition at line 158 of file SphinxAdminCommand.hpp.

Here is the caller graph for this function:

void HCE::sphinx::IndexStoreDataFile::setDataContent ( const std::string &  dataContent_)
inline

Definition at line 161 of file SphinxAdminCommand.hpp.

Here is the caller graph for this function:

void HCE::sphinx::IndexStoreDataFile::setIndexName ( const std::string &  indexName_)
inline

Definition at line 155 of file SphinxAdminCommand.hpp.

Here is the caller graph for this function:

bool HCE::sphinx::IndexStoreDataFile::unserialize ( const std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 893 of file SphinxAdminCommand.cpp.

Member Data Documentation

std::string HCE::sphinx::IndexStoreDataFile::branchName
protected

Definition at line 166 of file SphinxAdminCommand.hpp.

std::string HCE::sphinx::IndexStoreDataFile::dataContent
protected

Definition at line 167 of file SphinxAdminCommand.hpp.

std::string HCE::sphinx::IndexStoreDataFile::indexName
protected

Definition at line 165 of file SphinxAdminCommand.hpp.


The documentation for this class was generated from the following files: