-
Notifications
You must be signed in to change notification settings - Fork 1
/
DBase.h
39 lines (30 loc) · 1.03 KB
/
DBase.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
// Copyright 2008 by Robert Dick, David Rhodes, and Keith Vallerio.
// All rights reserved.
#ifndef D_BASE_H_
#define D_BASE_H_
/*###########################################################################*/
#include "RString.h"
#include "RecVector.h"
#include "RVector.h"
//#include <cstddef>
//#include <iosfwd>
#include <string>
/*###########################################################################*/
class DBase {
public:
DBase(int table_offset, int type_cnt);
void print_to(std::ostream & os, const std::string & table_label) const;
void trans_print_to(std::ostream &os, const std::string & table_label)const;
private:
int type_cnt_;
int table_offset_;
// PE, attribute
rstd::RecVector2<double> table_;
// PE, type, attribute, different implementations
rstd::RecVector3<rstd::RVector<double> > table_type_;
const rstd::RVector<std::string> & table_name_;
const rstd::RVector<std::string> & type_name_;
std::size_t f_width_;
};
/*###########################################################################*/
#endif