Skip to content

Commit 87750f1

Browse files
committed
mapi_lib: add tarray_set::repr
1 parent 3fb2a18 commit 87750f1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

include/gromox/mapidefs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,7 @@ struct GX_EXPORT tarray_set {
12481248
inline gromox::deref_iterator<TPROPVAL_ARRAY> end() { return pparray + count; }
12491249
inline gromox::const_deref_iterator<TPROPVAL_ARRAY> begin() const { return pparray; }
12501250
inline gromox::const_deref_iterator<TPROPVAL_ARRAY> end() const { return pparray + count; }
1251+
std::string repr() const;
12511252

12521253
uint32_t count;
12531254
TPROPVAL_ARRAY **pparray;

lib/mapi/restriction2.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,15 @@ std::string TPROPVAL_ARRAY::repr() const
622622
return s;
623623
}
624624

625+
std::string tarray_set::repr() const
626+
{
627+
std::string s = "rowset{\n";
628+
for (const auto &e : *this)
629+
s += e.repr() + "\n";
630+
s += "}";
631+
return s;
632+
}
633+
625634
namespace gromox {
626635

627636
std::string guid2name(const FLATUID le)

0 commit comments

Comments
 (0)