VisualIB  1.0
IBExpress library for making use of Borland IBExpress outside of C++Builder
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
VIBUtils.h
Go to the documentation of this file.
1 
10 #ifndef VIBUTILS_H__
11 #define VIBUTILS_H__
12 
13 #include <string>
14 #include "../vibstring.h"
15 #include "classVIBError.h"
16 
17 static inline std::string ElideVIBString(VIBString *vstr)
18 {
19  std::string ret;
20 
21  if(!vstr)
22  throw VIB::Error("Failed to get string property value");
23 
24  ret = VIBString_CStr(vstr);
25  VIBString_Destroy(vstr);
26  return ret;
27 }
28 
29 #endif
30 
31 // EOF
32