blob: 958c9eabfa591c7bdb8784330452e885c010cdb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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
|