blob: b0ce2c82c9d8d0c2e778308fda44a9669b29201c (
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
|
#include "vcal.h"
#include "err.h"
#include <iostream>
vcomponent::vcomponent(
const std::string& type,
const std::string& filename)
: type(type)
, filename(filename)
{ }
std::ostream& operator<<(std::ostream& o, vcomponent* self) {
for (int i = 0; i < 40; i++) o << '_';
o << _YELLOW << std::endl
<< "VComponet (Type := " << self->type << _RESET
// << self->clines
<< std::endl << "Components:" << std::endl;
for (auto v : self->components) {
o << &v;
}
//<< self->components;
return o;
}
|