-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a ReadPartialData() function that only reads requested samples …
…(min/max). #83
- Loading branch information
Showing
32 changed files
with
732 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright 2024 Ingemar Hedvall | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
/** \file | ||
* This file implement the channel group range support class. | ||
*/ | ||
|
||
#include "cgrange.h" | ||
|
||
namespace mdf { | ||
|
||
CgRange::CgRange(const IChannelGroup& channel_group) | ||
: channel_group_(channel_group) { | ||
|
||
} | ||
uint64_t CgRange::RecordId() const { | ||
return channel_group_.RecordId(); | ||
} | ||
|
||
} // namespace mdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright 2024 Ingemar Hedvall | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
/** \file | ||
* This file define the channel group range support class. | ||
*/ | ||
|
||
#include "mdf/ichannelgroup.h" | ||
|
||
namespace mdf { | ||
|
||
class CgRange final { | ||
public: | ||
CgRange() = delete; | ||
explicit CgRange(const IChannelGroup& channel_group); | ||
[[nodiscard]] uint64_t RecordId() const; | ||
|
||
void IsUsed(bool used) { is_used_ = used;} | ||
[[nodiscard]] bool IsUsed() const { return is_used_;} | ||
|
||
[[nodiscard]] const IChannelGroup& ChannelGroup() const { | ||
return channel_group_; | ||
} | ||
|
||
private: | ||
const IChannelGroup& channel_group_; | ||
bool is_used_ = false; | ||
}; | ||
|
||
} // namespace mdf | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.