Skip to content

Commit

Permalink
Add missing IGNITION_GAZEBO_VISIBLE macros (#563)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero authored and chapulina committed Jul 30, 2021
1 parent b136542 commit a765146
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
9 changes: 6 additions & 3 deletions include/ignition/gazebo/Conversions.hh
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,23 @@ namespace ignition
/// to the values contained in a sdf::Noise object.
/// \param[out] _msg SensorNoise message to set.
/// \param[in] _sdf SDF Noise object.
void set(msgs::SensorNoise *_msg, const sdf::Noise &_sdf);
void IGNITION_GAZEBO_VISIBLE
set(msgs::SensorNoise *_msg, const sdf::Noise &_sdf);

/// \brief Helper function that sets a mutable msgs::WorldStatistics object
/// to the values contained in a gazebo::UpdateInfo object.
/// \param[out] _msg WorldStatistics message to set.
/// \param[in] _in UpdateInfo object.
void set(msgs::WorldStatistics *_msg, const UpdateInfo &_in);
void IGNITION_GAZEBO_VISIBLE
set(msgs::WorldStatistics *_msg, const UpdateInfo &_in);

/// \brief Helper function that sets a mutable msgs::Time object
/// to the values contained in a std::chrono::steady_clock::duration
/// object.
/// \param[out] _msg Time message to set.
/// \param[in] _in Chrono duration object.
void set(msgs::Time *_msg, const std::chrono::steady_clock::duration &_in);
void IGNITION_GAZEBO_VISIBLE
set(msgs::Time *_msg, const std::chrono::steady_clock::duration &_in);

/// \brief Generic conversion from an SDF geometry to another type.
/// \param[in] _in SDF geometry.
Expand Down
2 changes: 1 addition & 1 deletion include/ignition/gazebo/ServerConfig.hh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace ignition
/// type and name, but it can't tell apart multiple entities with the same
/// name in different parts of the entity tree.
/// \sa const std::list<PluginInfo> &Plugins() const
public: class PluginInfo
public: class IGNITION_GAZEBO_VISIBLE PluginInfo
{
/// \brief Default constructor.
public: PluginInfo();
Expand Down
1 change: 1 addition & 0 deletions src/Conversions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
#include <string>

#include "ignition/gazebo/Conversions.hh"
#include "ignition/gazebo/Export.hh"
#include "ignition/gazebo/Util.hh"

using namespace ignition;
Expand Down
2 changes: 1 addition & 1 deletion src/LevelManager.hh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ namespace ignition
/// when the level is reloaded. Likewise, they should not be deleted.
/// * Entities spawned during simulation are part of the default level.
///
class LevelManager
class IGNITION_GAZEBO_VISIBLE LevelManager
{
/// \brief Constructor
/// \param[in] _runner A pointer to the simulationrunner that owns this
Expand Down
4 changes: 4 additions & 0 deletions src/SdfGenerator.hh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ namespace sdf_generator
/// \input[in] _config Configuration for the world generator
/// \returns Generated world string if generation succeeded.
/// Otherwise, nullopt
IGNITION_GAZEBO_VISIBLE
std::optional<std::string> generateWorld(
const EntityComponentManager &_ecm, const Entity &_entity,
const IncludeUriMap &_includeUriMap = IncludeUriMap(),
Expand All @@ -56,6 +57,7 @@ namespace sdf_generator
/// \input[in] _includeUriMap Map from file paths to URIs used to preserve
/// included Fuel models
/// \input[in] _config Configuration for the world generator
IGNITION_GAZEBO_VISIBLE
bool updateWorldElement(
sdf::ElementPtr _elem,
const EntityComponentManager &_ecm, const Entity &_entity,
Expand All @@ -68,6 +70,7 @@ namespace sdf_generator
/// \input[in] _ecm Immutable reference to the Entity Component Manager
/// \input[in] _entity Model entity
/// \returns true if update succeeded.
IGNITION_GAZEBO_VISIBLE
bool updateModelElement(const sdf::ElementPtr &_elem,
const EntityComponentManager &_ecm,
const Entity &_entity);
Expand All @@ -79,6 +82,7 @@ namespace sdf_generator
/// \input[in] _entity Entity of included resource
/// \input[in] _uri Uri of the resource
/// \returns true if update succeeded.
IGNITION_GAZEBO_VISIBLE
bool updateIncludeElement(const sdf::ElementPtr &_elem,
const EntityComponentManager &_ecm,
const Entity &_entity, const std::string &_uri);
Expand Down

0 comments on commit a765146

Please sign in to comment.