Skip to content

Commit

Permalink
Make more headers private (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
daboehme authored Apr 9, 2024
1 parent 7bb6338 commit 8d143df
Show file tree
Hide file tree
Showing 32 changed files with 42 additions and 44 deletions.
7 changes: 4 additions & 3 deletions src/caliper/aggregate_over_mpi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
#include "caliper/reader/Aggregator.h"
#include "caliper/reader/CaliperMetadataDB.h"

#include "caliper/common/CompressedSnapshotRecord.h"
#include "caliper/common/Node.h"
#include "caliper/common/NodeBuffer.h"
#include "caliper/common/SnapshotBuffer.h"

#include "../common/CompressedSnapshotRecord.h"
#include "../common/NodeBuffer.h"
#include "../common/SnapshotBuffer.h"

#include <set>

Expand Down
3 changes: 2 additions & 1 deletion src/caliper/cali.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#include "caliper/Caliper.h"
#include "caliper/SnapshotRecord.h"

#include "caliper/common/CompressedSnapshotRecord.h"
#include "../common/CompressedSnapshotRecord.h"

#include "caliper/common/Log.h"
#include "caliper/common/Node.h"
#include "caliper/common/OutputStream.h"
Expand Down
3 changes: 2 additions & 1 deletion src/caliper/test/test_c_snapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
#include "caliper/Caliper.h"
#include "caliper/SnapshotRecord.h"

#include "caliper/common/CompressedSnapshotRecord.h"
#include "../../common/CompressedSnapshotRecord.h"

#include "caliper/common/Node.h"

#include <gtest/gtest.h>
Expand Down
2 changes: 1 addition & 1 deletion src/common/CompressedSnapshotRecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// \file CompressedSnapshotRecord.cc
/// Caliper compressed snapshot record representation

#include "caliper/common/CompressedSnapshotRecord.h"
#include "CompressedSnapshotRecord.h"

#include "util/vlenc.h"

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/common/NodeBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// \brief NodeBuffer.cc
/// NodeBuffer class definition

#include "caliper/common/NodeBuffer.h"
#include "NodeBuffer.h"

#include "util/vlenc.h"

Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion src/common/OutputStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

#include "caliper/common/OutputStream.h"

#include "SnapshotTextFormatter.h"

#include "caliper/common/Log.h"
#include "caliper/common/SnapshotTextFormatter.h"

#include <cstring>
#include <fstream>
Expand Down
4 changes: 2 additions & 2 deletions src/common/SnapshotBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
/// \brief SnapshotBuffer.cc
/// SnapshotBuffer class definition

#include "caliper/common/SnapshotBuffer.h"
#include "SnapshotBuffer.h"

#include "caliper/common/CompressedSnapshotRecord.h"
#include "CompressedSnapshotRecord.h"

#include <cstring>

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/common/SnapshotTextFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// \file SnapshotTextFormatter.cpp
/// \brief SnapshotTextFormatter implementation

#include "caliper/common/SnapshotTextFormatter.h"
#include "SnapshotTextFormatter.h"

#include "caliper/common/CaliperMetadataAccessInterface.h"
#include "caliper/common/Node.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#ifndef CALI_SNAPSHOT_TEXT_FORMATTER_H
#define CALI_SNAPSHOT_TEXT_FORMATTER_H

#include "Entry.h"

#include <iostream>
#include <memory>
#include <string>
Expand All @@ -18,11 +16,11 @@ namespace cali
{

class CaliperMetadataAccessInterface;
class Entry;

class SnapshotTextFormatter
{
struct SnapshotTextFormatterImpl;

std::unique_ptr<SnapshotTextFormatterImpl> mP;

public:
Expand All @@ -31,10 +29,10 @@ class SnapshotTextFormatter

~SnapshotTextFormatter();

void
void
reset(const std::string& format_str);

std::ostream&
std::ostream&
print(std::ostream&, const CaliperMetadataAccessInterface&, const std::vector<Entry>&);
};

Expand Down
2 changes: 1 addition & 1 deletion src/common/test/test_compressedsnapshotrecord.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "caliper/common/CompressedSnapshotRecord.h"
#include "../CompressedSnapshotRecord.h"

#include "MockupMetadataDB.h"

Expand Down
4 changes: 2 additions & 2 deletions src/common/test/test_snapshotbuffer.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "caliper/common/SnapshotBuffer.h"
#include "../SnapshotBuffer.h"

#include "caliper/common/CompressedSnapshotRecord.h"
#include "../CompressedSnapshotRecord.h"
#include "caliper/common/Node.h"

#include <gtest/gtest.h>
Expand Down
2 changes: 1 addition & 1 deletion src/common/test/test_snapshottextformatter.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "caliper/common/SnapshotTextFormatter.h"
#include "../SnapshotTextFormatter.h"

#include "MockupMetadataDB.h"

Expand Down
2 changes: 1 addition & 1 deletion src/reader/Expand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// Print expanded records

#include "caliper/reader/Expand.h"
#include "Expand.h"

#include "caliper/reader/QuerySpec.h"

Expand Down
1 change: 0 additions & 1 deletion include/caliper/reader/Expand.h → src/reader/Expand.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#define CALI_EXPAND_H

#include "Formatter.h"
#include "RecordProcessor.h"

#include <memory>

Expand Down
13 changes: 7 additions & 6 deletions src/reader/FormatProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@

#include "caliper/reader/FormatProcessor.h"

#include "Expand.h"
#include "JsonFormatter.h"
#include "JsonSplitFormatter.h"
#include "TableFormatter.h"
#include "TreeFormatter.h"
#include "UserFormatter.h"

#include "caliper/reader/CaliWriter.h"
#include "caliper/reader/Expand.h"
#include "caliper/reader/JsonFormatter.h"
#include "caliper/reader/JsonSplitFormatter.h"
#include "caliper/reader/TableFormatter.h"
#include "caliper/reader/TreeFormatter.h"
#include "caliper/reader/UserFormatter.h"

#include "caliper/common/CaliperMetadataAccessInterface.h"
#include "caliper/common/OutputStream.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pragma once

#include "RecordProcessor.h"
#include "caliper/reader/RecordProcessor.h"

namespace cali
{
Expand Down
2 changes: 1 addition & 1 deletion src/reader/JsonFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// Print web-readable table in sparse format

#include "caliper/reader/JsonFormatter.h"
#include "JsonFormatter.h"

#include "caliper/reader/QuerySpec.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@
#pragma once

#include "Formatter.h"
#include "RecordProcessor.h"

#include "../common/OutputStream.h"

#include <memory>

namespace cali
{

class CaliperMetadataAccessInterface;
class OutputStream;

struct QuerySpec;

/// \brief Prints snapshot records as sparse JSON
Expand Down
2 changes: 1 addition & 1 deletion src/reader/JsonSplitFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// Print web-readable table in sparse format

#include "caliper/reader/JsonSplitFormatter.h"
#include "JsonSplitFormatter.h"

#include "caliper/reader/Aggregator.h"
#include "caliper/reader/QuerySpec.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#pragma once

#include "Formatter.h"
#include "RecordProcessor.h"

#include <memory>

Expand Down
2 changes: 1 addition & 1 deletion src/reader/TableFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// Print human-readable table

#include "caliper/reader/TableFormatter.h"
#include "TableFormatter.h"

#include "caliper/reader/QuerySpec.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#define CALI_TABLE_H

#include "Formatter.h"
#include "RecordProcessor.h"

#include <iostream>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion src/reader/TreeFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// Pretty-print tree-organized snapshots

#include "caliper/reader/TreeFormatter.h"
#include "TreeFormatter.h"

#include "SnapshotTableFormatter.h"
#include "SnapshotTree.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#pragma once

#include "Formatter.h"
#include "RecordProcessor.h"

#include <iostream>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion src/reader/UserFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// Print expanded records

#include "caliper/reader/UserFormatter.h"
#include "UserFormatter.h"

#include "caliper/reader/QuerySpec.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#define CALI_FORMAT_H

#include "Formatter.h"
#include "RecordProcessor.h"

#include <memory>

Expand Down
2 changes: 1 addition & 1 deletion src/reader/test/test_nodebuffer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "caliper/common/NodeBuffer.h"
#include "../../common/NodeBuffer.h"

#include "caliper/reader/CaliperMetadataDB.h"

Expand Down
3 changes: 2 additions & 1 deletion src/services/textlog/TextLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
#include "caliper/common/Log.h"
#include "caliper/common/OutputStream.h"
#include "caliper/common/RuntimeConfig.h"
#include "caliper/common/SnapshotTextFormatter.h"

#include "../../common/SnapshotTextFormatter.h"

#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion src/services/validator/validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "caliper/common/Node.h"
#include "caliper/common/OutputStream.h"

#include "caliper/reader/Expand.h"
#include "../../reader/Expand.h"

#include <atomic>
#include <iostream>
Expand Down

0 comments on commit 8d143df

Please sign in to comment.