ALBA
albaXMLString.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaXMLString
5 Authors: Rick Parrish (rfmobile@swbell.net) adapted by Marco Petrone (CINECA)
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16
17#ifndef __albaXMLString_h__
18#define __albaXMLString_h__
19
20#include "albaDefines.h"
21#include "albaConfigure.h"
22
23
24#include <xercesc/util/XMLString.hpp>
25
26#ifdef XERCES_CPP_NAMESPACE_USE
27// XERCES_CPP_NAMESPACE_USE
28// SIL 12-apr-2006
29// removed XERCES_CPP_NAMESPACE_USE and added XERCES_CPP_NAMESPACE_QUALIFIER where required
30#endif
31
38class ALBA_EXPORT albaXMLString
39{
40public:
41 albaXMLString() : m_WStr(0L), m_CStr(NULL) { };
42 albaXMLString(const char *str);
43 albaXMLString(XMLCh *wstr);
44 albaXMLString(const XMLCh *wstr);
46 albaXMLString(wxString str);
47
49 bool Append(const XMLCh *tail);
50 bool Erase(const XMLCh *head, const XMLCh *tail);
51 const XMLCh* Begin() const;
52 const XMLCh* End() const;
53 int Size() const;
54 const char *GetCStr();
55 XMLCh & operator [] (const int i);
56 const XMLCh operator [] (const int i) const;
57 operator const XMLCh * () const { return m_WStr; };
58 operator const char * () {return GetCStr();}
59protected:
60 XMLCh *m_WStr;
61 char *m_CStr;
62};
63
64#endif
string type for converting const char * to and from XMLString types This is an internal string type t...
Definition: albaXMLString.h:39
albaXMLString(const XMLCh *wstr)
XMLCh * m_WStr
Definition: albaXMLString.h:60
const char * GetCStr()
albaXMLString(const albaXMLString &copy)
albaXMLString(XMLCh *wstr)
albaXMLString(wxString str)
const XMLCh * End() const
bool Erase(const XMLCh *head, const XMLCh *tail)
bool Append(const XMLCh *tail)
const XMLCh * Begin() const
int Size() const
albaXMLString(const char *str)