Skip to content
Snippets Groups Projects
Commit 57f9eabe authored by Christian Tilk's avatar Christian Tilk
Browse files

intermediate New base-class merge

parent 3b538a49
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,14 @@
#include <fstream>
#include <time.h>
#if defined(_WIN32) || defined(_WIN64)
#include <winsock.h>
#include <tchar.h>
#else
#include <unistd.h>
#include <string.h>
#endif
namespace formatted_output {
......@@ -10,8 +18,8 @@ namespace formatted_output {
c_OutputField::c_OutputField(int pos, const std::string& header_line, c_OutputController* ctlr)
: i_pos(pos),
i_width(-1),
b_print(true),
i_width(-1),
c_fill(' ')
{
if (!p_ctlr)
......@@ -235,19 +243,12 @@ namespace formatted_output {
: c_OutputField(pos, header_line)
{}
#if defined(_WIN32) || defined(_WIN64)
#include <Windows.h>
#include <tchar.h>
#else
#include <unistd.h>
#include <string.h>
#endif
void c_HostnameField::Output(ostream& stream) const
{
char Name[150];
int i = 0;
#ifdef WIN32
#if defined(_WIN32) || defined(_WIN64)
TCHAR infoBuf[150];
DWORD bufCharCount = 150;
memset(Name, 0, 150);
......
......@@ -6,7 +6,9 @@
#include <vector>
#include <iostream>
#include "timeinfo.h"
#include "stopwatch.h"
typedef c_Stopwatch c_TimeInfo;
namespace formatted_output {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment