Mobile API Reference  MicroStrategy 2019
BinaryCollectionImpl.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : BinaryCollectionImpl.h
3 // AUTHOR : Yi Luo
4 // PROJECT : DataType
5 //
6 // CREATION : 08/16/2002
7 // Copyright (C) MicroStrategy, Inc. 2002
8 //==============================================================================================
9 #ifndef DataType_BinaryCollectionImpl_h
10 #define DataType_BinaryCollectionImpl_h
11 
12 #include "PDCHeader/PDCvector"
13 
15 
16 namespace MDataType
17 {
22  {
23  public:
24 
31  void Insert(Binary* ipBinary);
32 
33  void Merge(BinaryCollection* ipBinaryCollection);
34 
36  unsigned Int32 GetBinaryCount() const throw();
37 
40  const Binary* GetBinary(unsigned Int32 iBinaryIndex) const;
41 
43  unsigned Int64 GetTotalLength() const throw();
44 
45  void Delete() throw();
46 
48  virtual ~BinaryCollectionImpl() throw();
49 
50  protected:
51 
52  // Give up the ownership of all the Binary in the collection.
53  // Used by Merge().
54  void GiveUp() throw();
55 
56  private:
57  std::vector<Binary*> mBinaries;
58 
59  };
60 }
61 
62 #endif // DataType_BinaryCollectionImpl_h
MDataType::Binary represents binary data.
Definition: Binary.h:33
Definition: BinaryCollection.h:23
void Merge(BinaryCollection *ipBinaryCollection)
#define Int64
Definition: BasicTypes.h:36
void Delete()
delete this object. Used by StrongPtr.
void Insert(Binary *ipBinary)
Definition: BigDecimal.h:18
unsigned Int32 GetBinaryCount() const
Get the number of Binaries in the collection.
Definition: BinaryCollectionImpl.h:21
#define Int32
Definition: BasicTypes.h:20
unsigned Int64 GetTotalLength() const
Get the total size of all the binary.
const Binary * GetBinary(unsigned Int32 iBinaryIndex) const