return *this;
}
+#if defined(linux)
+std::ostream & operator<<
+ (
+ std::ostream & os,
+ TTFile & file
+ )
+#else
ostream & operator<<
(
ostream & os,
TTFile & file
)
+#endif
{
if (file.ttFileOpFailed())
+#if defined(linux)
+ return os << "Error in filename mapping; status = "
+ << file.getStatus() << std::endl;
+#else
return os << "Error in filename mapping; status = "
<< file.getStatus() << endl;
+#endif
else
+#if defined(linux)
+ return os << file.data() << std::endl;
+#else
return os << file.data() << endl;
+#endif
}
};
#else
void TT_Exception (char *);
+#if defined(linux)
+ friend std::ostream & operator<< (std::ostream &, TTFile &);
+#else
friend ostream & operator<< (ostream &, TTFile &);
+#endif
#endif
int ttFileOpFailed () { return status != TT_OK; }
int isNull() const;
void replace (const CString &, const CString &);
+#if defined(linux)
+ friend std::ostream & operator<< (std::ostream &, const CString &);
+#else
friend ostream & operator<< (ostream &, const CString &);
+#endif
protected:
char * contents;