Commit 5a4ae929 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

introduced Level class

parent 97ea0202
......@@ -5,15 +5,34 @@
#include <string>
struct Level {
int fine;
int coarse;
int pLevel;
int mGfine;
int mGcoarse;
void Update(int level, int plevel) {
fine = level;
coarse = level - 1;
pLevel = plevel;
mGfine = fine - pLevel;
if (coarse - pLevel > 0)
mGcoarse = coarse - pLevel;
else
mGcoarse = 0;
}
};
struct SampleID {
int level;
Level level;
int number;
bool coarse;
std::string Str() const {
return "l:" + std::to_string(level) +
return "l:" + std::to_string(level.fine) +
"-m:" + std::to_string(number) +
"-c:" + std::to_string((int) coarse);
}
......
Markdown is supported
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