Skip to content

Commit a765146

Browse files
j-riverochapulina
authored andcommitted
Add missing IGNITION_GAZEBO_VISIBLE macros (#563)
Signed-off-by: Jose Luis Rivero <[email protected]>
1 parent b136542 commit a765146

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

include/ignition/gazebo/Conversions.hh

+6-3
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,23 @@ namespace ignition
6565
/// to the values contained in a sdf::Noise object.
6666
/// \param[out] _msg SensorNoise message to set.
6767
/// \param[in] _sdf SDF Noise object.
68-
void set(msgs::SensorNoise *_msg, const sdf::Noise &_sdf);
68+
void IGNITION_GAZEBO_VISIBLE
69+
set(msgs::SensorNoise *_msg, const sdf::Noise &_sdf);
6970

7071
/// \brief Helper function that sets a mutable msgs::WorldStatistics object
7172
/// to the values contained in a gazebo::UpdateInfo object.
7273
/// \param[out] _msg WorldStatistics message to set.
7374
/// \param[in] _in UpdateInfo object.
74-
void set(msgs::WorldStatistics *_msg, const UpdateInfo &_in);
75+
void IGNITION_GAZEBO_VISIBLE
76+
set(msgs::WorldStatistics *_msg, const UpdateInfo &_in);
7577

7678
/// \brief Helper function that sets a mutable msgs::Time object
7779
/// to the values contained in a std::chrono::steady_clock::duration
7880
/// object.
7981
/// \param[out] _msg Time message to set.
8082
/// \param[in] _in Chrono duration object.
81-
void set(msgs::Time *_msg, const std::chrono::steady_clock::duration &_in);
83+
void IGNITION_GAZEBO_VISIBLE
84+
set(msgs::Time *_msg, const std::chrono::steady_clock::duration &_in);
8285

8386
/// \brief Generic conversion from an SDF geometry to another type.
8487
/// \param[in] _in SDF geometry.

include/ignition/gazebo/ServerConfig.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace ignition
4949
/// type and name, but it can't tell apart multiple entities with the same
5050
/// name in different parts of the entity tree.
5151
/// \sa const std::list<PluginInfo> &Plugins() const
52-
public: class PluginInfo
52+
public: class IGNITION_GAZEBO_VISIBLE PluginInfo
5353
{
5454
/// \brief Default constructor.
5555
public: PluginInfo();

src/Conversions.cc

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
#include <string>
6262

6363
#include "ignition/gazebo/Conversions.hh"
64+
#include "ignition/gazebo/Export.hh"
6465
#include "ignition/gazebo/Util.hh"
6566

6667
using namespace ignition;

src/LevelManager.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ namespace ignition
7474
/// when the level is reloaded. Likewise, they should not be deleted.
7575
/// * Entities spawned during simulation are part of the default level.
7676
///
77-
class LevelManager
77+
class IGNITION_GAZEBO_VISIBLE LevelManager
7878
{
7979
/// \brief Constructor
8080
/// \param[in] _runner A pointer to the simulationrunner that owns this

src/SdfGenerator.hh

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ namespace sdf_generator
4444
/// \input[in] _config Configuration for the world generator
4545
/// \returns Generated world string if generation succeeded.
4646
/// Otherwise, nullopt
47+
IGNITION_GAZEBO_VISIBLE
4748
std::optional<std::string> generateWorld(
4849
const EntityComponentManager &_ecm, const Entity &_entity,
4950
const IncludeUriMap &_includeUriMap = IncludeUriMap(),
@@ -56,6 +57,7 @@ namespace sdf_generator
5657
/// \input[in] _includeUriMap Map from file paths to URIs used to preserve
5758
/// included Fuel models
5859
/// \input[in] _config Configuration for the world generator
60+
IGNITION_GAZEBO_VISIBLE
5961
bool updateWorldElement(
6062
sdf::ElementPtr _elem,
6163
const EntityComponentManager &_ecm, const Entity &_entity,
@@ -68,6 +70,7 @@ namespace sdf_generator
6870
/// \input[in] _ecm Immutable reference to the Entity Component Manager
6971
/// \input[in] _entity Model entity
7072
/// \returns true if update succeeded.
73+
IGNITION_GAZEBO_VISIBLE
7174
bool updateModelElement(const sdf::ElementPtr &_elem,
7275
const EntityComponentManager &_ecm,
7376
const Entity &_entity);
@@ -79,6 +82,7 @@ namespace sdf_generator
7982
/// \input[in] _entity Entity of included resource
8083
/// \input[in] _uri Uri of the resource
8184
/// \returns true if update succeeded.
85+
IGNITION_GAZEBO_VISIBLE
8286
bool updateIncludeElement(const sdf::ElementPtr &_elem,
8387
const EntityComponentManager &_ecm,
8488
const Entity &_entity, const std::string &_uri);

0 commit comments

Comments
 (0)