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

Plugins API CPP Support Functions. More...

#include <string>
#include "telplugins_c_api.h"
#include "telTelluriumData.h"
#include "telPluginManager.h"
#include "telProperties.h"
#include "telPlugin.h"
#include "telProperty.h"
#include "telAPIHandleManager.h"

Go to the source code of this file.

Functions

void tpSetError (const string &err)
 Set API error. More...
 
template<typename T >
T * castHandle (TELHandle handle, const char *fnc, bool allowBase=false)
 Cast a handle. This function throws a InvalidHandle exception if it fails. More...
 
Plugin * tpRegisterPlugin (Plugin *plugin)
 
char * tpCreateText (const string &str)
 Utility function to create a C string from a std::string. More...
 
tlp::RoadRunnerList * getRRList (TELHandle handle)
 Cast a handle to RoadRunner Instance list to a RoadRunnerList pointer, throws if it fails. More...
 

Detailed Description

Plugins API CPP Support Functions.

Author
Totte Karlsson & Herbert M Sauro

<-----------------------------------------------------------—

This file is part of cRoadRunner. See http://code.google.com/p/roadrunnerlib for more details.

Copyright (C) 2012-2013 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.