-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrenderer.hpp
44 lines (35 loc) · 950 Bytes
/
renderer.hpp
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
#ifndef _RENDERER_HPP
#define _RENDERER_HPP 1
#include <cstddef>
#include <string>
#include <vector>
#include "allowedtypes.hpp"
#include "bin_file.hpp"
class BinFile;
namespace render {
const std::string getKnownDataDescr();
const bool hasDataDescr(const std::string &);
class Renderer
{
public:
Renderer();
virtual ~Renderer();
virtual void setDataDescr(const std::string &);
virtual void showData(BinFile &, std::size_t offset=0, std::size_t length=0);
void showLines(const bool showLines);
bool showLines() const ;
void numItemsPerLine(const std::size_t numItems);
std::size_t numItemsPerLine();
void quiet(const bool value);
bool quiet();
private:
template <typename NumT>
void innerShowData(BinFile &file, size_t offset, size_t length);
std::vector<std::string> * m_dataDescr;
allowed::AllowedTypes types;
bool m_showLines;
bool m_quiet;
std::size_t m_numItemsPerLine;
};
} // namespace render
#endif