blob: 8120674cc3a209e58b852505b2a9782c53d7e1c6 (
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
27
28
29
30
31
|
#include "vcal.h"
#include "err.h"
#include <iostream>
__content_set::__content_set (strbuf* value) : value(value) {
std::cout << _GREEN << value->len << ' ' << value << _RESET << std::endl;
this->value->cap();
}
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;
}
|