Orthogonal Array Library
1.0.0
Libray for generating orthogonal arrays based on Art Owen's oa library
|
Go to the documentation of this file.
25 #ifndef OACOMMONDEFINES_H
26 #define OACOMMONDEFINES_H
39 #include "RWarningException.h"
46 #define PRINT_OUTPUT Rcpp::Rcout
50 #define PRINT_WARNINGS false
55 #define PRINT_OUTPUT std::cout
59 #define PRINT_WARNINGS true
74 #define SUCCESS_CHECK 1
78 #define FAILURE_CHECK 0
82 #define UNCHECKED_RETURN 0
95 const std::string smsg = msg.str();
96 throw std::runtime_error(smsg.c_str());
106 const std::string smsg = msg.str();
114 throw bclib::RWarningException(smsg);
#define PRINT_OUTPUT
A print macro to enable printing with or without R.
Definition: OACommonDefines.h:55
void ostringstream_runtime_error(const std::ostringstream &msg)
throw a runtime_error with a stringstream message
Definition: OACommonDefines.h:93
Orthogonal Array Namespace.
Definition: ak.h:39
#define PRINT_WARNINGS
A macro to determine if warnings are printed or thrown as runtime_error.
Definition: OACommonDefines.h:59
void ostringstream_warning(const std::ostringstream &msg)
throw a warning with a streamstring message
Definition: OACommonDefines.h:104