Tellurium Plugin C API  1.0.0
Plugin Framework for Tellurium
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Macros
tel_macros.h File Reference

Tellurium Plugins C API 2012-2014. More...

Go to the source code of this file.

Macros

#define start_try
 macro to open a try/catch statement More...
 
#define catch_bool_macro
 macro for catch statement in a routine returning a bool More...
 
#define catch_ptr_macro
 macro for catch statement in a routine returning a pointer More...
 
#define catch_int_macro
 macro for catch statement in a routine returning a positive integer More...
 
#define catch_void_macro
 macro for catch statement in a routine returning void More...
 

Detailed Description

Tellurium Plugins C API 2012-2014.

Author
Totte Karlsson & Herbert M Sauro

<-----------------------------------------------------------— This file is part of cTellurium. See http://code.google.com/p/roadrunnerlib for more details.

Copyright (C) 2012-2014 University of Washington, Seattle, WA, USA

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

In plain english this means:

You CAN freely download and use this software, in whole or in part, for personal, company internal, or commercial purposes;

You CAN use the software in packages or distributions that you create.

You SHOULD include a copy of the license in any redistribution you may make;

You are NOT required include the source of software, or of any modifications you may have made to it, in any redistribution you may assemble that includes it.

YOU CANNOT:

redistribute any piece of this software without proper attribution;

Macro Definition Documentation

#define catch_bool_macro
Value:
} \
catch(exception& ex) \
{ \
stringstream msg; \
msg<<"Tellurium exception: "<<ex.what(); \
tpSetError(msg.str()); \
return false; \
}

macro for catch statement in a routine returning a bool

#define catch_int_macro
Value:
} \
catch(exception& ex) \
{ \
stringstream msg; \
msg<<"Tellurium exception: "<<ex.what(); \
tpSetError(msg.str()); \
return -1; \
}

macro for catch statement in a routine returning a positive integer

#define catch_ptr_macro
Value:
} \
catch(exception& ex) \
{ \
stringstream msg; \
msg<<"Tellurium exception: "<<ex.what(); \
tpSetError(msg.str()); \
return NULL; \
}

macro for catch statement in a routine returning a pointer

#define catch_void_macro
Value:
} \
catch(const exception& ex) \
{ \
stringstream msg; \
msg<<"Tellurium exception: "<<ex.what(); \
tpSetError(msg.str()); \
}

macro for catch statement in a routine returning void

#define start_try
Value:
try \
{

macro to open a try/catch statement