12 msq_std::string result(
"TSTT ERROR: ");
13 result += tstt_err.getNote();
14 MSQ_DBGOUT(1) <<
"TSTT Error:" << msq_std::endl;
15 MSQ_DBGOUT(1) << tstt_err.getNote() << msq_std::endl;
16 tstt_err.getDescription(str);
18 MSQ_DBGOUT(1) << tstt_err.getTrace() << msq_std::endl;
22 template <
class T>
static inline
24 {
return reinterpret_cast<T*
>(array._get_ior()->d_firstElement); }
29 int32_t upper = size - 1;
30 return sidl::array<T>::createCol( 1, &lower, &upper );
35 sidl::array<T> result = alloc_sidl_vector<T>(size);
37 for ( T*
const end = ptr + size; ptr != end; ++ptr)
42 template <
class S,
class T>
static inline void copy_from_sidl( sidl::array<S>& source,
45 typename sidl::array<S>::iterator
i = source.begin();
46 for (; i != source.end(); ++
i, ++target)
50 template <
class T>
static inline
53 sidl::array<T> result;
54 int32_t lower = 0, upper = size - 1, stride = 1;
55 result.borrow( array, 1, &lower, &upper, &stride );
static sidl::array< T > alloc_sidl_vector(size_t size)
static T * convert_from_sidl_vector(sidl::array< T > &array)
static sidl::array< T > convert_to_sidl_vector(T *array, size_t size)
static void copy_from_sidl(sidl::array< S > &source, T *target)
#define MSQ_DBGOUT(flag)
Check debug flag and return ostream associated with flag.
static msq_std::string process_tstt_error(TSTTB::Error &tstt_err)