Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DetectorSoftware
libagipdrecv
Commits
45142c48
Commit
45142c48
authored
Jun 21, 2018
by
Yuelong Yu
Browse files
added comments and removed unused part in cmake file
parent
4cfdef4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
45142c48
...
...
@@ -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"
)
...
...
src/FileSavingTask.h
View file @
45142c48
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment