-
Notifications
You must be signed in to change notification settings - Fork 2
/
output.h
69 lines (55 loc) · 3.02 KB
/
output.h
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
68
69
/*
* This file is part of the Advance project.
*
* Copyright (C) 2002, 2003 Andrea Mazzoleni
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __OUTPUT_H
#define __OUTPUT_H
#include "game.h"
class output {
std::ostream& os;
std::ostream& op(const std::string& op);
std::ostream& total(const std::string& op);
std::ostream& free(const std::string& op);
std::ostream& cmd(const std::string& op, const std::string& cmd);
std::ostream& pair(unsigned size, crc_t crc);
public:
output(std::ostream& Aos) : os(Aos) { os.setf(std::ios::left, std::ios::adjustfield); }
std::ostream& operator()() { return os; }
std::ostream& zip(const std::string& op, const std::string& zip);
std::ostream& ziptag(const std::string& op, const std::string& zip, const std::string& tag);
std::ostream& title(const std::string& op, bool& title, const std::string& path);
std::ostream& c(const std::string& op, unsigned count);
std::ostream& cs(const std::string& op, unsigned count, unsigned long long size);
std::ostream& csz(const std::string& op, unsigned count, unsigned long long size, unsigned long long sizezip);
std::ostream& cz(const std::string& op, unsigned count, unsigned long long sizezip);
std::ostream& cp(const std::string& tag, double v);
std::ostream& state_gamerom(const std::string& tag, const game& g, const gamearchive& gar, bool onecrc);
std::ostream& state_gamesample(const std::string& tag, const game& g);
std::ostream& state_gamedisk(const std::string& tag, const game& g, bool name);
std::ostream& cmd_rom(const std::string& tag, const std::string& cmd, const rom& r);
std::ostream& cmd_rom(const std::string& tag, const std::string& cmd, const std::string& name, unsigned size, crc_t crc);
std::ostream& cmd_sample(const std::string& tag, const std::string& cmd, const sample& s);
std::ostream& cmd_disk(const std::string& tag, const std::string& cmd, const std::string& name);
std::ostream& state_rom(const std::string& tag, const rom& r);
std::ostream& state_rom(const std::string& tag, const std::string& name, unsigned size, crc_t crc);
std::ostream& state_rom_real(const std::string& tag, const rom& r, unsigned real_size, unsigned real_crc);
std::ostream& state_sample(const std::string& tag, const sample& s);
std::ostream& state_disk(const std::string& tag, const disk& d);
std::ostream& state_disk_real(const std::string& tag, const disk& d, sha1 real_hash);
};
#endif