CLAM-Development
1.4.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
Storage
XML
NullDomDocumentHandler.hxx
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2001-2004 MUSIC TECHNOLOGY GROUP (MTG)
3
* UNIVERSITAT POMPEU FABRA
4
*
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* This program 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
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
*
20
*/
21
#ifndef _NullDomDocumentHandler_hxx_
22
#define _NullDomDocumentHandler_hxx_
23
24
#include "
NullDomReadingContext.hxx
"
25
#include "
NullDomWritingContext.hxx
"
26
27
namespace
CLAM
28
{
29
34
class
NullDomDocumentHandler
35
{
36
public
:
37
typedef
NullDomWritingContext
WritingContext
;
38
typedef
NullDomReadingContext
ReadingContext
;
39
ReadingContext
*
GetReadingContext
()
40
{
41
return
_currentReadContext;
42
}
43
void
SetReadingContext
(
ReadingContext
* context)
44
{
45
_currentReadContext = context;
46
}
47
WritingContext
*
GetWritingContext
()
48
{
49
return
_currentWriteContext;
50
}
51
void
SetWritingContext
(
WritingContext
* context)
52
{
53
_currentWriteContext = context;
54
}
55
private
:
56
ReadingContext
* _currentReadContext;
57
WritingContext
* _currentWriteContext;
58
public
:
59
NullDomDocumentHandler
()
60
{
61
CLAM_ASSERT
(
false
,
"Using XML support with no xmlbackend. Reconfigure CLAM using the 'xmlbackend' option."
);
62
}
63
~NullDomDocumentHandler
()
64
{
65
}
66
void
selectPath
(
const
char
* path)
67
{
68
}
69
void
create
(
const
char
* rootName)
70
{
71
}
72
void
read
(std::istream & stream)
73
{
74
}
75
void
writeDocument
(std::ostream & os,
bool
useIndentation=
false
)
76
{
77
}
78
void
writeSelection
(std::ostream & os,
bool
useIndentation=
false
)
79
{
80
}
81
};
82
83
}
89
#endif//_NullDomDocumentHandler_hxx_
90
Generated by
1.8.1