Orthogonal Array Library  1.0.0
Libray for generating orthogonal arrays based on Art Owen's oa library
All Classes Namespaces Files Functions Variables Typedefs Macros Pages
OACommonDefines.h File Reference
#include <exception>
#include <string>
#include <vector>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <stdexcept>
#include <sstream>
#include <iostream>
#include <numeric>
#include "RWarningException.h"

Go to the source code of this file.

Namespaces

 oacpp
 Orthogonal Array Namespace.
 

Macros

#define PRINT_OUTPUT   std::cout
 A print macro to enable printing with or without R.
 
#define PRINT_WARNINGS   true
 A macro to determine if warnings are printed or thrown as runtime_error.
 
#define RANGE_DEBUG
 if NDEBUG is not defined, then debug mode is likely enabled
 
#define SUCCESS_CHECK   1
 When a method returns an int to indicate success.
 
#define FAILURE_CHECK   0
 When a method returns an int to indicate failure.
 
#define UNCHECKED_RETURN   0
 When a method returns an int which is not normally checked.
 

Functions

void oacpp::ostringstream_runtime_error (const std::ostringstream &msg)
 throw a runtime_error with a stringstream message More...
 
void oacpp::ostringstream_warning (const std::ostringstream &msg)
 throw a warning with a streamstring message More...
 

Detailed Description

Author
Robert Carnell

License: GNU Lesser General Public License (LGPL v3) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Reference: