blob: 8180cf80e313fa7998a077579392f89a0dac1569 (
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;
}
|