shared_library.cpp
Go to the documentation of this file.
00001 #include "behaviortree_cpp/shared_library.h"
00002 
00003 BT::SharedLibrary::SharedLibrary(const std::string& path, int flags)
00004 {
00005     load(path, flags);
00006 }
00007 
00008 void* BT::SharedLibrary::getSymbol(const std::string& name)
00009 {
00010     void* result = findSymbol(name);
00011     if (result)
00012         return result;
00013     else
00014         throw std::runtime_error(name);
00015 }
00016 
00017 bool BT::SharedLibrary::hasSymbol(const std::string& name)
00018 {
00019     return findSymbol(name) != 0;
00020 }
00021 
00022 std::string BT::SharedLibrary::getOSName(const std::string& name)
00023 {
00024     return prefix() + name + suffix();
00025 }


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Feb 2 2019 03:50:10