Board 0.9.6
Namespaces | Functions
Tools.cpp 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 https://foureys.users.greyc.fr/ More...

#include <BoardConfig.h>
#include <board/Debug.h>
#include <board/Rect.h>
#include <board/Tools.h>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>

Namespaces

namespace  LibBoard
 
namespace  LibBoard::Tools
 

Functions

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)
 
void LibBoard::Tools::getEPSBoundingBox (const char *filename, Rect &rect)
 
bool LibBoard::Tools::canCreateFile (const char *filename)
 
bool LibBoard::Tools::canReadFile (const char *filename)
 
const char * LibBoard::Tools::temporaryFilename (const char *extension)
 
void LibBoard::Tools::initBoardRand (unsigned long seed)
 
unsigned int LibBoard::Tools::boardRand ()
 
double LibBoard::Tools::boardRandDouble ()
 
double LibBoard::Tools::boardRandDouble (double min, double max)
 
bool LibBoard::Tools::solveQuadratic (double a, double b, double c, double &x1, double &x2)
 

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 https://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/.