Skip to content

Commit

Permalink
Adding export macro for python to MF33 components
Browse files Browse the repository at this point in the history
  • Loading branch information
whaeck committed Mar 13, 2024
1 parent b03de18 commit 0d3a1df
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/ENDFtk/section/33.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <variant>

// other includes
#include "ENDFtk/macros.hpp"
#include "range/v3/range/conversion.hpp"
#include "range/v3/view/all.hpp"
#include "range/v3/view/concat.hpp"
Expand All @@ -28,7 +29,7 @@ namespace section{
* See ENDF102, section 33.2 for more information.
*/
template<>
class Type< 33 > : protected Base {
class PYTHON_EXPORT Type< 33 > : protected Base {

/* fields */
int mtl_;
Expand Down
3 changes: 2 additions & 1 deletion src/ENDFtk/section/CovariancePairs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// system includes

// other includes
#include "ENDFtk/macros.hpp"
#include "range/v3/view/drop_exactly.hpp"
#include "range/v3/view/take_exactly.hpp"
#include "range/v3/view/stride.hpp"
Expand All @@ -19,7 +20,7 @@ namespace section{
*
* See ENDF102, section 33.2 for more information.
*/
class CovariancePairs : protected ListRecord {
class PYTHON_EXPORT CovariancePairs : protected ListRecord {

#include "ENDFtk/section/CovariancePairs/src/verifyLB.hpp"
#include "ENDFtk/section/CovariancePairs/src/verifySize.hpp"
Expand Down
3 changes: 2 additions & 1 deletion src/ENDFtk/section/DerivedRatioToStandard.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// system includes

// other includes
#include "ENDFtk/macros.hpp"
#include "range/v3/view/drop_exactly.hpp"
#include "range/v3/view/stride.hpp"
#include "ENDFtk/ControlRecord.hpp"
Expand All @@ -19,7 +20,7 @@ namespace section{
*
* See ENDF102, section 33.2 for more information.
*/
class DerivedRatioToStandard {
class PYTHON_EXPORT DerivedRatioToStandard {

/* fields */
int lty_;
Expand Down
3 changes: 2 additions & 1 deletion src/ENDFtk/section/DerivedRedundant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// system includes

// other includes
#include "ENDFtk/macros.hpp"
#include "range/v3/view/drop_exactly.hpp"
#include "range/v3/view/stride.hpp"
#include "ENDFtk/ControlRecord.hpp"
Expand All @@ -19,7 +20,7 @@ namespace section{
*
* See ENDF102, section 33.2 for more information.
*/
class DerivedRedundant {
class PYTHON_EXPORT DerivedRedundant {

/* fields */
ListRecord list_;
Expand Down
3 changes: 2 additions & 1 deletion src/ENDFtk/section/ReactionBlock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <vector>

// other includes
#include "ENDFtk/macros.hpp"
#include "range/v3/view/all.hpp"
#include "ENDFtk/section/CovariancePairs.hpp"
#include "ENDFtk/section/SquareMatrix.hpp"
Expand All @@ -29,7 +30,7 @@ namespace section{
*
* See ENDF102, section 33.2 for more information.
*/
class ReactionBlock {
class PYTHON_EXPORT ReactionBlock {

/* fields */
int xmf1_;
Expand Down
3 changes: 2 additions & 1 deletion src/ENDFtk/section/RectangularMatrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// system includes

// other includes
#include "ENDFtk/macros.hpp"
#include "range/v3/range/conversion.hpp"
#include "range/v3/view/concat.hpp"
#include "range/v3/view/drop_exactly.hpp"
Expand All @@ -20,7 +21,7 @@ namespace section{
*
* See ENDF102, section 33.2 for more information.
*/
class RectangularMatrix : protected ListRecord {
class PYTHON_EXPORT RectangularMatrix : protected ListRecord {

#include "ENDFtk/section/RectangularMatrix/src/verifyLB.hpp"
#include "ENDFtk/section/RectangularMatrix/src/verifySize.hpp"
Expand Down
3 changes: 2 additions & 1 deletion src/ENDFtk/section/SquareMatrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// system includes

// other includes
#include "ENDFtk/macros.hpp"
#include "range/v3/range/conversion.hpp"
#include "range/v3/view/concat.hpp"
#include "range/v3/view/drop_exactly.hpp"
Expand All @@ -20,7 +21,7 @@ namespace section{
*
* See ENDF102, section 33.2 for more information.
*/
class SquareMatrix : protected ListRecord {
class PYTHON_EXPORT SquareMatrix : protected ListRecord {

#include "ENDFtk/section/SquareMatrix/src/verifyLB.hpp"
#include "ENDFtk/section/SquareMatrix/src/verifySize.hpp"
Expand Down

0 comments on commit 0d3a1df

Please sign in to comment.