Board  0.9.2
Classes | Macros | Functions | Variables
Tools.h File Reference

@copyright This source code is part of the Board project, a C++ library whose purpose is to allow simple drawings in EPS, FIG or SVG files. Copyright (C) 2007 Sebastien Fourey http://foureys.users.greyc.fr/ More...

#include <iostream>
#include <ctime>
#include <cstring>
#include "Rect.h"
#include "Tools.ih"

Go to the source code of this file.

Classes

class  LibBoard::MessageStream
 

Macros

#define SHOW(V)   std::cerr << " " #V " = " << ( V ) << std::endl
 
#define secured_sprintf   snprintf
 

Functions

void LibBoard::secured_strncpy (char *dst, const char *src, size_t count)
 
void LibBoard::secured_ctime (char *str, const time_t *t, size_t count)
 
bool LibBoard::base64encode (std::istream &in, std::ostream &, int linesize=80)
 
bool LibBoard::stringEndsWith (const char *str, const char *end)
 
void LibBoard::flushFile (const char *filename, std::ostream &out)
 
Rect LibBoard::getEPSBoundingBox (const char *filename)
 
bool LibBoard::canCreateFile (const char *filename)
 
bool LibBoard::canReadFile (const char *filename)
 
const char * LibBoard::temporaryFilename (const char *extension)
 
unsigned int LibBoard::boardRand ()
 

Variables

MessageStream LibBoard::error
 
MessageStream LibBoard::warning
 
MessageStream LibBoard::notice
 

Detailed Description

@copyright This source code is part of the Board project, a C++ library whose purpose is to allow simple drawings in EPS, FIG or SVG files. Copyright (C) 2007 Sebastien Fourey http://foureys.users.greyc.fr/

Author
Sebastien Fourey (GREYC)
Date
Nov 2008

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.