Skip to content

Commit

Permalink
move config.h include before the include of ObjectFactory.h
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger committed May 7, 2024
1 parent 9e85eb1 commit 4fd8586
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/BeamAdapter/component/BeamInterpolation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#define SOFA_PLUGIN_BEAMADAPTER_BEAMINTERPOLATION_CPP

#include <sofa/defaulttype/RigidTypes.h>
#include <BeamAdapter/config.h>
#include <sofa/core/ObjectFactory.h>

/// This define is here to prevent the declaration of the template instances as "extern".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

//////////////////////// Inclusion of headers...from wider to narrower/closer //////////////////////
#include <sofa/component/statecontainer/MechanicalObject.h>
#include <BeamAdapter/config.h>
#include <sofa/core/ObjectFactory.h>
#include <sofa/defaulttype/VecTypes.h>

Expand Down
10 changes: 4 additions & 6 deletions src/BeamAdapter/component/controller/AdaptiveBeamController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,16 @@
#define SOFA_PLUGIN_BEAMADAPTER_ADAPTIVEBEAMCONTROLLER_CPP

//////////////////////// Inclusion of headers...from wider to narrower/closer //////////////////////
#include <BeamAdapter/config.h>
#include <sofa/core/ObjectFactory.h>
#include <sofa/defaulttype/VecTypes.h>
#include <sofa/defaulttype/RigidTypes.h>

#include <BeamAdapter/config.h>
#include <BeamAdapter/component/controller/AdaptiveBeamController.inl>


namespace sofa::component::controller::_adaptivebeamcontroller_
namespace sofa::component::controller
{

using sofa::defaulttype::Rigid3Types;
using sofa::defaulttype::Rigid3Types;
using core::RegisterObject;

Expand All @@ -58,13 +56,13 @@ using core::RegisterObject;
////////////////////////////////////////////////////////////////////////////////////////////////////

//TODO(dmarchal 2017-06-01): Il faut remplacer les descriptions dans RegisterObject par un vrai description
static int AdaptiveBeamControllerClass = RegisterObject("Adaptive beam controller")
int AdaptiveBeamControllerClass = RegisterObject("Adaptive beam controller")
.add< AdaptiveBeamController<Rigid3Types> >()
;

template class SOFA_BEAMADAPTER_API AdaptiveBeamController<Rigid3Types>;


} // namespace sofa::component::controller::_adaptivebeamcontroller_
} // namespace sofa::component::controller


Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include <BeamAdapter/component/BeamInterpolation.h>
#include <sofa/component/topology/container/dynamic/EdgeSetGeometryAlgorithms.h>
#include <sofa/component/topology/container/dynamic/EdgeSetTopologyModifier.h>
#include <BeamAdapter/config.h>

////////////////////////////////////////////////////////////////////////////////////////////////////
/// Declarations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
******************************************************************************/
#define SOFA_PLUGIN_BEAMADAPTER_ACTIONCONTROLLER_CPP

#include <BeamAdapter/config.h>
#include <sofa/core/ObjectFactory.h>
#include <sofa/defaulttype/VecTypes.h>
#include <sofa/defaulttype/RigidTypes.h>

#include <BeamAdapter/config.h>
#include <BeamAdapter/component/controller/BeamAdapterActionController.inl>

namespace sofa::component::controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
//
#define SOFA_PLUGIN_BEAMADAPTER_INTERVENTIONALRADIOCONTROLLER_CPP

#include <BeamAdapter/config.h>
#include <sofa/core/ObjectFactory.h>
#include <sofa/defaulttype/VecTypes.h>
#include <sofa/defaulttype/RigidTypes.h>

#include <BeamAdapter/config.h>
#include <BeamAdapter/component/controller/InterventionalRadiologyController.inl>


Expand Down
1 change: 1 addition & 0 deletions src/BeamAdapter/component/controller/SutureController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
//
#define SOFA_PLUGIN_BEAMADAPTER_SUTURECONTROLLER_CPP

#include <BeamAdapter/config.h>
#include <sofa/core/ObjectFactory.h>
#include <sofa/defaulttype/RigidTypes.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

//////////////////////// Inclusion of headers...from wider to narrower/closer //////////////////////
#include <sofa/defaulttype/RigidTypes.h>
#include <BeamAdapter/config.h>
#include <sofa/core/ObjectFactory.h>

#include <BeamAdapter/component/forcefield/AdaptiveBeamForceFieldAndMass.inl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

//////////////////////// Inclusion of headers...from wider to narrower/closer //////////////////////
#include <sofa/defaulttype/RigidTypes.h>
#include <BeamAdapter/config.h>
#include <sofa/core/ObjectFactory.h>
#include <BeamAdapter/component/forcefield/AdaptiveInflatableBeamForceField.inl>

Expand Down
1 change: 1 addition & 0 deletions src/BeamAdapter/component/mapping/AdaptiveBeamMapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

//////////////////////// Inclusion of headers...from wider to narrower/closer //////////////////////
#include <sofa/core/behavior/MechanicalState.h>
#include <BeamAdapter/config.h>
#include <sofa/core/ObjectFactory.h>

#include <BeamAdapter/component/mapping/AdaptiveBeamMapping.inl>
Expand Down
1 change: 1 addition & 0 deletions src/BeamAdapter/component/mapping/BeamLengthMapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
//////////////////////// Inclusion of headers...from wider to narrower/closer //////////////////////
#define BEAMADAPTER_BEAMLENGTHMAPPING_CPP
#include <sofa/core/behavior/MechanicalState.h>
#include <BeamAdapter/config.h>
#include <sofa/core/ObjectFactory.h>

#include <BeamAdapter/component/mapping/BeamLengthMapping.inl>
Expand Down

0 comments on commit 4fd8586

Please sign in to comment.