DGtal
0.6.devel
Main Page
Related Pages
Modules
Namespaces
Data Structures
Examples
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
src
DGtal
io
writers
RawWriter.h
1
17
#pragma once
18
31
#if defined(RawWriter_RECURSES)
32
#error Recursive header files inclusion detected in RawWriter.h
33
#else // defined(RawWriter_RECURSES)
34
35
#define RawWriter_RECURSES
36
37
#if !defined RawWriter_h
38
39
#define RawWriter_h
40
42
// Inclusions
43
#include <iostream>
44
#include <string>
45
#include <boost/static_assert.hpp>
46
#include <boost/type_traits.hpp>
47
#include "DGtal/base/Common.h"
48
#include "DGtal/base/CUnaryFunctor.h"
49
#include "DGtal/base/BasicFunctors.h"
51
52
namespace
DGtal
53
{
54
56
// template class RawWriter
67
template
<
typename
TImage,
typename
TFunctor = DefaultFunctor>
68
struct
RawWriter
69
{
70
// ----------------------- Standard services ------------------------------
71
72
typedef
TImage
Image
;
73
typedef
typename
TImage::Value
Value
;
74
typedef
TFunctor
Functor
;
75
76
BOOST_CONCEPT_ASSERT
((
CUnaryFunctor<TFunctor, Value, unsigned char>
)) ;
77
86
static
bool
exportRaw8
(
const
std::string & filename,
const
Image
&aImage,
87
const
Functor
& aFunctor =
Functor
());
88
89
};
90
}
//namespace
91
93
// Includes inline functions.
94
#include "DGtal/io/writers/RawWriter.ih"
95
96
// //
98
99
#endif // !defined RawWriter_h
100
101
#undef RawWriter_RECURSES
102
#endif // else defined(RawWriter_RECURSES)
Generated on Wed Dec 19 2012 19:10:33 for DGtal by
1.8.1.1