Evita  0.16
evSegmentationMapCodec.h
Go to the documentation of this file.
1 /*
2  *
3  * EVITA: Efficient Visualization of Terascale Datasets
4  * Copyright (C) 2000-2016 Team Evita
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
19  * MA 02139, USA.
20  *
21  */
22 
23 
24 #ifndef __evSegmentationMapCodec_h
25 #define __evSegmentationMapCodec_h
26 
27 
28 #include "evProcessObject.h"
29 #include "evBitBuffer.h"
30 #include "evSegmentationMap.h"
31 
32 
34 {
35 public:
37  virtual ~evSegmentationMapCodec(void);
38 
39  virtual const evString GetClassName(void) const
40  {
41  return(evString("evSegmentationMapCodec"));
42  }
43 
44  virtual int EncodeHeader(evFile &outfile) const = 0;
45  virtual int Encode(evBitBuffer &output_buffer,
46  const evSegmentationMap &segmentation_map) const = 0;
47  virtual int DecodeHeader(evFile &infile) const = 0;
48  virtual int Decode(evBitBuffer &input_buffer,
49  evSegmentationMap &segmentation_map) const = 0;
50 
51  static evSegmentationMapCodec *Create(const evString &compression_method);
52 
53 
54 protected:
55 
56 private:
57 
58 };
59 
60 
61 #endif
virtual int Decode(evBitBuffer &input_buffer, evSegmentationMap &segmentation_map) const =0
Definition: evFile.h:44
virtual int Encode(evBitBuffer &output_buffer, const evSegmentationMap &segmentation_map) const =0
virtual ~evSegmentationMapCodec(void)
virtual const evString GetClassName(void) const
Definition: evSegmentationMapCodec.h:39
virtual int DecodeHeader(evFile &infile) const =0
Definition: evBitBuffer.h:34
static evSegmentationMapCodec * Create(const evString &compression_method)
virtual int EncodeHeader(evFile &outfile) const =0
Definition: evSegmentationMap.h:35
Definition: evSegmentationMapCodec.h:33
Definition: evProcessObject.h:31
Definition: evString.h:30