wavelength 1.0.0
Loading...
Searching...
No Matches
HxStringSafeArray.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
6#include "utl/Str.h"
7
14public:
21 HxStringSafeArray(SAFEARRAY *array);
22
29 HxStringSafeArray(std::vector<String> &values);
30
37
46 String Get(long iIndex);
47
55 void Set(long iIndex, const char *value);
56
63 void GetVariant(VARIANT *variant);
64
71 void SetFromVector(std::vector<String> &values);
72
73private:
74 bool mOwned;
75};
HxSafeArray(SAFEARRAY *array)
Wrap an array and count its elements.
~HxStringSafeArray()
Destroy the array when the object created it.
void Set(long iIndex, const char *value)
Write an element.
void GetVariant(VARIANT *variant)
Refer a variant to the array, without copying it.
void SetFromVector(std::vector< String > &values)
Replace the elements with those of a vector.
String Get(long iIndex)
Read an element, at most 499 characters of it.
HxStringSafeArray(SAFEARRAY *array)
Wrap an array, or create an empty one that the object destroys.
HxStringSafeArray(std::vector< String > &values)
Create an array that the object destroys, with the elements of a vector.
Growable text buffer that is also a PrnStream.
Definition string.h:19