Skip to content

Commit 2088f1e

Browse files
committed
update file structure, include guards and namespaces
Signed-off-by: Ashton Larkin <42042756+adlarkin@users.noreply.github.com>
1 parent 8a2f726 commit 2088f1e

8 files changed

Lines changed: 23 additions & 17 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
*
1616
*/
1717

18-
#ifndef SDF_USD_PARSER_USDDATA_HH
19-
#define SDF_USD_PARSER_USDDATA_HH
18+
#ifndef SDF_USD_USD_PARSER_USDDATA_HH_
19+
#define SDF_USD_USD_PARSER_USDDATA_HH_
2020

2121
#include <memory>
2222
#include <set>
@@ -36,7 +36,7 @@
3636
#include "sdf/Material.hh"
3737
#include "sdf/sdf_config.h"
3838
#include "sdf/system_util.hh"
39-
#include "sdf/usd_parser/USDStage.hh"
39+
#include "sdf/usd/usd_parser/USDStage.hh"
4040

4141
namespace sdf
4242
{

usd/include/sdf/usd_parser/USDStage.hh renamed to usd/include/sdf/usd/usd_parser/USDStage.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
*
1616
*/
1717

18-
#ifndef SDF_USD_PARSER_USDSTAGE_HH
19-
#define SDF_USD_PARSER_USDSTAGE_HH
18+
#ifndef SDF_USD_USD_PARSER_USDSTAGE_HH_
19+
#define SDF_USD_USD_PARSER_USDSTAGE_HH_
2020

2121
#include <string>
2222
#include <set>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
*
1616
*/
1717

18-
#ifndef SDF_USD_PARSER_UTILS_HH
19-
#define SDF_USD_PARSER_UTILS_HH
18+
#ifndef SDF_USD_USD_PARSER_UTILS_HH_
19+
#define SDF_USD_USD_PARSER_UTILS_HH_
2020

2121
#include <string>
2222

usd/src/usd_parser/USDData.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
*/
17-
#include "sdf/usd_parser/USDData.hh"
17+
#include "sdf/usd/usd_parser/USDData.hh"
1818

1919
#include <string>
2020
#include <set>
@@ -35,11 +35,13 @@
3535
#include <ignition/common/Filesystem.hh>
3636
#include <ignition/common/Util.hh>
3737

38-
#include "sdf/usd_parser/utils.hh"
38+
#include "sdf/usd/usd_parser/utils.hh"
3939
#include "sdf/Material.hh"
4040

4141
namespace sdf {
42-
42+
// Inline bracke to help doxygen filtering.
43+
inline namespace SDF_VERSION_NAMESPACE {
44+
//
4345
namespace usd {
4446
/// \brief USDStage private data.
4547
class USDData::Implementation
@@ -260,3 +262,4 @@ namespace usd {
260262
}
261263
}
262264
}
265+
}

usd/src/usd_parser/USDData_TEST.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <gtest/gtest.h>
1919

2020
#include <ignition/common/Filesystem.hh>
21-
#include <sdf/usd_parser/USDData.hh>
21+
#include <sdf/usd/usd_parser/USDData.hh>
2222

2323
#include <ignition/utilities/ExtraTestMacros.hh>
2424

usd/src/usd_parser/USDStage.cc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@
3030
#include <pxr/usd/usd/stage.h>
3131
#pragma pop_macro ("__DEPRECATED")
3232

33-
#include "sdf/usd_parser/USDStage.hh"
34-
#include "sdf/usd_parser/utils.hh"
33+
#include "sdf/usd/usd_parser/USDStage.hh"
34+
#include "sdf/usd/usd_parser/utils.hh"
3535

36-
namespace sdf
37-
{
36+
namespace sdf {
37+
// Inline bracke to help doxygen filtering.
38+
inline namespace SDF_VERSION_NAMESPACE {
39+
//
3840
namespace usd
3941
{
4042
/// \brief USDStage private data.
@@ -116,4 +118,5 @@ namespace usd
116118
return this->dataPtr->paths;
117119
}
118120
} // usd
121+
} // sdf version namespace
119122
} // sdf

usd/src/usd_parser/USDStage_TEST.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <gtest/gtest.h>
1919

2020
#include <ignition/common/Filesystem.hh>
21-
#include <sdf/usd_parser/USDStage.hh>
21+
#include <sdf/usd/usd_parser/USDStage.hh>
2222

2323
#include <ignition/utilities/ExtraTestMacros.hh>
2424

usd/src/usd_parser/utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*/
1717

18-
#include "sdf/usd_parser/utils.hh"
18+
#include "sdf/usd/usd_parser/utils.hh"
1919

2020
#include <pxr/usd/usdShade/input.h>
2121
#include <pxr/usd/usdShade/material.h>

0 commit comments

Comments
 (0)