- Fix visibility outside the DSO

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@691 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-07-02 15:38:38 +00:00
parent b8f7083bfc
commit 55c6b23d31
16 changed files with 26 additions and 22 deletions

View File

@ -43,7 +43,7 @@ namespace sgpem
/// in the Environment class. /// in the Environment class.
/// ///
/// \see Environment /// \see Environment
class ConcreteEnvironment : public Environment class SG_DLLLOCAL ConcreteEnvironment : public Environment
{ {
public: public:

View File

@ -36,7 +36,7 @@ namespace sgpem
class DynamicThread; class DynamicThread;
class Thread; class Thread;
class SG_DLLEXPORT DynamicProcess : public DynamicSchedulable, public Process class SG_DLLLOCAL DynamicProcess : public DynamicSchedulable, public Process
{ {
public: public:
DynamicProcess(StaticProcess* core); DynamicProcess(StaticProcess* core);

View File

@ -38,7 +38,7 @@ namespace sgpem
class SubRequest; class SubRequest;
class DynamicSubRequest; class DynamicSubRequest;
class DynamicRequest : public Request class SG_DLLLOCAL DynamicRequest : public Request
{ {
public: public:
DynamicRequest(StaticRequest *core, DynamicThread* owner); DynamicRequest(StaticRequest *core, DynamicThread* owner);

View File

@ -34,7 +34,7 @@ namespace sgpem
class SerializeVisitor; class SerializeVisitor;
class StaticResource; class StaticResource;
class DynamicResource : public Resource class SG_DLLLOCAL DynamicResource : public Resource
{ {
public: public:
DynamicResource(StaticResource *core); DynamicResource(StaticResource *core);

View File

@ -40,7 +40,7 @@ namespace sgpem
* Objects of type DynamicSchedulable are created by the Scheduler and are * Objects of type DynamicSchedulable are created by the Scheduler and are
* destroyed by SimulationStatus if they are linked to it or by the Scheduler. * destroyed by SimulationStatus if they are linked to it or by the Scheduler.
*/ */
class SG_DLLEXPORT DynamicSchedulable : public virtual Schedulable class SG_DLLLOCAL DynamicSchedulable : public virtual Schedulable
{ {
public: public:
/** \brief Object constructor */ /** \brief Object constructor */

View File

@ -35,7 +35,7 @@ namespace sgpem
class Resource; class Resource;
class StaticSubRequest; class StaticSubRequest;
class DynamicSubRequest : public SubRequest class SG_DLLLOCAL DynamicSubRequest : public SubRequest
{ {
public: public:
DynamicSubRequest(StaticSubRequest* core, DynamicResource* resource); DynamicSubRequest(StaticSubRequest* core, DynamicResource* resource);

View File

@ -40,7 +40,7 @@ namespace sgpem
class Request; class Request;
class DynamicRequest; class DynamicRequest;
class SG_DLLEXPORT DynamicThread : public DynamicSchedulable, public Thread class SG_DLLLOCAL DynamicThread : public DynamicSchedulable, public Thread
{ {
public: public:
DynamicThread(StaticThread* core, DynamicProcess* parent); DynamicThread(StaticThread* core, DynamicProcess* parent);

View File

@ -31,7 +31,6 @@
namespace sgpem namespace sgpem
{ {
/** \brief The interface a specific plugin should implement /** \brief The interface a specific plugin should implement
* *
* Only the header file containing this interface * Only the header file containing this interface
@ -47,13 +46,13 @@ namespace sgpem
* Sets up the plugin's initial state and * Sets up the plugin's initial state and
* performs needed actions before its usage can start. * performs needed actions before its usage can start.
*/ */
static void on_init(); static void SG_DLLEXPORT on_init();
static void on_exit(); static void SG_DLLEXPORT on_exit();
static Glib::ustring describe(); static Glib::ustring SG_DLLEXPORT describe();
static Glib::ustring get_name(); static Glib::ustring SG_DLLEXPORT get_name();
static Glib::ustring get_author(); static Glib::ustring SG_DLLEXPORT get_author();
static float get_version(); static float SG_DLLEXPORT get_version();
private: private:
SG_DLLLOCAL Plugin(); SG_DLLLOCAL Plugin();

View File

@ -30,7 +30,7 @@
namespace sgpem namespace sgpem
{ {
class PolicyParametersException : public std::runtime_error class SG_DLLEXPORT PolicyParametersException : public std::runtime_error
{ {
public: public:
PolicyParametersException(char* msg): std::runtime_error(msg) {}}; PolicyParametersException(char* msg): std::runtime_error(msg) {}};

View File

@ -35,7 +35,7 @@ namespace sgpem
It IS a Schedulable object. It IS a Schedulable object.
*/ */
class SG_DLLEXPORT StaticProcess : public StaticSchedulable class SG_DLLLOCAL StaticProcess : public StaticSchedulable
{ {
public: public:
/** \brief Creates a new object with the given parameters. */ /** \brief Creates a new object with the given parameters. */

View File

@ -30,7 +30,7 @@ namespace sgpem
class SerializeVisitor; class SerializeVisitor;
class StaticThread; class StaticThread;
class StaticRequest class SG_DLLLOCAL StaticRequest
{ {
public: public:
StaticRequest(StaticThread* thread, unsigned int instant); StaticRequest(StaticThread* thread, unsigned int instant);

View File

@ -29,7 +29,7 @@ namespace sgpem
class StaticResource; class StaticResource;
class SerializeVisitor; class SerializeVisitor;
class StaticResource class SG_DLLLOCAL StaticResource
{ {
public: public:
StaticResource(const Glib::ustring& name, unsigned int places = 1); StaticResource(const Glib::ustring& name, unsigned int places = 1);

View File

@ -38,7 +38,7 @@ namespace sgpem
* *
* \see DynamicSchedulable * \see DynamicSchedulable
*/ */
class SG_DLLEXPORT StaticSchedulable class SG_DLLLOCAL StaticSchedulable
{ {
public: public:
/** \brief Create a new object with the given parameters */ /** \brief Create a new object with the given parameters */

View File

@ -29,7 +29,7 @@ namespace sgpem
class StaticRequest; class StaticRequest;
class StaticResource; class StaticResource;
class StaticSubRequest class SG_DLLLOCAL StaticSubRequest
{ {
public: public:
StaticSubRequest(StaticRequest* req, StaticSubRequest(StaticRequest* req,

View File

@ -34,7 +34,7 @@ namespace sgpem
class StaticProcess; class StaticProcess;
class StaticRequest; class StaticRequest;
class SG_DLLEXPORT StaticThread : public StaticSchedulable class SG_DLLLOCAL StaticThread : public StaticSchedulable
{ {
public: public:
StaticThread(const Glib::ustring& name, StaticThread(const Glib::ustring& name,

View File

@ -24,7 +24,12 @@
#include "config.h" #include "config.h"
#include <sstream> #include <sstream>
#include <iostream> #include <iostream>
#include "glibmm/ustring.h" #include <glibmm/ustring.h>
// FIXME : mark this file as deprecated.
#warning "This file is obsolete and deprecated."
#warning "It will be removed soon. Please update your code!"
/**\brief This function tries to convert a string into an integer value. /**\brief This function tries to convert a string into an integer value.