InfoVis 2013  1.0
Information Visualisation project - "Mapping Text with Phrase Nets"
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
utility.h File Reference
#include <string>

Go to the source code of this file.

Macros

#define STRINGIFY(x)   #x
 
#define TOSTRING(x)   STRINGIFY(x)
 
#define AT   __FILE__ ":" TOSTRING(__LINE__)
 
#define getGLError()   getLastGLErrorLocation(AT)
 

Functions

bool fileExists (const std::string &filename)
 
std::string readFile (const std::string &filename)
 
void getLastGLErrorLocation (const char *location)
 
void checkFramebufferStatus ()
 
std::string retrieveFilenameWithExtFromPath (const std::string &filepath)
 
std::string retrieveFilenameWithoutExtFromPath (const std::string &filepath)
 

Macro Definition Documentation

#define AT   __FILE__ ":" TOSTRING(__LINE__)
#define getGLError ( )    getLastGLErrorLocation(AT)
#define STRINGIFY (   x)    #x
#define TOSTRING (   x)    STRINGIFY(x)

Function Documentation

void checkFramebufferStatus ( )
bool fileExists ( const std::string &  filename)
void getLastGLErrorLocation ( const char *  location)
std::string readFile ( const std::string &  filename)
std::string retrieveFilenameWithExtFromPath ( const std::string &  filepath)
std::string retrieveFilenameWithoutExtFromPath ( const std::string &  filepath)