26 #ifndef _BOARD_TOOLS_H_
27 #define _BOARD_TOOLS_H_
34 #define SHOW( V ) std::cerr << " " #V " = " << ( V ) << std::endl
44 inline MessageStream( std::ostream & out,
const char * prefix );
58 MessageStream::MessageStream( std::ostream & out,
const char * prefix )
65 MessageStream MessageStream::operator<<(
const T & v )
72 return MessageStream( _out, 0 );
75 #if defined( _MSC_VER )
76 #define secured_sprintf sprintf_s
78 #define secured_sprintf snprintf
79 #endif // defined( _MSC_VER )
81 inline void secured_strncpy(
char * dst,
const char * src,
size_t count );
83 inline void secured_ctime(
char * str,
const time_t * t,
size_t count );
85 bool base64encode(std::istream & in, std::ostream & ,
int linesize = 80);
87 bool stringEndsWith(
const char * str,
const char * end );
89 void flushFile(
const char * filename, std::ostream & out );
91 Rect getEPSBoundingBox(
const char * filename );
93 bool canCreateFile(
const char * filename );
95 bool canReadFile(
const char * filename );
97 const char * temporaryFilename(
const char * extension );
99 unsigned int boardRand();
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...