aboutsummaryrefslogtreecommitdiff
path: root/vcal.cpp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-19 00:27:43 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-19 00:27:43 +0100
commitaae3b8bfb83abec0f1bb8e4c854c156c03be5ca8 (patch)
tree305f1287a8cc6a896318a4de5f2b43686e7223b3 /vcal.cpp
parentMade to compile as C++. (diff)
downloadcalp-aae3b8bfb83abec0f1bb8e4c854c156c03be5ca8.tar.gz
calp-aae3b8bfb83abec0f1bb8e4c854c156c03be5ca8.tar.xz
Started full rewrite in C++.
Diffstat (limited to 'vcal.cpp')
-rw-r--r--vcal.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/vcal.cpp b/vcal.cpp
new file mode 100644
index 00000000..a104664d
--- /dev/null
+++ b/vcal.cpp
@@ -0,0 +1,14 @@
+#include "vcal.h"
+#include "err.h"
+
+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
+ << self->components;
+
+ return o;
+}