Operation information class.
More...
#include <Operation.h>
|
| enum | OperationType {
TYPE_STANDARD = 0,
TYPE_GUI = 1,
TYPE_INPUT = 2,
TYPE_OUTPUT = 4,
TYPE_AUTO = 8
} |
| | operation type
|
| |
Operation information class.
Definition at line 22 of file Operation.h.
| bool kome::operation::Operation::execute |
( |
| ) |
|
execute operation
- Returns
- If true, it succeeded to perform search.
Definition at line 126 of file Operation.cpp.
void moveToFinished(Operation *operation)
moves the operation to the finished queue.
static OperationManager & getInstance()
get operation manager object (This is the only object.)
const char * getPreviousDataFilePath(Operation *operation)
gets the file path to save the previous status
virtual bool onExecute()=0
execute operation
int getOperationType()
gets operation type
void setPrevFilePath(const char *strPath)
sets previouse data file path
void saveCondition(boost::function< int(void *, int) > writeFun)
save the current state with engine operations
FILE * fileopen(const char *path, const char *mode)
opens file
virtual int write(void *addr, int size)=0
writes data (abstract method)
void setUpdateFilePath(const char *strPath)
sets udate data file path
const char * getUpdateDataFilePath(Operation *operation)
the file path to save the update status
operation management class
| const char * kome::operation::Operation::getDescription |
( |
| ) |
|
gets description
- Returns
- operaton description
Definition at line 83 of file Operation.cpp.
virtual std::string onGetDescription()=0
get discription
| const char * kome::operation::Operation::getOperationName |
( |
| ) |
|
gets operation name
- Returns
- operation name
Definition at line 53 of file Operation.cpp.
| int kome::operation::Operation::getOperationType |
( |
| ) |
|
gets operation type
- Returns
- operaton type
Definition at line 73 of file Operation.cpp.
| const char * kome::operation::Operation::getParametersString |
( |
| ) |
|
gets operaton parameters string
- Returns
- operaton parameters string
Definition at line 106 of file Operation.cpp.
virtual std::string onGetParametersString()=0
get parameters string
std::string m_paramString
| std::string kome::operation::Operation::getPrevFilePath |
( |
| ) |
|
gets previouse data file path
- Returns
- previouse data file path
Definition at line 175 of file Operation.cpp.
| const char * kome::operation::Operation::getShortName |
( |
| ) |
|
gets short name
- Returns
- short name
Definition at line 63 of file Operation.cpp.
gets target sample objects
- Returns
- target sample objects
Definition at line 96 of file Operation.cpp.
kome::objects::Sample * m_targetSample
| std::string kome::operation::Operation::getUpdateFilePath |
( |
| ) |
|
gets udate data file path
- Returns
- udate data file path
Definition at line 185 of file Operation.cpp.
| void kome::operation::Operation::loadCondition |
( |
boost::function< int(void *, int) > |
readFun | ) |
|
load the saved state with operations
- Parameters
-
| [in] | readFun | function to read saved state |
Definition at line 116 of file Operation.cpp.
virtual void onLoadCondition(boost::function< int(void *, int) > readFun)=0
load the saved state with respect to to search engine operations
| bool kome::operation::Operation::onExecute |
( |
| ) |
|
|
protectedpure virtual |
execute operation
- Returns
- If true, it succeeded to perform search.
| std::string kome::operation::Operation::onGetDescription |
( |
| ) |
|
|
protectedpure virtual |
get discription
- Returns
- discription
| std::string kome::operation::Operation::onGetParametersString |
( |
| ) |
|
|
protectedpure virtual |
get parameters string
- Returns
- parameters string
| void kome::operation::Operation::onLoadCondition |
( |
boost::function< int(void *, int) > |
readFun | ) |
|
|
protectedpure virtual |
load the saved state with respect to to search engine operations
- Parameters
-
| [in] | readFun | function to read saved state |
| void kome::operation::Operation::onSaveCondition |
( |
boost::function< int(void *, int) > |
writeFun | ) |
|
|
protectedpure virtual |
save the current state with respect to search engine operations
- Parameters
-
| [in] | writeFun | function to save state |
| void kome::operation::Operation::onSetParametersString |
( |
const char * |
strParam | ) |
|
|
protectedpure virtual |
set parameters string
- Parameters
-
| [in] | strParam | parameters string |
| void kome::operation::Operation::removeOperation |
( |
Operation * |
opt | ) |
|
remove operation
- Parameters
-
| void kome::operation::Operation::saveCondition |
( |
boost::function< int(void *, int) > |
writeFun | ) |
|
save the current state with engine operations
- Parameters
-
| [in] | writeFun | function to save state |
Definition at line 121 of file Operation.cpp.
virtual void onSaveCondition(boost::function< int(void *, int) > writeFun)=0
save the current state with respect to search engine operations
| void kome::operation::Operation::setDescription |
( |
const char * |
description | ) |
|
sets description
- Parameters
-
| [in] | description | operaton description |
Definition at line 78 of file Operation.cpp.
| void kome::operation::Operation::setOperationName |
( |
const char * |
operationName | ) |
|
sets operation name
- Parameters
-
| [in] | operationName | operation name |
Definition at line 48 of file Operation.cpp.
| void kome::operation::Operation::setOperationType |
( |
int |
type | ) |
|
sets operation type
- Parameters
-
Definition at line 68 of file Operation.cpp.
| void kome::operation::Operation::setParametersString |
( |
const char * |
parameter | ) |
|
sets parameters string
- Parameters
-
| [in] | parameter | parameters string |
Definition at line 101 of file Operation.cpp.
virtual void onSetParametersString(const char *strParam)=0
set parameters string
| void kome::operation::Operation::setPrevFilePath |
( |
const char * |
strPath | ) |
|
sets previouse data file path
- Parameters
-
| [in] | strPath | previouse data file path |
Definition at line 180 of file Operation.cpp.
| void kome::operation::Operation::setShortName |
( |
const char * |
shortName | ) |
|
sets target sample objects
- Parameters
-
| [in] | sample | target sample objects |
Definition at line 91 of file Operation.cpp.
kome::objects::Sample * m_targetSample
| void kome::operation::Operation::setUpdateFilePath |
( |
const char * |
strPath | ) |
|
sets udate data file path
- Parameters
-
| [in] | strPath | update data file path |
Definition at line 190 of file Operation.cpp.
| std::string kome::operation::Operation::m_descript |
|
protected |
| std::string kome::operation::Operation::m_operatName |
|
protected |
| std::string kome::operation::Operation::m_paramString |
|
protected |
| std::string kome::operation::Operation::m_prevPath |
|
protected |
previouse data file path
Definition at line 56 of file Operation.h.
| std::string kome::operation::Operation::m_shortName |
|
protected |
| int kome::operation::Operation::m_type |
|
protected |
| std::string kome::operation::Operation::m_updatePath |
|
protected |
The documentation for this class was generated from the following files: