File failed to load: https://isis.astrogeology.usgs.gov/8.3.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
IsisXMLChTrans.h
1
2#ifndef IsisXMLChTrans_h
3#define IsisXMLChTrans_h
9/* SPDX-License-Identifier: CC0-1.0 */
10#include <string>
11#include <iostream>
12#include <cstdlib>
13
14namespace XERCES = XERCES_CPP_NAMESPACE;
15
16// This class converts from the internal XMLCh character format to simple c strings
17
24 public :
25 // Constructors and Destructor
26 XMLChTrans(const XMLCh *const toTranscode) {
27 // Call the private transcoding method
28 fLocalForm = XERCES::XMLString::transcode(toTranscode);
29 }
30
31 ~XMLChTrans() {
32 delete [] fLocalForm;
33 }
34
35 // Getter methods
36 const char *localForm() const {
37 return fLocalForm;
38 }
39
40 private :
41 char *fLocalForm;
42};
43
44
45inline std::ostream &operator<<(std::ostream &target, const XMLChTrans &toDump) {
46 target << toDump.localForm();
47 return target;
48}
49
50#endif
This is free and unencumbered software released into the public domain.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 02/24/2025 16:15:01