Commit 330b92d0 authored by Claes Sjofors's avatar Claes Sjofors

wbl print, added file header with version in wb_load and wb_dmp files

parent 5911461b
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include "pwr_version.h"
#include "co_string.h" #include "co_string.h"
#include "co_time.h" #include "co_time.h"
...@@ -194,6 +195,12 @@ void wb_print_wbl::printVolume(wb_volume& v, bool recursive) ...@@ -194,6 +195,12 @@ void wb_print_wbl::printVolume(wb_volume& v, bool recursive)
return; return;
} }
char timstr[40];
time_AtoAscii(0, time_eFormat_DateAndTime, timstr, sizeof(timstr));
indent() << "! Generated by wb_print_wbl " << timstr << "\n";
indent() << "! Volume " << v.name() << " \n";
indent() << "! Version " pwrv_cPwrVersionStr "\n";
wb_object o = v.object(); wb_object o = v.object();
const char* cname = v.cdef(v.cid()).name(); const char* cname = v.cdef(v.cid()).name();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment