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