Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
dynamic-graph
Commits
218a15d4
Commit
218a15d4
authored
Nov 02, 2010
by
Thomas Moulard
Browse files
Fix visibility management for all plug-ins.
parent
d059b963
Changes
6
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
218a15d4
...
...
@@ -34,6 +34,19 @@ SET(CXX_DISABLE_WERROR True)
SETUP_PROJECT
()
# Add configuration headers for plug-ins.
GENERATE_CONFIGURATION_HEADER
(
${
HEADER_DIR
}
config-tracer.hh DG_TRACER tracer_EXPORTS
)
GENERATE_CONFIGURATION_HEADER
(
${
HEADER_DIR
}
config-tracer-real-time.hh DG_TRACERREALTIME tracer_real_time_EXPORTS
)
GENERATE_CONFIGURATION_HEADER
(
${
HEADER_DIR
}
config-shell-procedure.hh DG_SHELLPROCEDURE shell_procedure_EXPORTS
)
GENERATE_CONFIGURATION_HEADER
(
${
HEADER_DIR
}
config-contiifstream.hh DG_CONTIIFSTREAM contiifstream_EXPORTS
)
# FIXME: to be changed into lib/dynamic-graph
# to avoid name collision when installing dynamic-graph in /usr.
SET
(
PLUGINDIR
"lib/plugin"
)
...
...
cmake
@
1d7db7da
Compare
fe203dff
...
1d7db7da
Subproject commit
fe203dff78ea6e7db58b1d8df8152495f34cb079
Subproject commit
1d7db7da015ea4d25d6710bad4493b35ce3b05f6
include/dynamic-graph/contiifstream.h
View file @
218a15d4
...
...
@@ -30,33 +30,21 @@
#include
<fstream>
#include
<sstream>
#ifndef WIN32
#include
<unistd.h>
#
include <unistd.h>
#endif
#include
<list>
#include
<dynamic-graph/interpreter.h>
#include
<dynamic-graph/config-contiifstream.hh>
#ifndef WIN32
#include
<pthread.h>
#endif
/* --------------------------------------------------------------------- */
/* --- API ------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
#if defined (WIN32)
# if defined (contiifstream_EXPORTS)
# define DYNAMICGRAPHCONTIIFSTREAM_EXPORT __declspec(dllexport)
# else
# define DYNAMICGRAPHCONTIIFSTREAM_EXPORT __declspec(dllimport)
# endif
#else
# define DYNAMICGRAPHCONTIIFSTREAM_EXPORT
# include <pthread.h>
#endif
namespace
dynamicgraph
{
/* --------------------------------------------------------------------- */
/* --- CLASS ----------------------------------------------------------- */
/* --------------------------------------------------------------------- */
class
D
YNAMICGRAPH
CONTIIFSTREAM_
EXPORT
Contiifstream
class
D
G_
CONTIIFSTREAM_
DLLAPI
Contiifstream
{
protected:
std
::
string
filename
;
...
...
include/dynamic-graph/shell-procedure.h
View file @
218a15d4
...
...
@@ -28,6 +28,7 @@
/* DYNAMIC-GRAPH */
#include
<dynamic-graph/exception-factory.h>
#include
<dynamic-graph/interpreter.h>
#include
<dynamic-graph/config-shell-procedure.hh>
/* --- STD --- */
#include
<string>
...
...
@@ -40,20 +41,6 @@
#include
<boost/function.hpp>
#include
<boost/bind.hpp>
/* --------------------------------------------------------------------- */
/* --- API ------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
#if defined (WIN32)
# if defined (shell_procedure_EXPORTS)
# define ShellProcedure_EXPORT __declspec(dllexport)
# else
# define ShellProcedure_EXPORT __declspec(dllimport)
# endif
#else
# define ShellProcedure_EXPORT
#endif
/* --------------------------------------------------------------------- */
/* --- CLASS ----------------------------------------------------------- */
/* --------------------------------------------------------------------- */
...
...
@@ -64,7 +51,7 @@
For more information, load the plugin and type help on a sot shell.
*/
class
ShellProcedure_EXPORT
ShellProcedure
class
DG_SHELLPROCEDURE_DLLAPI
ShellProcedure
{
public:
struct
Instruction
...
...
include/dynamic-graph/tracer-real-time.h
View file @
218a15d4
...
...
@@ -30,20 +30,7 @@
/* DG */
#include
<dynamic-graph/tracer.h>
/* --------------------------------------------------------------------- */
/* --- API ------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
#if defined (WIN32)
# if defined (tracer_real_time_EXPORTS)
# define DGTRACERREALTIME_EXPORT __declspec(dllexport)
# else
# define DGTRACERREALTIME_EXPORT __declspec(dllimport)
# endif
#else
# define DGTRACERREALTIME_EXPORT
#endif
#include
<dynamic-graph/config-tracer-real-time.hh>
/* --------------------------------------------------------------------- */
/* --- TRACER ---------------------------------------------------------- */
...
...
@@ -51,7 +38,7 @@
namespace
dynamicgraph
{
class
DGTRACERREALTIME_
EXPORT
OutStringStream
class
DG
_
TRACERREALTIME_
DLLAPI
OutStringStream
:
public
std
::
ostringstream
{
public:
...
...
@@ -73,7 +60,7 @@ public:
};
class
DGTRACERREALTIME_
EXPORT
TracerRealTime
class
DG
_
TRACERREALTIME_
DLLAPI
TracerRealTime
:
public
Tracer
{
public:
...
...
@@ -108,7 +95,8 @@ class DGTRACERREALTIME_EXPORT TracerRealTime
/* --- DISPLAY ------------------------------------------------------------ */
void
display
(
std
::
ostream
&
os
)
const
;
DGTRACERREALTIME_EXPORT
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
TracerRealTime
&
t
);
DG_TRACERREALTIME_DLLAPI
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
TracerRealTime
&
t
);
/* --- PARAMS --- */
virtual
void
commandLine
(
const
std
::
string
&
cmdLine
...
...
@@ -121,5 +109,3 @@ class DGTRACERREALTIME_EXPORT TracerRealTime
#endif
/* #ifndef __TRACER_RT_H__ */
include/dynamic-graph/tracer.h
View file @
218a15d4
...
...
@@ -37,19 +37,7 @@
#include
<dynamic-graph/entity.h>
#include
<dynamic-graph/exception-traces.h>
/* --------------------------------------------------------------------- */
/* --- API ------------------------------------------------------------- */
/* --------------------------------------------------------------------- */
#if defined (WIN32)
# if defined (tracer_EXPORTS)
# define DGTRACER_EXPORT __declspec(dllexport)
# else
# define DGTRACER_EXPORT __declspec(dllimport)
# endif
#else
# define DGTRACER_EXPORT
#endif
#include
<dynamic-graph/config-tracer.hh>
/* --------------------------------------------------------------------- */
/* --- TRACER ---------------------------------------------------------- */
...
...
@@ -57,8 +45,7 @@
namespace
dynamicgraph
{
class
DGTRACER_EXPORT
Tracer
:
public
Entity
class
DG_TRACER_DLLAPI
Tracer
:
public
Entity
{
protected:
typedef
std
::
list
<
const
SignalBase
<
int
>*
>
SignalList
;
...
...
@@ -126,7 +113,8 @@ class DGTRACER_EXPORT Tracer
SignalTimeDependent
<
int
,
int
>
triger
;
/* --- DISPLAY ------------------------------------------------------------ */
DGTRACER_EXPORT
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Tracer
&
t
);
DG_TRACER_DLLAPI
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Tracer
&
t
);
/* --- PARAMS --- */
void
display
(
std
::
ostream
&
os
)
const
;
...
...
@@ -140,5 +128,3 @@ class DGTRACER_EXPORT Tracer
#endif
/* #ifndef __TRACER_H__ */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment