Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PVRP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christian Tilk
PVRP
Commits
57f9eabe
Commit
57f9eabe
authored
Jul 27, 2023
by
Christian Tilk
Browse files
Options
Downloads
Patches
Plain Diff
intermediate New base-class merge
parent
3b538a49
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
SharedFiles/output_formatter.cpp
+10
-9
10 additions, 9 deletions
SharedFiles/output_formatter.cpp
SharedFiles/output_formatter.h
+3
-1
3 additions, 1 deletion
SharedFiles/output_formatter.h
with
13 additions
and
10 deletions
SharedFiles/output_formatter.cpp
+
10
−
9
View file @
57f9eabe
...
@@ -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
def
ined(_WIN32) || defined(_WIN64)
TCHAR
infoBuf
[
150
];
TCHAR
infoBuf
[
150
];
DWORD
bufCharCount
=
150
;
DWORD
bufCharCount
=
150
;
memset
(
Name
,
0
,
150
);
memset
(
Name
,
0
,
150
);
...
...
This diff is collapsed.
Click to expand it.
SharedFiles/output_formatter.h
+
3
−
1
View file @
57f9eabe
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment