forked from gigablast/open-source-search-engine
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathFlags.h
More file actions
38 lines (26 loc) · 686 Bytes
/
Flags.h
File metadata and controls
38 lines (26 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef __FLAGS_H_
#define __FLAGS_H_
class Flags {
public:
static const int32_t NoMin;
static const int32_t NoMax;
Flags();
~Flags();
void reset ();
bool resize ( int32_t size );
char getFlag ( int32_t n ) { return m_flags[n]; };
void setFlag ( int32_t n, char set );
int32_t getNumFlags () { return m_numFlags; };
int32_t getNumSet () { return m_numSet; };
int32_t getHighestSet () { return m_highestSet; };
int32_t getLowestSet () { return m_lowestSet; };
void dumpFlags();
private:
int32_t m_numFlags;
int32_t m_numSet;
int32_t m_highestSet;
int32_t m_lowestSet;
char *m_flags;
};
void testFlags();
#endif // __FLAGS_H_