- 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.
///
/// \see Environment
class ConcreteEnvironment : public Environment
class SG_DLLLOCAL ConcreteEnvironment : public Environment
{
public:

View File

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

View File

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

View File

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

View File

@ -40,7 +40,7 @@ namespace sgpem
* Objects of type DynamicSchedulable are created by the Scheduler and are
* 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:
/** \brief Object constructor */

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -24,7 +24,12 @@
#include "config.h"
#include <sstream>
#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.