15 using namespace kome::operation;
20 #define new new( _NORMAL_BLOCK, __FILE__, __LINE__ )
21 #define malloc( s ) _malloc_dbg( s, _NORMAL_BLOCK, __FILE__, __LINE__ )
kome::objects::Sample * getTargetSample()
gets target sample objects
void setOperationName(const char *operationName)
sets operation name
void addOperation(Operation *operation)
add managed operation
const char * getShortName()
gets short name
const char * getDescription()
gets description
virtual void onSaveCondition(boost::function< int(void *, int) > writeFun)=0
save the current state with respect to search engine operations
void setShortName(const char *shortName)
sets short name
kome::objects::Sample * m_targetSample
virtual std::string onGetDescription()=0
get discription
void moveToFinished(Operation *operation)
moves the operation to the finished queue.
sample information management class
implements of GridEmailTextCtrl class
implements of GridEmailTextCtrl class
virtual std::string onGetParametersString()=0
get parameters string
static OperationManager & getInstance()
get operation manager object (This is the only object.)
std::string getPrevFilePath()
gets previouse data file path
const char * getPreviousDataFilePath(Operation *operation)
gets the file path to save the previous status
virtual bool onExecute()=0
execute operation
void setOperationType(int type)
sets operation type
int getOperationType()
gets operation type
void setParametersString(const char *parameter)
sets parameters string
void setPrevFilePath(const char *strPath)
sets previouse data file path
virtual void onSetParametersString(const char *strParam)=0
set parameters string
const char * getParametersString()
gets operaton parameters string
void saveCondition(boost::function< int(void *, int) > writeFun)
save the current state with engine operations
std::string m_paramString
std::string getUpdateFilePath()
gets udate data file path
void removeOperation(Operation *operation)
remove managed operation
FILE * fileopen(const char *path, const char *mode)
opens file
const char * getOperationName()
gets operation name
virtual ~Operation()
destructor
void clearCanceledOperation()
clears canceled operations
virtual int write(void *addr, int size)=0
writes data (abstract method)
bool execute()
execute operation
void loadCondition(boost::function< int(void *, int) > readFun)
load the saved state with operations
void setUpdateFilePath(const char *strPath)
sets udate data file path
const char * getUpdateDataFilePath(Operation *operation)
the file path to save the update status
void setDescription(const char *description)
sets description
operation management class
void setTargetSample(kome::objects::Sample *sample)
sets target sample objects
virtual void onLoadCondition(boost::function< int(void *, int) > readFun)=0
load the saved state with respect to to search engine operations