Skip to content

Commit

Permalink
Merge pull request #1565 from NREL/BIMDataHub
Browse files Browse the repository at this point in the history
Merging pull request from @zhouchong90 and adding IFC import, nice job!
  • Loading branch information
macumber committed Mar 31, 2015
2 parents fa54c93 + a39ce2a commit b567fe4
Show file tree
Hide file tree
Showing 23 changed files with 1,651 additions and 56 deletions.
2 changes: 2 additions & 0 deletions openstudiocore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ set(project_directories
energyplus
radiance
gbxml
bimserver
airflow
isomodel
osversion
Expand Down Expand Up @@ -935,6 +936,7 @@ set(all_lib_targets
openstudio_analysis
openstudio_radiance
openstudio_gbxml
openstudio_bimserver
openstudio_isomodel
openstudio_lib
openstudio_sdd
Expand Down
20 changes: 20 additions & 0 deletions openstudiocore/resources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,26 @@ add_custom_target(openstudio_isomodel_resources
)

CREATE_SRC_GROUPS("${isomodel_resources_src}")

########################################################
# bimserver resources
# clear runs, calls to RUN_ENERGYPLUS will populate this
set(ENERGYPLUS_OUTPUTS "")

set(bimserver_resources_src
)

# update the resources
UPDATE_RESOURCES("${bimserver_resources_src}")

# add target
add_custom_target(openstudio_bimserver_resources
DEPENDS ${bimserver_resources_src} ${ENERGYPLUS_OUTPUTS}
SOURCES ${bimserver_resources_src}
)

CREATE_SRC_GROUPS("${bimserver_resources_src}")

########################################################
# CONTAM resources
# clear runs, calls to RUN_ENERGYPLUS will populate this
Expand Down
33 changes: 33 additions & 0 deletions openstudiocore/src/bimserver/BIMServer.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#ifndef BIMSERVER_I
#define BIMSERVER_I

#ifdef SWIGPYTHON
%module openstudiobimserver
#endif


#define UTILITIES_API
#define BIMSERVER_API

%include <utilities/core/CommonInclude.i>
%import <utilities/core/CommonImport.i>
%import <utilities/Utilities.i>
%import <model/Model.i>

%{
#include <bimserver/ProjectImportation.hpp>
using namespace openstudio::bimserver;
using namespace openstudio;

#include <model/Model.hpp>
#include <model/ModelObject.hpp>

%}

// #ifdef SWIGCSHARP
%rename(BIMserverProjectImportation) openstudio::bimserver::ProjectImportation;
// #endif

%include bimserver/ProjectImportation.hpp>

#endif //BIMSERVER_I
15 changes: 15 additions & 0 deletions openstudiocore/src/bimserver/BIMserverAPI.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#ifndef BIMSERVER_BIMSERVERAPI_HPP
#define BIMSERVER_BIMSERVERAPI_HPP

#if _WIN32 || _MSC_VER

#ifdef openstudio_bimserver_EXPORTS
#define BIMSERVER_API __declspec(dllexport)
#else
#define BIMSERVER_API __declspec(dllimport)
#endif
#else
#define BIMSERVER_API
#endif

#endif
Loading

5 comments on commit b567fe4

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

develop (macumber) - x86_64-MacOS-10.9-clang: Tests Failed

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

develop (macumber) - x86_64-Linux-Ubuntu-14.04-clang-3.5: OK (2102 of 2196 tests passed)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

develop (macumber) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed)

Build Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

develop (macumber) - Win64-Windows-7-VisualStudio-12: OK (2175 of 2196 tests passed)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

develop (macumber) - i386-Windows-7-VisualStudio-12: OK (2176 of 2196 tests passed)

Build Badge Test Badge

Please sign in to comment.