1 /******************************************************************************
2  *
3  * Purpose:  Declaration of the CPCIDSK_LUT class.
4  *
5  ******************************************************************************
6  * Copyright (c) 2015
7  * PCI Geomatics, 90 Allstate Parkway, Markham, Ontario, Canada.
8  *
9  * Permission is hereby granted, free of charge, to any person obtaining a
10  * copy of this software and associated documentation files (the "Software"),
11  * to deal in the Software without restriction, including without limitation
12  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13  * and/or sell copies of the Software, and to permit persons to whom the
14  * Software is furnished to do so, subject to the following conditions:
15  *
16  * The above copyright notice and this permission notice shall be included
17  * in all copies or substantial portions of the Software.
18  *
19  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25  * DEALINGS IN THE SOFTWARE.
26  ****************************************************************************/
27 #ifndef INCLUDE_SEGMENT_PCIDSK_LUT_H
28 #define INCLUDE_SEGMENT_PCIDSK_LUT_H
29 
30 #include "pcidsk_config.h"
31 #include "pcidsk_types.h"
32 #include "pcidsk_lut.h"
33 #include "pcidsk_buffer.h"
34 #include "segment/cpcidsksegment.h"
35 
36 #include <string>
37 
38 namespace PCIDSK
39 {
40     class PCIDSKFile;
41 
42     /************************************************************************/
43     /*                            CPCIDSK_LUT                               */
44     /************************************************************************/
45 
46     class CPCIDSK_LUT : virtual public CPCIDSKSegment,
47                         public PCIDSK_LUT
48     {
49     public:
50         CPCIDSK_LUT( PCIDSKFile *file, int segment,const char *segment_pointer);
51 
52         virtual     ~CPCIDSK_LUT();
53 
54         virtual void ReadLUT(std::vector<unsigned char>& lut) override;
55         virtual void WriteLUT(const std::vector<unsigned char>& lut) override;
56     };
57 } // end namespace PCIDSK
58 
59 #endif // INCLUDE_SEGMENT_PCIDSKGEOREF_H
60