Board  0.9.4
Classes | Macros | Enumerations | 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::Tools::MessageStream
 

Macros

#define secured_sprintf   snprintf
 

Enumerations

enum  CaseSensitivity { CaseSensitive, CaseInsensitive }
 

Functions

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

Variables

MessageStream LibBoard::Tools::error
 
MessageStream LibBoard::Tools::warning
 
MessageStream LibBoard::Tools::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/.