Skip to content

Commit

Permalink
Ignore JSON stuff for C#
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Aug 24, 2023
1 parent b0f08cb commit 5e33131
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/utilities/core/jsoncpp.i
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#define JSONCPP_I

#if defined SWIGCSHARP
%ignore openstudio::*::toJSON() const;
// ignores toJSON/fromJSON globally
%rename("$ignore", regextarget=1, fullname=1) "openstudio::.*::toJSON$";
%rename("$ignore", regextarget=1, fullname=1) "openstudio::.*::fromJSON$";
#else
%{
#include <json/value.h>
Expand Down
5 changes: 4 additions & 1 deletion src/utilities/filetypes/Filetypes.i
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@
%ignore openstudio::WorkflowStepValue::WorkflowStepValue(std::string const&, char const*);
%ignore openstudio::MeasureStep::setArgument(std::string const&, char const*);

// Ignore Json::Value return type
// Ignore Json::Value return type (toJSON / fromJSON are globally ignored already)
%ignore openstudio::StandardsJSON::getPrimaryKey;

%ignore openstudio::CustomOutputAdapter::CustomOutputAdapter;
%ignore openstudio::CustomOutputAdapter::optionsJSON;

#endif


Expand Down

0 comments on commit 5e33131

Please sign in to comment.