Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DaqIOLib
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
NADS-Public
DaqIOLib
Commits
76ef08ce
Commit
76ef08ce
authored
Mar 12, 2020
by
IOWA\dheitbri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgraded to 64bit
parent
39e4aadf
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
11 deletions
+13
-11
DaqBuffer.h
DaqBuffer.h
+5
-5
DaqFileIO.cxx
DaqFileIO.cxx
+0
-0
DaqIo.h
DaqIo.h
+6
-5
DaqIoLibDefines.h
DaqIoLibDefines.h
+2
-1
No files found.
DaqBuffer.h
View file @
76ef08ce
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
//////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
///
///
/// $Id: DaqBuffer.h,v 1.
5 2013/04/30 00:59:10 IOWA\vhorosewsk
i Exp $
/// $Id: DaqBuffer.h,v 1.
6 2020/03/12 00:43:37 IOWA\dheitbr
i Exp $
///
///
/// Date: December 2004
/// Date: December 2004
///
///
...
@@ -32,8 +32,8 @@ public:
...
@@ -32,8 +32,8 @@ public:
std
::
vector
<
TDaqByte
>::
const_pointer
GetDataPtr
()
const
;
///< Return faw pointer to data
std
::
vector
<
TDaqByte
>::
const_pointer
GetDataPtr
()
const
;
///< Return faw pointer to data
int
GetCount
()
const
;
///< Return number of typed elements in buffer
size_t
GetCount
()
const
;
///< Return number of typed elements in buffer
int
GetSize
()
const
;
///< Return buffer size in bytes
size_t
GetSize
()
const
;
///< Return buffer size in bytes
char
*
GetChar
(
int
ind
=
0
);
///< Return char type pointer to data
char
*
GetChar
(
int
ind
=
0
);
///< Return char type pointer to data
int
*
GetInt
(
int
ind
=
0
);
///< Return int type pointer to data
int
*
GetInt
(
int
ind
=
0
);
///< Return int type pointer to data
float
*
GetFloat
(
int
ind
=
0
);
///< Return float type pointer to data
float
*
GetFloat
(
int
ind
=
0
);
///< Return float type pointer to data
...
@@ -55,7 +55,7 @@ protected:
...
@@ -55,7 +55,7 @@ protected:
///
///
/// This function ...
/// This function ...
//
//
inline
in
t
inline
size_
t
CDaqBuffer
::
GetSize
()
const
CDaqBuffer
::
GetSize
()
const
{
{
return
(
int
)
m_Data
.
size
();
return
(
int
)
m_Data
.
size
();
...
@@ -63,7 +63,7 @@ CDaqBuffer::GetSize() const
...
@@ -63,7 +63,7 @@ CDaqBuffer::GetSize() const
///
///
/// This function ...
/// This function ...
inline
in
t
inline
size_
t
CDaqBuffer
::
GetCount
()
const
CDaqBuffer
::
GetCount
()
const
{
{
return
m_Count
;
return
m_Count
;
...
...
DaqFileIO.cxx
View file @
76ef08ce
This diff is collapsed.
Click to expand it.
DaqIo.h
View file @
76ef08ce
...
@@ -83,11 +83,11 @@ private:
...
@@ -83,11 +83,11 @@ private:
bool
ReadHeader
(
FILE
*
);
bool
ReadHeader
(
FILE
*
);
bool
ReadChannelInfo
(
FILE
*
);
bool
ReadChannelInfo
(
FILE
*
);
bool
DetectFrameHeader
(
int
recFrame
);
bool
DetectFrameHeader
(
int
recFrame
);
bool
ResyncFrame
(
int
curFrame
,
int
&
skipCount
);
bool
ResyncFrame
(
int
curFrame
,
long
long
&
skipCount
);
TResyncOutcome
ResyncChannel
(
int
recFrame
,
int
&
skipCount
);
TResyncOutcome
ResyncChannel
(
int
recFrame
,
long
long
&
skipCount
);
bool
WriteTocFile
(
const
std
::
string
&
fname
);
bool
WriteTocFile
(
const
std
::
string
&
fname
);
bool
ReadTocFile
(
const
std
::
string
&
fname
);
bool
ReadTocFile
(
const
std
::
string
&
fname
);
TReadErrorCode
ReadFrameHeader
(
int
,
int
&
,
int
&
,
int
&
);
TReadErrorCode
ReadFrameHeader
(
int
,
int
&
,
int
&
,
long
long
&
);
TReadErrorCode
ReadDataForOneFrame
(
int
,
TIntVec
,
TDataVec
&
,
void
*
,
std
::
vector
<
bool
>&
);
TReadErrorCode
ReadDataForOneFrame
(
int
,
TIntVec
,
TDataVec
&
,
void
*
,
std
::
vector
<
bool
>&
);
TReadErrorCode
ReadChannelDataForOneFrame
(
int
,
int
,
CDaqBuffer
&
,
void
*
,
bool
&
);
TReadErrorCode
ReadChannelDataForOneFrame
(
int
,
int
,
CDaqBuffer
&
,
void
*
,
bool
&
);
...
@@ -109,8 +109,9 @@ private:
...
@@ -109,8 +109,9 @@ private:
bool
m_TocExists
;
///< Indicates a TOC exists in a file
bool
m_TocExists
;
///< Indicates a TOC exists in a file
bool
m_HaveToc
;
///< Indicates if we have TOC in memory
bool
m_HaveToc
;
///< Indicates if we have TOC in memory
TChanInfoVec
m_Channels
;
///< Channel information
TChanInfoVec
m_Channels
;
///< Channel information
long
m_DataOffset
;
///< where data starts in the file
long
long
m_DataOffset
;
///< where data starts in the file
std
::
map
<
int
,
int
>
m_Toc
;
///< given a sim frame, gives the offset in the file
typedef
std
::
map
<
int
,
long
long
>
TTocMap
;
TTocMap
m_Toc
;
///< given a sim frame, gives the offset in the file
std
::
vector
<
int
>
m_DroppedFrames
;
std
::
vector
<
int
>
m_DroppedFrames
;
int
m_FirstFrame
;
int
m_FirstFrame
;
int
m_LastFrame
;
int
m_LastFrame
;
...
...
DaqIoLibDefines.h
View file @
76ef08ce
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//
//
// $Id: DaqIoLibDefines.h,v 1.
4 2019/07/09 14:33:59
IOWA\dheitbri Exp $
// $Id: DaqIoLibDefines.h,v 1.
5 2020/03/12 00:43:37
IOWA\dheitbri Exp $
// Date: March, 2005
// Date: March, 2005
// Author: Yiannis Papelis
// Author: Yiannis Papelis
//
//
...
@@ -18,6 +18,7 @@ class CDaqChannelInfo;
...
@@ -18,6 +18,7 @@ class CDaqChannelInfo;
#define DAQ_MAGIC_NUM_VER_2_2 0x2C3D4E7F
#define DAQ_MAGIC_NUM_VER_2_2 0x2C3D4E7F
#define DAQ_END_MARK 0x1A2B2C3D
#define DAQ_END_MARK 0x1A2B2C3D
#define DAQ_TOC_MAGIC_NUM 0x2C3ABCDE
#define DAQ_TOC_MAGIC_NUM 0x2C3ABCDE
#define DAQ_TOC_MAGIC_NUM64 0x123ABCDE
typedef
unsigned
char
TDaqByte
;
typedef
unsigned
char
TDaqByte
;
typedef
std
::
vector
<
int
>
TIntVec
;
typedef
std
::
vector
<
int
>
TIntVec
;
...
...
Write
Preview
Markdown
is supported
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