Separatista
separatistadocument.h
1 /***************************************************************************
2 * Copyright (C) 2017 by Okkel Klaver *
3 * info@vanhetland.nl *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
20 
21 #include <vector>
22 #include <string>
23 
24 #include "separatista/separatista.h"
25 #include "separatista/xerces_types.h"
26 #include "separatista/element.h"
27 #include "separatista/elementdescriptor.h"
28 #include "separatista/branchelement.h"
29 
30 #ifndef SEPARATISTA_SEPARATISTADOCUMENT_H
31 #define SEPARATISTA_SEPARATISTADOCUMENT_H
32 
33 namespace Separatista
34 {
35  class SEPARATISTA_EXTERN SeparatistaDocument : public BranchElement
36  {
37  public:
39  SeparatistaDocument(const wchar_t *pNamespace, bool bEnableAutoMagic = true);
40 
42  SeparatistaDocument(const wchar_t *pNamespace, xercesc::DOMElement *pRootDOMElement, bool bEnableAutoMagic = false);
43 
45  //~SeparatistaDocument();
46 
48  IOErrorCode toDOMDocument(xercesc::DOMDocument *pDocument, xercesc::DOMElement *pParent, const ErrorOptions errorOptions = ThrowExceptions) const;
49 
50  const wchar_t* getNamespaceURI() const;
51 
58  IOErrorCode saveAs(const wchar_t *pPath);
59 
60  private:
61  std::wstring m_NamespaceURI;
62  };
63 }
64 
65 #endif // !defined SEPARATISTA_SEPARATISTADOCUMENT_H
Definition: separatistadocument.h:35
ErrorOptions
Definition: element.h:62
Definition: mt940s.h:39
Definition: branchelement.h:37