Commit 45142c48 authored by Yuelong Yu's avatar Yuelong Yu
Browse files

added comments and removed unused part in cmake file

parent 4cfdef4b
......@@ -81,8 +81,6 @@ set(SHARED_LINKER_FLAGS
h5cpp
hdf5_serial)
#set(PKG_LIBS "-lboost_system -lboost_thread -lpthread -lz")
#src
#add_subdirectory("include")
add_subdirectory("src")
......
......@@ -28,22 +28,85 @@ namespace FSDataRecvNS
class FileSavingTask:public Task
{
public:
/**
* @brief constructor
* @param x size x
* @param y size y
* @param mempool img buffer
*/
FileSavingTask(int32 x, int32 y, sptr_mem16bit const& mempool);
/**
* @brief destructor
*/
~FileSavingTask();
/**
* @brief set expected frames during acquisition
* @param requested_frames expected frames
*/
void SetRequestFrames(int32 requested_frames);
/**
* @brief set file structure
* @param xml_structure xml file structure
*/
void SetFileStructureWithXML(string xml_structure);
/**
* @brief set file name
* @param file_name file name
*/
void SetFileName(string file_name);
/**
* @brief set frame per file
* if this is smaller than the requested farmes.
* The file is splitted manually.
* @param frame_numbers_per_file frames per file
*
*/
void SetFramesPerFile(int32 frame_numbers_per_file);
void DoTaskAction();
/**
* @brief saving data
*/
void DoTaskAction() override;
/**
* @brief get already saved images
* @return saved images
*/
int32 GetSavedImages();
private:
/**
* @brief update acquisition parameters
*/
void UpdateParameters();
bool WriteData(vector<int16>& vData,int32 nFrameNo,int16 shErrCode);
/**
* @brief write data
* @param data image data
* @param frame_no frame No.
* @param err_code error code
* @return true : OK
* false : write data error
*/
bool WriteData(vector<int16>& data,int32 frame_no,int16 err_code);
/**
* @brief create file
* @return true : OK
* false : create file error
*/
bool CreateFile();
/**
* @brief close file
* @return true : OK
* false : close file error
*/
bool CloseFile();
sptr_mem16bit m_mempool16bit;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment