Skip to content

Commit a719566

Browse files
committed
--move to diagnostics namespace/directory
1 parent 3c09283 commit a719566

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

src/esp/metadata/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ set(
3131
attributes/SemanticAttributes.cpp
3232
attributes/StageAttributes.h
3333
attributes/StageAttributes.cpp
34+
diagnostics/DatasetDiagnosticsTool.h
35+
diagnostics/DatasetDiagnosticsTool.cpp
3436
managers/AbstractAttributesManager.h
3537
managers/AbstractObjectAttributesManager.h
3638
managers/AOAttributesManager.h
3739
managers/AOAttributesManager.cpp
3840
managers/AssetAttributesManager.h
3941
managers/AssetAttributesManager.cpp
40-
managers/DatasetDiagnosticsTool.h
41-
managers/DatasetDiagnosticsTool.cpp
4242
managers/LightLayoutAttributesManager.h
4343
managers/LightLayoutAttributesManager.cpp
4444
managers/ObjectAttributesManager.h

src/esp/metadata/managers/DatasetDiagnosticsTool.cpp renamed to src/esp/metadata/diagnostics/DatasetDiagnosticsTool.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@
88

99
namespace esp {
1010
namespace metadata {
11-
namespace managers {
11+
namespace diagnostics {
1212

1313
const std::map<std::string, DSDiagnosticType> DSDiagnosticTypeMap = {
1414
{"savecorrected", DSDiagnosticType::SaveCorrected},
15-
{"testforsceneinstanceduplicates",
16-
DSDiagnosticType::TestForDuplicateInstances},
17-
{"testforsemanticregionduplicates",
18-
DSDiagnosticType::TestForDuplicateRegions},
19-
// Future diagnostics should be listed here
15+
{"sceneinstanceduplicates", DSDiagnosticType::TestForDuplicateInstances},
16+
{"semanticregionduplicates", DSDiagnosticType::TestForDuplicateRegions},
17+
// Future diagnostics should be listed here, before "all"
2018
{"all", DSDiagnosticType::AllDiagnostics},
2119
{"allsavecorrected", DSDiagnosticType::AllDiagnosticsSaveCorrected},
2220
};
@@ -76,6 +74,6 @@ bool DatasetDiagnosticsTool::setNamedDiagnostic(const std::string& diagnostic,
7674
return true;
7775
} // DatasetDiagnosticsTool::setNamedDiagnostic
7876

79-
} // namespace managers
77+
} // namespace diagnostics
8078
} // namespace metadata
8179
} // namespace esp

src/esp/metadata/managers/DatasetDiagnosticsTool.h renamed to src/esp/metadata/diagnostics/DatasetDiagnosticsTool.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
// This source code is licensed under the MIT license found in the
44
// LICENSE file in the root directory of this source tree.
55

6-
#ifndef ESP_METADATA_MANAGERS_DATASETDIAGNOSTICSTOOL_H_
7-
#define ESP_METADATA_MANAGERS_DATASETDIAGNOSTICSTOOL_H_
6+
#ifndef ESP_METADATA_DIAGNOSTICS_DATASETDIAGNOSTICSTOOL_H_
7+
#define ESP_METADATA_DIAGNOSTICS_DATASETDIAGNOSTICSTOOL_H_
88

99
#include "esp/core/Esp.h"
1010
#include "esp/io/Json.h"
1111
#include "esp/metadata/attributes/AbstractAttributes.h"
1212

1313
namespace esp {
1414
namespace metadata {
15-
namespace managers {
15+
namespace diagnostics {
1616

1717
/**
1818
* @brief This enum class defines the various dataset diagnostics and remedies
@@ -281,8 +281,8 @@ class DatasetDiagnosticsTool {
281281

282282
}; // class DatasetDiagnosticsTool
283283

284-
} // namespace managers
284+
} // namespace diagnostics
285285
} // namespace metadata
286286
} // namespace esp
287287

288-
#endif // ESP_METADATA_MANAGERS_DATASETDIAGNOSTICSTOOL_H_
288+
#endif // ESP_METADATA_DIAGNOSTICS_DATASETDIAGNOSTICSTOOL_H_

src/esp/metadata/managers/AbstractAttributesManager.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* @brief Class Template @ref esp::metadata::managers::AbstractAttributesManager
1010
*/
1111

12-
#include "DatasetDiagnosticsTool.h"
1312
#include "esp/metadata/attributes/AbstractAttributes.h"
13+
#include "esp/metadata/diagnostics/DatasetDiagnosticsTool.h"
1414

1515
#include "esp/core/managedContainers/ManagedFileBasedContainer.h"
1616
#include "esp/io/Io.h"
@@ -31,6 +31,7 @@ namespace managers {
3131
using core::config::Configuration;
3232
using core::managedContainers::ManagedFileBasedContainer;
3333
using core::managedContainers::ManagedObjectAccess;
34+
using diagnostics::DatasetDiagnosticsTool;
3435

3536
/**
3637
* @brief Class template defining responsibilities and functionality for

0 commit comments

Comments
 (0)