Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
class_loader.h File Reference

Class Loader to be used throughout Tesseract for loading plugins. More...

#include <tesseract_common/macros.h>
#include <memory>
#include <string>
#include <vector>
#include <tesseract_common/class_loader.hpp>
Include dependency graph for class_loader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tesseract_common::ClassLoader
 This is a wrapper around Boost DLL for loading plugins within Tesseract. More...
 

Namespaces

namespace  tesseract_common
 

Macros

#define TESSERACT_ADD_PLUGIN_SECTIONED(DERIVED_CLASS, ALIAS, SECTION)
 
#define TESSERACT_ADD_PLUGIN(DERIVED_CLASS, ALIAS)    TESSERACT_ADD_PLUGIN_SECTIONED(DERIVED_CLASS, ALIAS, boostdll)
 
#define TESSERACT_PLUGIN_ANCHOR_DECL(ANCHOR_NAME)    const void* ANCHOR_NAME();
 
#define TESSERACT_PLUGIN_ANCHOR_IMPL(ANCHOR_NAME)    const void* ANCHOR_NAME() { return (const void*)(&ANCHOR_NAME); }
 

Detailed Description

Class Loader to be used throughout Tesseract for loading plugins.

Author
Levi Armstrong
Date
March 25, 2021
Version
TODO
Bug:
No known bugs
License
Software License Agreement (Apache License)
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.

Macro Definition Documentation

◆ TESSERACT_ADD_PLUGIN

#define TESSERACT_ADD_PLUGIN (   DERIVED_CLASS,
  ALIAS 
)     TESSERACT_ADD_PLUGIN_SECTIONED(DERIVED_CLASS, ALIAS, boostdll)

◆ TESSERACT_ADD_PLUGIN_SECTIONED

#define TESSERACT_ADD_PLUGIN_SECTIONED (   DERIVED_CLASS,
  ALIAS,
  SECTION 
)
Value:
extern "C" BOOST_SYMBOL_EXPORT DERIVED_CLASS ALIAS; \
BOOST_DLL_SECTION(SECTION, read) BOOST_DLL_SELECTANY \
DERIVED_CLASS ALIAS;

◆ TESSERACT_PLUGIN_ANCHOR_DECL

#define TESSERACT_PLUGIN_ANCHOR_DECL (   ANCHOR_NAME)     const void* ANCHOR_NAME();

◆ TESSERACT_PLUGIN_ANCHOR_IMPL

#define TESSERACT_PLUGIN_ANCHOR_IMPL (   ANCHOR_NAME)     const void* ANCHOR_NAME() { return (const void*)(&ANCHOR_NAME); }