Debian Codegraph @

Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmrle/io.h

raw symbols SCIP
1 /*=========================================================================
2
3 Program: librle, a minimal RLE library for DICOM
4
5 Copyright (c) 2014 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13 =========================================================================*/
14 #pragma once
15
16 namespace rlecxx . . $ rle/
17 {
18 // forward decl
19 class image_infocxx . . $ rle/image_info#;
20
21 // base class for a source object
22 // all functions are pure virtual and will need to be implemented in subclasses
23 // basically designed for a FILE* implementation, others should be trivials
24 class sourcecxx . . $ rle/source#
25 {
26 public:
27 typedef unsigned int streampos_tcxx . . $ rle/source#streampos_t#; // 32bits unsigned
28
29 int read_into_segmentscxx . . $ rle/source#read_into_segments(45cd79fff21e50ce).( char * out, int len, image_infocxx . . $ rle/image_info# const & ii);
30 virtual int readcxx . . $ rle/source#read(6abd07ddb1a912f0).( char * out, int len ) = 0;
31 virtual streampos_tcxx . . $ rle/source#streampos_t# tellcxx . . $ rle/source#tell(db52760e79bf9054).() = 0;
32 virtual bool seekcxx . . $ rle/source#seek(dfa6e707f7696010).(streampos_tcxx . . $ rle/source#streampos_t# pos) = 0;
33 virtual bool eofcxx . . $ rle/source#eof(c9857a73d68e59ba).() = 0;
34 virtual sourcecxx . . $ rle/source# * clonecxx . . $ rle/source#clone(f7f091e197114bf9).() = 0;
35 virtual ~cxx . . $ rle/source#`~source`(ced63f7c635d850d).sourcecxx . . $ rle/source#() = default;
36 };
37
38 // base class for a dest object.
39 // basically designed for a FILE* implementation, others should be trivials
40 class destcxx . . $ rle/dest#
41 {
42 public:
43 typedef unsigned int streampos_tcxx . . $ rle/dest#streampos_t#; // 32bits unsigned
44
45 virtual int writecxx . . $ rle/dest#write(cb7559238bb26814).( const char * in, int len ) = 0;
46 virtual bool seekcxx . . $ rle/dest#seek(dfa6e707f7696010).( streampos_tcxx . . $ rle/dest#streampos_t# abs_pos ) = 0; // seek to absolute position
47 virtual ~cxx . . $ rle/dest#`~dest`(ced63f7c635d850d).destcxx . . $ rle/dest#() = default;
48 };
49
50 } // end namespace rle