sipXcallLib home page


TaoString.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _TaoString_h_
13 #define _TaoString_h_
14 
15 #if _MSC_VER >= 1000
16 #pragma once
17 #endif // _MSC_VER >= 1000
18 
19 #include <utl/UtlString.h>
20 
21 #define TAO_STRING_ARRAY_LENGTH 100
22 // #define TAOSTR_DEBUG
23 
24 class TaoString : public UtlString
25 {
26 public:
27  TaoString();
28 
29  TaoString(const char* str, const char* delimiter);
30 
31  const char* operator []( int nIndex ) const;
32 
33 
34  virtual ~TaoString();
35 
36  int getCnt() { return mCnt; };
37 
38  TaoString(const TaoString& rTaoString);
39  //:Copy constructor (not implemented for this class)
40 
41 #ifdef TAOSTR_DEBUG
42  static unsigned int mStrCnt;
43 #endif
44 
45 private:
46  int mCnt;
47  UtlString mDelimiter;
49 
50 
51 };
52 
53 #endif // _TaoString_h_
virtual ~TaoString()
Definition: TaoString.cpp:98
const char * operator[](int nIndex) const
Definition: TaoString.cpp:112
TaoString()
Definition: TaoString.cpp:33
char * mStrArray[TAO_STRING_ARRAY_LENGTH+1]
Definition: TaoString.h:48
Definition: TaoString.h:24
#define TAO_STRING_ARRAY_LENGTH
Definition: TaoString.h:21
UtlString mDelimiter
Definition: TaoString.h:47
int mCnt
Definition: TaoString.h:46
int getCnt()
Definition: TaoString.h:36