Pleora Technologies Inc. eBUS SDK v7.0.1.7536 API



Loading...
Searching...
No Matches
PvString.h
1// *****************************************************************************
2//
3// Copyright (c) 2007, Pleora Technologies Inc., All rights reserved.
4//
5// *****************************************************************************
6
7#ifndef __PVSTRING_H__
8#define __PVSTRING_H__
9
10#include <PvBaseLib.h>
11
12#include <string>
13
14
15namespace PtUtilsLib
16{
17 class String;
18}
19
24
25class PV_BASE_API PvString
26{
27public:
28
32 PvString();
33
39 PvString( const PvString & aValue );
40
46 PvString( const char * aValue );
47
54 PvString( const char * aValue, unsigned int aN );
55
61 PvString( const wchar_t * aValue );
62
66 virtual ~PvString();
67
75 const PvString &operator = ( const PvString & aValue );
76
84 const PvString &operator += ( const PvString & aValue );
85
95 bool operator == ( const char *aValue ) const;
96
106 bool operator != ( const char *aValue ) const;
107
117 bool operator == ( const wchar_t *aValue ) const;
118
128 bool operator != ( const wchar_t *aValue ) const;
129
139 bool operator == ( const PvString & aValue ) const;
140
150 bool operator != ( const PvString & aValue ) const;
151
159 operator const char *() const;
160
168 operator const wchar_t *() const;
169
179 const char *GetAscii() const;
180
190 const wchar_t *GetUnicode() const;
191
197 unsigned int GetLength() const;
198
199private:
200
201 mutable PtUtilsLib::String *mThis;
202
203 const std::string *mAscii;
204 const std::basic_string<wchar_t> *mUnicode;
205
206};
207
208#endif
String class.
Definition PvString.h:26

Copyright (c) 2002-2026 Pleora Technologies Inc.
www.pleora.com