osaf/libs/saf/include/saAis.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/osaf/libs/saf/include/saAis.h b/osaf/libs/saf/include/saAis.h --- a/osaf/libs/saf/include/saAis.h +++ b/osaf/libs/saf/include/saAis.h @@ -35,6 +35,7 @@ #define _SA_AIS_H #ifdef __cplusplus +#include <string> extern "C" { #endif @@ -159,6 +160,9 @@ typedef struct { typedef struct { SaUint16T length; SaUint8T value[SA_MAX_NAME_LENGTH]; +#ifdef __cplusplus + operator std::string() const {return std::string((char*)value, length);} +#endif } SaNameT; typedef struct { ------------------------------------------------------------------------------ The best possible search technologies are now affordable for all companies. Download your FREE open source Enterprise Search Engine today! Our experts will assist you in its installation for $59/mo, no commitment. Test it for FREE on our Cloud platform anytime! http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel