Skip to content

Commit

Permalink
Add JSBSIM_API decoration to new logging classes to export/import fro…
Browse files Browse the repository at this point in the history
…m DLL version
  • Loading branch information
seanmcleod committed Jul 1, 2024
1 parent c867cc7 commit affa85a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/input_output/FGLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ CLASS DOCUMENTATION
CLASS DECLARATION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/

class FGLogger
class JSBSIM_API FGLogger
{
public:
virtual ~FGLogger() {}
Expand All @@ -104,7 +104,7 @@ class FGLogger
LogLevel min_level = LogLevel::INFO;
};

class FGLogging
class JSBSIM_API FGLogging
{
public:
FGLogging(std::shared_ptr<FGLogger> logger, LogLevel level)
Expand All @@ -126,13 +126,13 @@ class FGLogging
std::ostringstream buffer;
};

class FGXMLLogging : public FGLogging
class JSBSIM_API FGXMLLogging : public FGLogging
{
public:
FGXMLLogging(std::shared_ptr<FGLogger> logger, Element* el, LogLevel level);
};

class FGLogConsole : public FGLogger
class JSBSIM_API FGLogConsole : public FGLogger
{
public:
FGLogConsole() : out(std::cout.rdbuf()) {}
Expand Down

0 comments on commit affa85a

Please sign in to comment.