source: branches/NewStructure/src/DataArrays/SmartMask.hh @ 1455

Last change on this file since 1455 was 1414, checked in by MatthewWhiting, 10 years ago

Adding a SmartMask? class, and tidying up some of the code in DataArrayBase?.

File size: 612 bytes
Line 
1#ifndef DUCHAMP_SMART_MASK_H_
2#define DUCHAMP_SMART_MASK_H_
3
4#include <iostream>
5#include <duchamp/duchamp.hh>
6#include <duchamp/DataArrays/DataArrayBase.hh>
7#include <vector>
8
9namespace duchamp
10{
11
12    enum PIXELSTATUS {AVAILABLE, DETECTED, BLANK, MW, NEW};
13
14    class SmartMask : public DataArrayBase<PIXELSTATUS>
15    {
16    public:
17        SmartMask();
18        SmartMask(const SmartMask& other);
19        SmartMask& operator= (const SmartMask& other);
20        virtual ~SmartMask();
21
22        bool isMasked(size_t pix);
23        bool isMasked(size_t *pix);
24        bool isMasked(std::vector<size_t> pix);
25
26    protected:
27
28    };
29
30}
31
32#endif //DUCHAMP_SMART_MASK_H_
Note: See TracBrowser for help on using the repository browser.