ASN1C C/C++ Common Runtime  ASN1C v7.3.x
OSRTUTF8String.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2019 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 _OSRTUTF8STRING_H_
29 #define _OSRTUTF8STRING_H_
30 
31 #include "rtxsrc/OSRTBaseType.h"
32 #include "rtxsrc/rtxPrint.h"
33 #include "rtxsrc/rtxUTF8.h"
34 
39 class EXTERNRT OSRTUTF8String : public OSRTBaseType {
40  const OSUTF8CHAR* mValue;
41 
42  public:
47 
54  OSRTUTF8String (const char* strval);
55 
62  OSRTUTF8String (const OSUTF8CHAR* strval);
63 
69  OSRTUTF8String (const OSRTUTF8String& str);
70 
75  virtual ~OSRTUTF8String();
76 
81  OSRTBaseType* clone () const { return new OSRTUTF8String (*this); }
82 
90  void copyValue (const char* str);
91 
95  inline const char* c_str () const {
96  return mValue;
97  }
98 
102  inline const char* getValue () const {
103  return mValue;
104  }
105 
111  inline void print (const char* name) { rtxPrintCharStr (name, mValue); }
112 
120  void setValue (const char* str);
121 
125  OSRTUTF8String& operator= (const OSRTUTF8String& original);
126 } ;
127 
128 #endif
void rtxPrintCharStr(const char *name, const char *cstring)
const char * getValue() const
Definition: OSRTUTF8String.h:102
void print(const char *name)
Definition: OSRTUTF8String.h:111
OSRTBaseType * clone() const
Definition: OSRTUTF8String.h:81
const char * c_str() const
Definition: OSRTUTF8String.h:95
Definition: OSRTBaseType.h:37
Definition: OSRTUTF8String.h:39