Remove deprecated dynamic exception specifiers.

Resolves #461
This commit is contained in:
Thadeus Fleming 2017-07-28 20:49:42 -05:00
parent 2d345ee06b
commit bf2759c5c0
61 changed files with 81 additions and 81 deletions

View File

@ -15,13 +15,13 @@ namespace Trick {
breakPointArraySizes(BreakPointArraySizes), breakPointArraySizes(BreakPointArraySizes),
nParams(NParams) {}; nParams(NParams) {};
double eval (double param1, ...) throw(std::logic_error) ; double eval (double param1, ...) ;
double eval (double params[]) throw(std::logic_error) ; double eval (double params[]) ;
private: private:
Interpolator(){}; Interpolator(){};
double eval (double param[], unsigned int param_index, unsigned int offset) throw(std::logic_error) ; double eval (double param[], unsigned int param_index, unsigned int offset) ;
// DATA MEMBERS // DATA MEMBERS
double* table; /**< Interpolation data. */ double* table; /**< Interpolation data. */

View File

@ -64,7 +64,7 @@ namespace Trick {
@par NOTE: @par NOTE:
Only one instance of the MemoryManager is allowed to exist per process. Only one instance of the MemoryManager is allowed to exist per process.
*/ */
MemoryManager() throw (std::logic_error) ; MemoryManager() ;
/** /**
Memory Manager destructor. Memory Manager destructor.

View File

@ -17,11 +17,11 @@ class PWM {
PWM( double HighVoltage, PWM( double HighVoltage,
double LowVoltage, double LowVoltage,
double DutyCycle) throw (std::logic_error); double DutyCycle);
~PWM() {} ~PWM() {}
void setDutyCycle( double DutyCycle) throw (std::logic_error); void setDutyCycle( double DutyCycle);
double getDutyCycle() const; double getDutyCycle() const;
double getAverageVoltage() const; double getAverageVoltage() const;

View File

@ -4,14 +4,14 @@
PWM::PWM ( double HighVoltage, PWM::PWM ( double HighVoltage,
double LowVoltage, double LowVoltage,
double DutyCycle) throw (std::logic_error) { double DutyCycle) {
highVoltage = HighVoltage; highVoltage = HighVoltage;
lowVoltage = LowVoltage; lowVoltage = LowVoltage;
setDutyCycle( DutyCycle); setDutyCycle( DutyCycle);
} }
void PWM::setDutyCycle( double DutyCycle) throw (std::logic_error) { void PWM::setDutyCycle( double DutyCycle) {
if (( DutyCycle >= 0.0 ) && ( DutyCycle <= 1.0 )) { if (( DutyCycle >= 0.0 ) && ( DutyCycle <= 1.0 )) {
dutyCycle = DutyCycle; dutyCycle = DutyCycle;
} else { } else {

View File

@ -492,7 +492,7 @@ class FplotArgs {
char* device; char* device;
const char* session_file; const char* session_file;
FplotArgs(int argc, char* argv[]) throw (std::invalid_argument) { FplotArgs(int argc, char* argv[]) {
int ii; int ii;
char* cp ; char* cp ;

View File

@ -9,7 +9,7 @@ DPC_delta_curve::DPC_delta_curve( DPM_curve* Curve_spec,
DPM_run* RUN1, DPM_run* RUN1,
DPM_run* RUN2, DPM_run* RUN2,
DPC_datastream_supplier *ds_supplier, DPC_datastream_supplier *ds_supplier,
DPM_time_constraints *Time_constraints ) throw (std::logic_error) DPM_time_constraints *Time_constraints )
: DPC_curve() : DPC_curve()
{ {

View File

@ -25,7 +25,7 @@ public:
DPM_run* RUN1, DPM_run* RUN1,
DPM_run* RUN2, DPM_run* RUN2,
DPC_datastream_supplier *ds_supplier, DPC_datastream_supplier *ds_supplier,
DPM_time_constraints* Time_constraints ) throw (std::logic_error); DPM_time_constraints* Time_constraints ) ;
/** /**
* Destructor. * Destructor.

View File

@ -11,7 +11,7 @@ DPC_delta_plot::DPC_delta_plot( DPC_datastream_supplier *DS_Supplier,
DPM_run *Run1, DPM_run *Run1,
DPM_run *Run2, DPM_run *Run2,
DPM_relation *Relation, DPM_relation *Relation,
DPM_time_constraints *ParentTimeConstraints ) throw (std::invalid_argument) DPM_time_constraints *ParentTimeConstraints )
: DPC_plot( Relation) : DPC_plot( Relation)
{ {
@ -80,7 +80,7 @@ DPC_delta_plot::DPC_delta_plot( DPC_datastream_supplier *DS_Supplier,
DPC_delta_plot::DPC_delta_plot( DPC_datastream_supplier *DS_Supplier, DPC_delta_plot::DPC_delta_plot( DPC_datastream_supplier *DS_Supplier,
std::vector <DPM_run *> *RunListp, std::vector <DPM_run *> *RunListp,
DPM_relation *Relation, DPM_relation *Relation,
DPM_time_constraints *ParentTimeConstraints ) throw (std::invalid_argument) DPM_time_constraints *ParentTimeConstraints )
: DPC_plot( Relation) : DPC_plot( Relation)
{ {

View File

@ -25,7 +25,7 @@ public:
DPM_run *Run2, DPM_run *Run2,
DPM_relation *Relation, DPM_relation *Relation,
DPM_time_constraints *parent_time_constraints ) DPM_time_constraints *parent_time_constraints )
throw (std::invalid_argument); ;
/** /**
* Constructor for Contrast session * Constructor for Contrast session
@ -34,7 +34,7 @@ public:
std::vector <DPM_run *> *RunListp, std::vector <DPM_run *> *RunListp,
DPM_relation *Relation, DPM_relation *Relation,
DPM_time_constraints *parent_time_constraints ) DPM_time_constraints *parent_time_constraints )
throw (std::invalid_argument); ;
/** /**
* Destructor. * Destructor.

View File

@ -5,7 +5,7 @@
DPC_page::DPC_page( DPC_datastream_supplier *DS_Supplier, DPC_page::DPC_page( DPC_datastream_supplier *DS_Supplier,
std::vector <DPM_run *> *RunListp, std::vector <DPM_run *> *RunListp,
DPM_page *PageSpec, DPM_page *PageSpec,
DPM_time_constraints *ParentTimeConstraints ) throw (std::invalid_argument) DPM_time_constraints *ParentTimeConstraints )
{ {
DPM_time_constraints *my_time_constraints; DPM_time_constraints *my_time_constraints;

View File

@ -25,7 +25,7 @@ public:
DPC_page( DPC_datastream_supplier *DS_Supplier, DPC_page( DPC_datastream_supplier *DS_Supplier,
std::vector <DPM_run *> *RunListp, std::vector <DPM_run *> *RunListp,
DPM_page *PageSpec, DPM_page *PageSpec,
DPM_time_constraints *ParentTimeConstraints ) throw (std::invalid_argument) ; DPM_time_constraints *ParentTimeConstraints ) ;
/** /**
* DESTRUCTOR. * DESTRUCTOR.

View File

@ -12,7 +12,7 @@
DPC_product::DPC_product( DPM_session *Session, DPC_product::DPC_product( DPM_session *Session,
const char *ProductFileName const char *ProductFileName
) throw (std::invalid_argument) { ) {
DPM_time_constraints *my_time_constraints; DPM_time_constraints *my_time_constraints;
DPM_time_constraints *parentTimeConstraints; DPM_time_constraints *parentTimeConstraints;

View File

@ -23,7 +23,7 @@ public:
/** /**
* CONSTRUCTOR. * CONSTRUCTOR.
*/ */
DPC_product( DPM_session *Session, const char *ProductFileName) throw (std::invalid_argument) ; DPC_product( DPM_session *Session, const char *ProductFileName) ;
/** /**
* DESTRUCTOR. * DESTRUCTOR.

View File

@ -9,7 +9,7 @@ DPC_standard_plot::DPC_standard_plot(
DPC_datastream_supplier *DS_Supplier, DPC_datastream_supplier *DS_Supplier,
std::vector <DPM_run *> *RunListp, std::vector <DPM_run *> *RunListp,
DPM_relation *Relation, DPM_relation *Relation,
DPM_time_constraints *ParentTimeConstraints ) throw (std::invalid_argument) DPM_time_constraints *ParentTimeConstraints )
: DPC_plot (Relation) { : DPC_plot (Relation) {
DPM_time_constraints *my_time_constraints; DPM_time_constraints *my_time_constraints;

View File

@ -24,7 +24,7 @@ public:
std::vector <DPM_run *> *RunListp, std::vector <DPM_run *> *RunListp,
DPM_relation *Relation, DPM_relation *Relation,
DPM_time_constraints *parent_time_constraints ) DPM_time_constraints *parent_time_constraints )
throw (std::invalid_argument); ;
/** /**
* Destructor. * Destructor.
*/ */

View File

@ -11,7 +11,7 @@ DPC_std_curve::DPC_std_curve(
DPM_curve* Curve_spec, DPM_curve* Curve_spec,
DPM_run* Run, DPM_run* Run,
DPC_datastream_supplier *ds_supplier, DPC_datastream_supplier *ds_supplier,
DPM_time_constraints *Time_constraints ) throw (std::logic_error) DPM_time_constraints *Time_constraints )
: DPC_curve() { : DPC_curve() {
char work[255]; char work[255];

View File

@ -25,7 +25,7 @@ public:
DPM_curve* Curve_spec, DPM_curve* Curve_spec,
DPM_run* Run, DPM_run* Run,
DPC_datastream_supplier *ds_supplier, DPC_datastream_supplier *ds_supplier,
DPM_time_constraints* Time_constraints ) throw (std::logic_error); DPM_time_constraints* Time_constraints ) ;
/** /**
* Destructor. * Destructor.

View File

@ -13,7 +13,7 @@ DPC_table::DPC_table( DPC_datastream_supplier *DS_Supplier,
DPM_run *Run, DPM_run *Run,
DPM_table *Table_spec, DPM_table *Table_spec,
DPM_time_constraints *ParentTimeConstraints ) DPM_time_constraints *ParentTimeConstraints )
throw (std::invalid_argument) { {
DPM_time_constraints *my_time_constraints; DPM_time_constraints *my_time_constraints;
DPM_time_constraints total_time_constraints; DPM_time_constraints total_time_constraints;

View File

@ -30,7 +30,7 @@ public:
DPM_run * Run, DPM_run * Run,
DPM_table *Table, DPM_table *Table,
DPM_time_constraints *parent_time_constraints ) DPM_time_constraints *parent_time_constraints )
throw (std::invalid_argument); ;
/** /**
* Destructor. * Destructor.

View File

@ -53,7 +53,7 @@ int DPM_axis::Initialize(xmlNode *base_node) {
} }
// XML CONSTRUCTOR // XML CONSTRUCTOR
DPM_axis::DPM_axis(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument) DPM_axis::DPM_axis(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) { : DPM_component (Parent, Base_node) {
if ( Initialize(Base_node) < 0) { if ( Initialize(Base_node) < 0) {

View File

@ -34,7 +34,7 @@ public:
* @param axis_node this is a pointer to an xmlNode whose type is * @param axis_node this is a pointer to an xmlNode whose type is
* XML_ELEMENT_NODE and whose name is either "xaxis" or "yaxis". * XML_ELEMENT_NODE and whose name is either "xaxis" or "yaxis".
*/ */
DPM_axis(DPM_component *parent, xmlNode *axis_node) throw (std::invalid_argument); DPM_axis(DPM_component *parent, xmlNode *axis_node) ;
/** /**
* Destructor. * Destructor.

View File

@ -57,7 +57,7 @@ int DPM_column::Initialize(xmlNode *base_node) {
} }
// XML CONSTRUCTOR // XML CONSTRUCTOR
DPM_column::DPM_column(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument) DPM_column::DPM_column(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) { : DPM_component (Parent, Base_node) {
if ( Initialize(Base_node) < 0) { if ( Initialize(Base_node) < 0) {

View File

@ -28,7 +28,7 @@ public:
* @param column_node this is a pointer to an xmlNode whose type is * @param column_node this is a pointer to an xmlNode whose type is
* XML_ELEMENT_NODE and whose name is "column". * XML_ELEMENT_NODE and whose name is "column".
*/ */
DPM_column(DPM_component *parent, xmlNode *column_node) throw (std::invalid_argument); DPM_column(DPM_component *parent, xmlNode *column_node) ;
/** /**
* Destructor. * Destructor.

View File

@ -128,7 +128,7 @@ int DPM_curve::Initialize(xmlNode *base_node) {
} }
// XML CONSTRUCTOR // XML CONSTRUCTOR
DPM_curve::DPM_curve(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument) DPM_curve::DPM_curve(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) { : DPM_component (Parent, Base_node) {
if ( Initialize( Base_node) < 0) { if ( Initialize( Base_node) < 0) {

View File

@ -19,7 +19,7 @@ public:
* @param curve_node a pointer to a libxml2 xmlNode of type XML_ELEMENT_NODE, * @param curve_node a pointer to a libxml2 xmlNode of type XML_ELEMENT_NODE,
* and whose name is "curve". * and whose name is "curve".
*/ */
DPM_curve(DPM_component *parent, xmlNode *curve_node) throw (std::invalid_argument); DPM_curve(DPM_component *parent, xmlNode *curve_node) ;
/** /**
* Destructor for DPM_curve. * Destructor for DPM_curve.
*/ */

View File

@ -71,7 +71,7 @@ int DPM_extfn::Initialize( xmlNode *base_node) {
} }
// XML CONSTRUCTOR // XML CONSTRUCTOR
DPM_extfn::DPM_extfn(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument) DPM_extfn::DPM_extfn(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) { : DPM_component (Parent, Base_node) {
if ( Initialize( Base_node) < 0) { if ( Initialize( Base_node) < 0) {

View File

@ -21,7 +21,7 @@ public:
/** /**
* XML constructor. * XML constructor.
*/ */
DPM_extfn(DPM_component *parent, xmlNode *extfn_node) throw (std::invalid_argument); DPM_extfn(DPM_component *parent, xmlNode *extfn_node) ;
/** /**
* Destructor. * Destructor.

View File

@ -51,7 +51,7 @@ int DPM_inputs::Initialize( xmlNode *base_node) {
} }
// CONSTRUCTOR // CONSTRUCTOR
DPM_inputs::DPM_inputs(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument) DPM_inputs::DPM_inputs(DPM_component *Parent, xmlNode *Base_node)
: DPM_component(Parent, Base_node) { : DPM_component(Parent, Base_node) {
if ( Initialize( Base_node) < 0) { if ( Initialize( Base_node) < 0) {

View File

@ -21,7 +21,7 @@ public:
/** /**
* Constructor. * Constructor.
*/ */
DPM_inputs(DPM_component *parent, xmlNode *inputs_node) throw (std::invalid_argument); DPM_inputs(DPM_component *parent, xmlNode *inputs_node) ;
/** /**
* Destructor. * Destructor.

View File

@ -66,7 +66,7 @@ int DPM_measurement::Initialize( xmlNode *base_node) {
} }
// CONSTRUCTOR // CONSTRUCTOR
DPM_measurement::DPM_measurement(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument) DPM_measurement::DPM_measurement(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) { : DPM_component (Parent, Base_node) {
if ( Initialize( Base_node) < 0) { if ( Initialize( Base_node) < 0) {

View File

@ -20,7 +20,7 @@ public:
* @param measurement_node this is a pointer to an xmlNode whose type is * @param measurement_node this is a pointer to an xmlNode whose type is
* XML_ELEMENT_NODE and whose name is "measurement". * XML_ELEMENT_NODE and whose name is "measurement".
*/ */
DPM_measurement(DPM_component *parent, xmlNode *measurement_node) throw (std::invalid_argument); DPM_measurement(DPM_component *parent, xmlNode *measurement_node) ;
/** /**
* Destructor. * Destructor.

View File

@ -48,7 +48,7 @@ int DPM_outputs::Initialize( xmlNode *base_node) {
} }
// CONSTRUCTOR // CONSTRUCTOR
DPM_outputs::DPM_outputs(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument) DPM_outputs::DPM_outputs(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) { : DPM_component (Parent, Base_node) {
Initialize( Base_node); Initialize( Base_node);

View File

@ -21,7 +21,7 @@ public:
/** /**
* XML based constructor. * XML based constructor.
*/ */
DPM_outputs(DPM_component *parent, xmlNode *outputs_node) throw (std::invalid_argument); DPM_outputs(DPM_component *parent, xmlNode *outputs_node) ;
/** /**
* Destructor. * Destructor.

View File

@ -45,7 +45,7 @@ int DPM_parse_tree::Initialize(const char *XMLFileName) {
// CONSTRUCTOR // CONSTRUCTOR
DPM_parse_tree::DPM_parse_tree(const char *XMLFileName) throw (std::invalid_argument) { DPM_parse_tree::DPM_parse_tree(const char *XMLFileName) {
if ( Initialize( XMLFileName) < 0) { if ( Initialize( XMLFileName) < 0) {
throw std::invalid_argument("DPM_parse_tree is un-usable."); throw std::invalid_argument("DPM_parse_tree is un-usable.");

View File

@ -17,7 +17,7 @@ public:
/** /**
* Constructor. * Constructor.
*/ */
DPM_parse_tree(const char *XMLFileName) throw (std::invalid_argument); DPM_parse_tree(const char *XMLFileName) ;
/** /**
* Destructor * Destructor

View File

@ -98,7 +98,7 @@ int DPM_product::Initialize( xmlNode *base_node) {
} }
// XML CONSTRUCTOR // XML CONSTRUCTOR
DPM_product::DPM_product(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument) DPM_product::DPM_product(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) { : DPM_component (Parent, Base_node) {
if ( Initialize( Base_node) < 0) { if ( Initialize( Base_node) < 0) {

View File

@ -21,7 +21,7 @@ public:
/** /**
* XML Constructor. * XML Constructor.
*/ */
DPM_product(DPM_component *parent, xmlNode *product_node) throw (std::invalid_argument); DPM_product(DPM_component *parent, xmlNode *product_node) ;
/** /**
* Destructor * Destructor

View File

@ -92,7 +92,7 @@ int DPM_relation::Initialize(xmlNode *base_node) {
} }
// XML CONSTRUCTOR // XML CONSTRUCTOR
DPM_relation::DPM_relation(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument) DPM_relation::DPM_relation(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) { : DPM_component (Parent, Base_node) {
if ( Initialize( Base_node) < 0) { if ( Initialize( Base_node) < 0) {

View File

@ -24,7 +24,7 @@ public:
* @param plot_node a pointer to a libxml2 xmlNode of type XML_ELEMENT_NODE, * @param plot_node a pointer to a libxml2 xmlNode of type XML_ELEMENT_NODE,
* and whose name is "plot". * and whose name is "plot".
*/ */
DPM_relation(DPM_component *parent, xmlNode *plot_node) throw (std::invalid_argument); DPM_relation(DPM_component *parent, xmlNode *plot_node) ;
/** /**
* Destructor for DPM_relation. * Destructor for DPM_relation.
*/ */

View File

@ -40,7 +40,7 @@ int DPM_run::Initialize( xmlNode *base_node) {
} }
// CONSTRUCTOR // CONSTRUCTOR
DPM_run::DPM_run(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument) DPM_run::DPM_run(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) { : DPM_component (Parent, Base_node) {
if ( Initialize( Base_node) < 0) { if ( Initialize( Base_node) < 0) {

View File

@ -20,7 +20,7 @@ public:
* @param RunNode is a pointer to an xmlNode whose type is * @param RunNode is a pointer to an xmlNode whose type is
* XML_ELEMENT_NODE and whose name is "run". * XML_ELEMENT_NODE and whose name is "run".
*/ */
DPM_run(DPM_component *parent, xmlNode *RunNode) throw (std::invalid_argument); DPM_run(DPM_component *parent, xmlNode *RunNode) ;
/** /**
* Destructor. * Destructor.

View File

@ -120,7 +120,7 @@ int DPM_session::Initialize( xmlNode *SessionNode ) {
return 0; return 0;
} }
DPM_session::DPM_session(DPM_component *Parent, xmlNode *SessionNode) throw (std::invalid_argument) DPM_session::DPM_session(DPM_component *Parent, xmlNode *SessionNode)
: DPM_component(Parent, SessionNode) { : DPM_component(Parent, SessionNode) {
if ( Initialize( SessionNode) < 0) { if ( Initialize( SessionNode) < 0) {

View File

@ -26,7 +26,7 @@ public:
/** /**
* XML Constructor. * XML Constructor.
*/ */
DPM_session(DPM_component *parent, xmlNode *SessionNode) throw (std::invalid_argument); DPM_session(DPM_component *parent, xmlNode *SessionNode) ;
/** /**
* Destructor * Destructor

View File

@ -24,7 +24,7 @@ int DPM_var::Initialize( xmlNode *base_node) {
} }
// CONSTRUCTOR // CONSTRUCTOR
DPM_var::DPM_var(DPM_component *Parent, xmlNode *Base_node) throw (std::invalid_argument) DPM_var::DPM_var(DPM_component *Parent, xmlNode *Base_node)
: DPM_component (Parent, Base_node) { : DPM_component (Parent, Base_node) {
if ( Initialize( Base_node) < 0) { if ( Initialize( Base_node) < 0) {

View File

@ -27,7 +27,7 @@ class DPM_var:public DPM_component {
* @param VarNode is a pointer to an xmlNode whose type is * @param VarNode is a pointer to an xmlNode whose type is
* XML_ELEMENT_NODE and whose name is "var". * XML_ELEMENT_NODE and whose name is "var".
*/ */
DPM_var(DPM_component * parent, xmlNode * VarNode) throw(std::invalid_argument); DPM_var(DPM_component * parent, xmlNode * VarNode) ;
/** /**
* Destructor. * Destructor.

View File

@ -46,13 +46,13 @@ class AllocInfo {
unsigned int dimensionsCount, unsigned int dimensionsCount,
int* dimensions, int* dimensions,
TypeDictionary* typeDictionary, TypeDictionary* typeDictionary,
void* suppliedAllocation = 0) throw (std::logic_error) ; void* suppliedAllocation = 0) ;
/** /**
AllocInfo destructor. AllocInfo destructor.
*/ */
AllocInfo( const std::string& declaration, AllocInfo( const std::string& declaration,
TypeDictionary* typeDictionary, TypeDictionary* typeDictionary,
void* suppliedAllocation = 0) throw (std::logic_error) ; void* suppliedAllocation = 0) ;
/** /**
AllocInfo destructor. AllocInfo destructor.
*/ */
@ -165,7 +165,7 @@ class AllocInfo {
unsigned int dimensionsCount, unsigned int dimensionsCount,
int * dimensions, int * dimensions,
TypeDictionary* typeDictionary, TypeDictionary* typeDictionary,
void* suppliedAllocation ) throw (std::logic_error) ; void* suppliedAllocation ) ;
std::string name; /**< ** Object name */ std::string name; /**< ** Object name */
void* start; /**< ** Address where this allocation starts */ void* start; /**< ** Address where this allocation starts */

View File

@ -26,7 +26,7 @@ class ArrayDataType : public DataType {
ArrayDataType( TypeDictionary* typeDictionary, ArrayDataType( TypeDictionary* typeDictionary,
std::string typeSpecifierName, std::string typeSpecifierName,
unsigned int n_dims, unsigned int n_dims,
int dims[] ) throw (std::logic_error) ; int dims[] ) ;
/** /**
Constructor for ArrayDataType. Constructor for ArrayDataType.
@param typeDictionary The Type Dictionary. @param typeDictionary The Type Dictionary.
@ -35,7 +35,7 @@ class ArrayDataType : public DataType {
*/ */
ArrayDataType( TypeDictionary* typeDictionary, ArrayDataType( TypeDictionary* typeDictionary,
std::string typeSpecName, std::string typeSpecName,
unsigned int dimensionSize ) throw (std::logic_error); unsigned int dimensionSize ) ;
/** /**
Create an ArrayDataType with a different elementCount, but otherwise Create an ArrayDataType with a different elementCount, but otherwise

View File

@ -126,7 +126,7 @@ public:
int offset, int offset,
std::string typeName, std::string typeName,
unsigned n_dims, unsigned n_dims,
int dims[]) throw (std::logic_error); int dims[]) ;
/** /**
Add a static data member to the CompositeDataType. Add a static data member to the CompositeDataType.
@ -141,7 +141,7 @@ public:
void * memberAddress, void * memberAddress,
std::string typeSpecName, std::string typeSpecName,
unsigned int n_dims, unsigned int n_dims,
int dims[] ) throw (std::logic_error); int dims[] ) ;
/** /**
Add a bitfield data member to the CompositeDataType. Add a bitfield data member to the CompositeDataType.

View File

@ -118,7 +118,7 @@ public:
the struct, union or class. the struct, union or class.
@param type_decl TypeDeclaration of the data-member. @param type_decl TypeDeclaration of the data-member.
*/ */
void addEnumerator( std::string member_name, int value) throw(std::logic_error) ; void addEnumerator( std::string member_name, int value) ;
private: private:
EnumDataType() {}; EnumDataType() {};

View File

@ -17,12 +17,12 @@ public:
/** /**
Add a name/value pair to the dictionary. Add a name/value pair to the dictionary.
*/ */
void addEnumerator(std::string name, int value) throw(std::logic_error); void addEnumerator(std::string name, int value) ;
/** /**
Get the value associated with the given string.i FIXME: what of string not found? Get the value associated with the given string.i FIXME: what of string not found?
*/ */
int getValue(std::string name) throw(std::logic_error) ; int getValue(std::string name) ;
/** /**
*/ */

View File

@ -22,7 +22,7 @@ class PointerDataType : public DataType {
PointerDataType( TypeDictionary * typeDictionary, PointerDataType( TypeDictionary * typeDictionary,
std::string typeSpecifierName, std::string typeSpecifierName,
unsigned int n_dims, unsigned int n_dims,
int dims[] ) throw (std::logic_error); int dims[] ) ;
/** /**
Constructor for ArrayDataType. Constructor for ArrayDataType.
@param typeDictionary The Type Dictionary. @param typeDictionary The Type Dictionary.
@ -30,7 +30,7 @@ class PointerDataType : public DataType {
@param dims dimension sizes. @param dims dimension sizes.
*/ */
PointerDataType( TypeDictionary * typeDictionary, PointerDataType( TypeDictionary * typeDictionary,
std::string typeSpecifierName ) throw (std::logic_error); std::string typeSpecifierName ) ;
/* ==================================================================== */ /* ==================================================================== */
/* RULE OF THREE INTERFACE */ /* RULE OF THREE INTERFACE */

View File

@ -25,7 +25,7 @@ class TypeDictionary {
Add a type definiton to the dictionary. Add a type definiton to the dictionary.
*/ */
void addTypeDefinition(std::string name, DataType * typeSpec) void addTypeDefinition(std::string name, DataType * typeSpec)
throw(std::logic_error); ;
/** /**
*/ */

View File

@ -21,7 +21,7 @@ void AllocInfo::initialize( const std::string& varName,
unsigned int dimsCount, unsigned int dimsCount,
int * dims, int * dims,
TypeDictionary* typeDictionary, TypeDictionary* typeDictionary,
void* suppliedAllocation) throw (std::logic_error) { void* suppliedAllocation) {
// Because they can be resized, all allocations are really arrays, // Because they can be resized, all allocations are really arrays,
// whether they have 0, 1, or many elements. // whether they have 0, 1, or many elements.
@ -86,7 +86,7 @@ AllocInfo::AllocInfo( const std::string& varName,
unsigned int dimsCount, unsigned int dimsCount,
int * dims, int * dims,
TypeDictionary* typeDictionary, TypeDictionary* typeDictionary,
void* suppliedAllocation) throw (std::logic_error) { void* suppliedAllocation) {
initialize(varName, typeSpecName, dimsCount, dims, typeDictionary, suppliedAllocation); initialize(varName, typeSpecName, dimsCount, dims, typeDictionary, suppliedAllocation);
} }
@ -94,7 +94,7 @@ AllocInfo::AllocInfo( const std::string& varName,
// CONSTRUCTOR // CONSTRUCTOR
AllocInfo::AllocInfo( const std::string& declaration, AllocInfo::AllocInfo( const std::string& declaration,
TypeDictionary* typeDictionary, TypeDictionary* typeDictionary,
void* suppliedAllocation) throw (std::logic_error) { void* suppliedAllocation) {
int dims[TRICK_MAX_INDEX]; int dims[TRICK_MAX_INDEX];
ParsedDeclaration* parsedDeclaration = new ParsedDeclaration( declaration ); ParsedDeclaration* parsedDeclaration = new ParsedDeclaration( declaration );

View File

@ -38,7 +38,7 @@ bool ArrayDataType::initArrayDataType( TypeDictionary* typeDictionary, std::stri
} }
// CONSTRUCTOR // CONSTRUCTOR
ArrayDataType:: ArrayDataType( TypeDictionary* typeDictionary, std::string typeSpecName, unsigned int n_dims, int dims[] ) throw (std::logic_error) { ArrayDataType:: ArrayDataType( TypeDictionary* typeDictionary, std::string typeSpecName, unsigned int n_dims, int dims[] ) {
if( this->initArrayDataType( typeDictionary, typeSpecName, n_dims, dims) ) { if( this->initArrayDataType( typeDictionary, typeSpecName, n_dims, dims) ) {
throw std::logic_error("ArrayDataType constructor(1) error."); throw std::logic_error("ArrayDataType constructor(1) error.");
@ -46,7 +46,7 @@ ArrayDataType:: ArrayDataType( TypeDictionary* typeDictionary, std::string typeS
} }
// CONSTRUCTOR // CONSTRUCTOR
ArrayDataType:: ArrayDataType( TypeDictionary* typeDictionary, std::string typeSpecName, unsigned int dimensionSize ) throw (std::logic_error) { ArrayDataType:: ArrayDataType( TypeDictionary* typeDictionary, std::string typeSpecName, unsigned int dimensionSize ) {
int n = dimensionSize; int n = dimensionSize;
if( this->initArrayDataType( typeDictionary, typeSpecName, 1, &n) ) { if( this->initArrayDataType( typeDictionary, typeSpecName, 1, &n) ) {

View File

@ -235,7 +235,7 @@ void CompositeDataType::addRegularMember( std::string memberName,
int member_offset, int member_offset,
std::string typeSpecName, std::string typeSpecName,
unsigned int n_dims, unsigned int n_dims,
int dims[] ) throw(std::logic_error) { int dims[] ) {
int memberCount = memberList.size() ; int memberCount = memberList.size() ;
for (int ii=0 ; ii < memberCount ; ii++) { for (int ii=0 ; ii < memberCount ; ii++) {
@ -256,7 +256,7 @@ void CompositeDataType::addStaticMember( std::string memberName,
void * memberAddress, void * memberAddress,
std::string typeSpecName, std::string typeSpecName,
unsigned int n_dims, unsigned int n_dims,
int dims[] ) throw(std::logic_error) { int dims[] ) {
int memberCount = memberList.size() ; int memberCount = memberList.size() ;
for (int ii=0 ; ii < memberCount ; ii++) { for (int ii=0 ; ii < memberCount ; ii++) {

View File

@ -178,7 +178,7 @@ std::string EnumDataType::getTypeSpecName() const {
return name; return name;
} }
void EnumDataType::addEnumerator( std::string name, int value) throw(std::logic_error) { void EnumDataType::addEnumerator( std::string name, int value) {
Enumerator* enumerator = new Enumerator( name, value ); Enumerator* enumerator = new Enumerator( name, value );
enum_list.push_back(enumerator); enum_list.push_back(enumerator);

View File

@ -2,7 +2,7 @@
#include <sstream> #include <sstream>
#include "EnumDictionary.hh" #include "EnumDictionary.hh"
int EnumDictionary::getValue(std::string name ) throw(std::logic_error) { int EnumDictionary::getValue(std::string name ) {
enumDictionaryIterator = enumDictionary.find(name); enumDictionaryIterator = enumDictionary.find(name);
if (enumDictionaryIterator == enumDictionary.end()) { if (enumDictionaryIterator == enumDictionary.end()) {
@ -14,7 +14,7 @@ int EnumDictionary::getValue(std::string name ) throw(std::logic_error) {
} }
} }
void EnumDictionary::addEnumerator(std::string name, int value) throw(std::logic_error) { void EnumDictionary::addEnumerator(std::string name, int value) {
enumDictionaryIterator = enumDictionary.find(name); enumDictionaryIterator = enumDictionary.find(name);
if (enumDictionaryIterator == enumDictionary.end()) { if (enumDictionaryIterator == enumDictionary.end()) {

View File

@ -36,7 +36,7 @@ bool PointerDataType::initPointerDataType( TypeDictionary * typeDictionary, std:
} }
// CONSTRUCTOR // CONSTRUCTOR
PointerDataType:: PointerDataType( TypeDictionary * typeDictionary, std::string typeSpecName, unsigned int n_dims, int dims[]) throw (std::logic_error) { PointerDataType:: PointerDataType( TypeDictionary * typeDictionary, std::string typeSpecName, unsigned int n_dims, int dims[]) {
if( this->initPointerDataType( typeDictionary, typeSpecName, n_dims, dims) ) { if( this->initPointerDataType( typeDictionary, typeSpecName, n_dims, dims) ) {
throw std::logic_error("PointerDataType constructor(1) error."); throw std::logic_error("PointerDataType constructor(1) error.");
@ -44,7 +44,7 @@ PointerDataType:: PointerDataType( TypeDictionary * typeDictionary, std::string
} }
// CONSTRUCTOR // CONSTRUCTOR
PointerDataType::PointerDataType( TypeDictionary* typeDictionary, std::string typeSpecifierName) throw (std::logic_error) { PointerDataType::PointerDataType( TypeDictionary* typeDictionary, std::string typeSpecifierName) {
int dims[1] = {-1}; int dims[1] = {-1};
if( this->initPointerDataType( typeDictionary, typeSpecName, 1, dims) ) { if( this->initPointerDataType( typeDictionary, typeSpecName, 1, dims) ) {

View File

@ -38,7 +38,7 @@ const DataType* TypeDictionary::getDataType(std::string name ) {
} }
// MEMBER FUNCTION // MEMBER FUNCTION
void TypeDictionary::addTypeDefinition(std::string name, DataType * typeSpec) throw (std::logic_error) { void TypeDictionary::addTypeDefinition(std::string name, DataType * typeSpec) {
const DataType* preExistingDataType = getDataType(name); const DataType* preExistingDataType = getDataType(name);

View File

@ -11,7 +11,7 @@ int Trick::MemoryManager::instance_count = 0;
// CONSTRUCTOR // CONSTRUCTOR
Trick::MemoryManager::MemoryManager() Trick::MemoryManager::MemoryManager()
throw (std::logic_error) { {
// The MemoryManager is a singleton. That is only one instance of it is allowed. // The MemoryManager is a singleton. That is only one instance of it is allowed.

View File

@ -5,7 +5,7 @@
#include "trick/Interpolator.hh" #include "trick/Interpolator.hh"
double Trick::Interpolator::eval (double param[], unsigned int param_index, unsigned int offset) double Trick::Interpolator::eval (double param[], unsigned int param_index, unsigned int offset)
throw (std::logic_error) { {
double x, x_lower, x_upper; double x, x_lower, x_upper;
double f_x, f_x_lower, f_x_upper; double f_x, f_x_lower, f_x_upper;
@ -46,13 +46,13 @@ double Trick::Interpolator::eval (double param[], unsigned int param_index, unsi
} }
double Trick::Interpolator::eval (double params[]) double Trick::Interpolator::eval (double params[])
throw (std::logic_error) { {
return ( eval( params, 0,0)); return ( eval( params, 0,0));
} }
double Trick::Interpolator::eval (double param1, ...) double Trick::Interpolator::eval (double param1, ...)
throw (std::logic_error) { {
double params[256]; double params[256];
va_list ap; va_list ap;