diff options
Diffstat (limited to 'includes/utilities.hpp')
-rw-r--r-- | includes/utilities.hpp | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/includes/utilities.hpp b/includes/utilities.hpp new file mode 100644 index 0000000..958c9ea --- /dev/null +++ b/includes/utilities.hpp @@ -0,0 +1,67 @@ +//-*- mode: c++; indent-tabs-mode: t; coding: utf-8; show-trailing-whitespace: t -*- + +// file utilities.hpp + +#ifndef _UTILITIES_HPP +#define _UTILITIES_HPP + +#include <iostream> +#include <iomanip> +#include <fstream> +#include <sstream> +#include <cstdio> +#include <cstdarg> +#include <string> +#include <fstream> +#include <vector> + +// UNIX includes. +#include <unistd.h> +#include <sys/ioctl.h> +#include <sys/stat.h> + +#include "blkcom.hpp" +#include "dekspy.hpp" +#include "time.hpp" +#include "strcom.hpp" +#include "emtp.hpp" + +// Macros. +#define FOREVER for(;;) + +namespace kwtcom { + + extern long int nKWTVAX; + +} + +namespace utilities +{ + // Types + + // Prototypes. + bool exists (const char *); + std::string format (const std::string &, ...); + void quiter(void); + void window(std::ostream &, std::stringstream &); + void honker(const long int &); + void flager(void); + void prompt(std::ostream &, const std::string &); + bool openFile(std::fstream *, \ + std::string &, \ + const std::ios::openmode &); + bool closeFile(std::fstream *); + bool copyFile(std::fstream *, \ + std::fstream *, \ + const std::string &); + bool deleteFile(const std::string &); + struct winsize getTerminalSize(void); + void expchk(long int &, \ + long int &, \ + long int &); + +} + +#endif // _UTILITIES_HPP + +// end of file utilities.hpp |