JEMRIS 2.9.2
open-source MRI simulations
Loading...
Searching...
No Matches
StrX.h
Go to the documentation of this file.
1
5/*
6 * JEMRIS Copyright (C)
7 * 2006-2025 Tony Stoecker
8 * 2007-2018 Kaveh Vahedipour
9 * 2009-2019 Daniel Pflugfelder
10 *
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 */
26
27#ifndef STRX_H_
28#define STRX_H_
29
30#include <string>
31#include <xercesc/util/XMLString.hpp>
32
33XERCES_CPP_NAMESPACE_USE
34
36
37class StrX {
38
39 public :
40
44 StrX (const XMLCh* const);
45
49 StrX (const char* const);
50
54 StrX (const std::string&);
55
59 StrX (const StrX&);
60
64 ~StrX ();
65
69 StrX& operator= (const StrX&);
70
76 const char* localForm () const;
77
83 const std::string std_str () const;
84
90 const XMLCh* XMLchar () ;
91
92private :
93
94 XMLCh* _xmlch;
95 char* _char;
96 std::string _string;
97
98};
99
100#endif /*STRX_H_*/
Simple class for transcoding sax errors to the machines locale.
Definition StrX.h:37
const XMLCh * XMLchar()
Transcode to XMLCh*.
Definition StrX.cpp:82
StrX(const XMLCh *const)
Contructor.
Definition StrX.cpp:32
const char * localForm() const
Transcode to local form char array.
Definition StrX.cpp:72
StrX & operator=(const StrX &)
Construct with string.
Definition StrX.cpp:56
~StrX()
Destructor.
Definition StrX.cpp:64
const std::string std_str() const
Transcode to string.
Definition StrX.cpp:77

-- last change 03.01.2025 | Tony Stoecker | Imprint | Data Protection --