Mobile API Reference  MicroStrategy 2019
StringCollection.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : StringCollection.h
3 // AUTHOR : Yi Luo
4 // CREATION : 12/19/02
5 // Copyright (C) MicroStrategy, Inc. 2002
6 //==============================================================================================
7 #ifndef MDataType_StringCollection_h
8 #define MDataType_StringCollection_h
9 
10 #include "DataType.h"
11 #include "Base/Defines/StrongPtr.h"
12 #include "Base/Defines/ReturnPtr.h"
13 
14 namespace MDataType
15 {
20  {
21  public:
22  // virtual destructor is a must
23  virtual ~StringCollection() throw()
24  {
25  }
26 
29 
33  virtual void Insert(const char* ipString) = 0;
34 
36  virtual void Insert(const StringCollection& irStringCollection) = 0;
37 
39  virtual size_t GetCount() const throw() = 0;
40 
42  virtual const char* GetString(size_t iStringIndex) const = 0;
43 
45  virtual void Clear() = 0;
46  };
47 
48  // this typedef is obsolete
50 
55 }
56 
57 #endif // MDataType_StringCollection_h
DLL_DATATYPE_EXIM StringCollection * CreateStringCollection()
virtual void Clear()=0
remove all elements in the collection
virtual void Insert(const char *ipString)=0
virtual ~StringCollection()
Definition: StringCollection.h:23
#define DLL_DATATYPE_EXIM
Definition: DataType.h:22
Definition: BigDecimal.h:18
MBase::ReturnPtr< StringCollection > ReturnPtr
Definition: StringCollection.h:28
Definition: StringCollection.h:19
Definition: StrongPtr.h:50
virtual const char * GetString(size_t iStringIndex) const =0
get the string specified by its location in the collection.
virtual size_t GetCount() const =0
get the number of items in this collection
Definition: ReturnPtr.h:22
MBase::StrongPtr< StringCollection > Ptr
Definition: StringCollection.h:27