XBinder XML Runtime  XBinder Version 3.0.x
rtXmlCppNamespace.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2017 Objective Systems, Inc.
3  *
4  * This software is furnished under a license and may be used and copied
5  * only in accordance with the terms of such license and with the
6  * inclusion of the above copyright notice. This software or any other
7  * copies thereof may not be provided or otherwise made available to any
8  * other person. No title to and ownership of the software is hereby
9  * transferred.
10  *
11  * The information in this software is subject to change without notice
12  * and should not be construed as a commitment by Objective Systems, Inc.
13  *
14  * PROPRIETARY NOTICE
15  *
16  * This software is an unpublished work subject to a confidentiality agreement
17  * and is protected by copyright and trade secret law. Unauthorized copying,
18  * redistribution or other use of this work is prohibited.
19  *
20  * The above notice of copyright on this source code product does not indicate
21  * any actual or intended publication of such source code.
22  *
23  *****************************************************************************/
28 #ifndef _RTXMLCPPNAMESPACE_H_
29 #define _RTXMLCPPNAMESPACE_H_
30 
31 #include "rtxmlsrc/osrtxml.h"
32 #include "rtxsrc/OSRTBaseType.h"
33 #include "rtxsrc/OSRTString.h"
34 
38 class OSXMLNamespaceClass : public OSXMLNamespace {
39  public:
44  OSXMLNamespaceClass() { prefix = 0; uri = 0; }
45 
50 
58  OSXMLNamespaceClass (const OSUTF8CHAR* nsPrefix, const OSUTF8CHAR* nsURI);
59 
69  OSXMLNamespaceClass (const OSUTF8CHAR* nsPrefix, size_t nsPrefixBytes,
70  const OSUTF8CHAR* nsURI, size_t nsURIBytes);
71 
76 
80  inline const OSUTF8CHAR* getPrefix() const { return prefix; }
81 
85  inline const OSUTF8CHAR* getURI() const { return uri; }
86 
90  void setPrefix (const OSUTF8CHAR* nsPrefix);
91 
95  void setURI (const OSUTF8CHAR* nsURI);
96 } ;
97 
98 #endif
This class is used to hold an XML namespace prefix to URI mapping.
OSXMLNamespaceClass()
The default constructor sets the namespace prefix and URI values to empty values. ...
XML low-level C encode/decode functions.
void setURI(const OSUTF8CHAR *nsURI)
This method is used to set the namespace URI value.
~OSXMLNamespaceClass()
The destructor deletes the prefix and uri string variables.
const OSUTF8CHAR * getURI() const
This method is used to get the namespace URI value.
void setPrefix(const OSUTF8CHAR *nsPrefix)
This method is used to set the namespace prefix value.
const OSUTF8CHAR * getPrefix() const
This method is used to get the namespace prefix value.