ASN1C C/C++ Common Runtime  ASN1C v7.5.x
OSRTFastString.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2021 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  *****************************************************************************/
31 #ifndef _OSRTFASTSTRING_H_
32 #define _OSRTFASTSTRING_H_
33 
34 #include "rtxsrc/rtxCommon.h"
35 #include "rtxsrc/rtxPrint.h"
36 
43 class EXTERNRT OSRTFastString : public OSRTStringIF {
44  protected:
45  const OSUTF8CHAR* mValue;
46 
47  public:
53 
60  OSRTFastString (const char* strval);
61 
68  OSRTFastString (const OSUTF8CHAR* strval);
69 
76  OSRTFastString (const OSRTFastString& str);
77 
81  virtual ~OSRTFastString();
82 
86  virtual OSRTStringIF* clone () { return new OSRTFastString (*this); }
87 
92  virtual const char* getValue () const {
93  return (const char*) mValue;
94  }
95 
100  virtual const OSUTF8CHAR* getUTF8Value () const {
101  return mValue;
102  }
103 
109  virtual void print (const char* name) { rtxPrintCharStr (name, mValue); }
110 
116  virtual void setValue (const char* str);
117 
123  virtual void setValue (const OSUTF8CHAR* str);
124 
128  OSRTFastString& operator= (const OSRTFastString& original);
129 } ;
130 
131 #endif
virtual const char * getValue() const
Definition: OSRTFastString.h:92
void rtxPrintCharStr(const char *name, const char *cstring)
virtual void print(const char *name)
Definition: OSRTFastString.h:109
Definition: OSRTFastString.h:43
virtual OSRTStringIF * clone()
Definition: OSRTFastString.h:86
virtual const OSUTF8CHAR * getUTF8Value() const
Definition: OSRTFastString.h:100