]> Creatis software - cpPlugins.git/commitdiff
Base objects migration
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Mon, 8 Dec 2014 16:00:05 +0000 (17:00 +0100)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Mon, 8 Dec 2014 16:00:05 +0000 (17:00 +0100)
124 files changed:
CMakeLists.txt [new file with mode: 0644]
COMPILATION [new file with mode: 0644]
appli/CMakeLists.txt [new file with mode: 0644]
appli/examples/CMakeLists.txt [new file with mode: 0644]
appli/examples/example_LoadPlugins.cxx [new file with mode: 0644]
appli/examples/example_ReadWriteImage.cxx [new file with mode: 0644]
doc/third_party/Pluma/build/Doxyfile [new file with mode: 0644]
doc/third_party/Pluma/build/Doxygen.hpp [new file with mode: 0644]
doc/third_party/Pluma/build/doxygen.css [new file with mode: 0644]
doc/third_party/Pluma/build/footer.htm [new file with mode: 0644]
doc/third_party/Pluma/build/header.htm [new file with mode: 0644]
doc/third_party/Pluma/html/Config_8hpp_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/Connector_8hpp_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/DLibrary_8cpp_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/DLibrary_8hpp_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/Dir_8cpp_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/Dir_8hpp_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/Doxygen_8hpp_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/Host_8cpp_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/Host_8hpp_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/PluginManager_8cpp_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/PluginManager_8hpp_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/Pluma_8hpp_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/Pluma_8inl_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/Provider_8cpp_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/Provider_8hpp_source.htm [new file with mode: 0644]
doc/third_party/Pluma/html/annotated.htm [new file with mode: 0644]
doc/third_party/Pluma/html/bc_s.png [new file with mode: 0644]
doc/third_party/Pluma/html/bdwn.png [new file with mode: 0644]
doc/third_party/Pluma/html/classes.htm [new file with mode: 0644]
doc/third_party/Pluma/html/classpluma_1_1DLibrary-members.htm [new file with mode: 0644]
doc/third_party/Pluma/html/classpluma_1_1DLibrary.htm [new file with mode: 0644]
doc/third_party/Pluma/html/classpluma_1_1Host-members.htm [new file with mode: 0644]
doc/third_party/Pluma/html/classpluma_1_1Host.htm [new file with mode: 0644]
doc/third_party/Pluma/html/classpluma_1_1PluginManager-members.htm [new file with mode: 0644]
doc/third_party/Pluma/html/classpluma_1_1PluginManager.htm [new file with mode: 0644]
doc/third_party/Pluma/html/classpluma_1_1PluginManager.png [new file with mode: 0644]
doc/third_party/Pluma/html/classpluma_1_1Pluma-members.htm [new file with mode: 0644]
doc/third_party/Pluma/html/classpluma_1_1Pluma.htm [new file with mode: 0644]
doc/third_party/Pluma/html/classpluma_1_1Pluma.png [new file with mode: 0644]
doc/third_party/Pluma/html/classpluma_1_1Provider-members.htm [new file with mode: 0644]
doc/third_party/Pluma/html/classpluma_1_1Provider.htm [new file with mode: 0644]
doc/third_party/Pluma/html/closed.png [new file with mode: 0644]
doc/third_party/Pluma/html/doxygen.css [new file with mode: 0644]
doc/third_party/Pluma/html/doxygen.png [new file with mode: 0644]
doc/third_party/Pluma/html/dynsections.js [new file with mode: 0644]
doc/third_party/Pluma/html/files.htm [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2blank.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2cl.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2doc.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2folderclosed.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2folderopen.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2lastnode.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2link.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2mlastnode.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2mnode.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2mo.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2node.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2ns.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2plastnode.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2pnode.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2splitbar.png [new file with mode: 0644]
doc/third_party/Pluma/html/ftv2vertline.png [new file with mode: 0644]
doc/third_party/Pluma/html/functions.htm [new file with mode: 0644]
doc/third_party/Pluma/html/functions_func.htm [new file with mode: 0644]
doc/third_party/Pluma/html/hierarchy.htm [new file with mode: 0644]
doc/third_party/Pluma/html/index.htm [new file with mode: 0644]
doc/third_party/Pluma/html/logo.png [new file with mode: 0644]
doc/third_party/Pluma/html/nav_f.png [new file with mode: 0644]
doc/third_party/Pluma/html/nav_g.png [new file with mode: 0644]
doc/third_party/Pluma/html/nav_h.png [new file with mode: 0644]
doc/third_party/Pluma/html/open.png [new file with mode: 0644]
doc/third_party/Pluma/html/sync_off.png [new file with mode: 0644]
doc/third_party/Pluma/html/sync_on.png [new file with mode: 0644]
doc/third_party/Pluma/html/tab_a.png [new file with mode: 0644]
doc/third_party/Pluma/html/tab_b.png [new file with mode: 0644]
doc/third_party/Pluma/html/tab_h.png [new file with mode: 0644]
doc/third_party/Pluma/html/tab_s.png [new file with mode: 0644]
doc/third_party/Pluma/html/tabs.css [new file with mode: 0644]
lib/CMakeLists.txt [new file with mode: 0644]
lib/cpPlugins/CMakeLists.txt [new file with mode: 0644]
lib/cpPlugins/Interface/CMakeLists.txt [new file with mode: 0644]
lib/cpPlugins/Interface/DataObject.cxx [new file with mode: 0644]
lib/cpPlugins/Interface/DataObject.h [new file with mode: 0644]
lib/cpPlugins/Interface/FilterObject.h [new file with mode: 0644]
lib/cpPlugins/Interface/Image.h [new file with mode: 0644]
lib/cpPlugins/Interface/ImageToImageFilter.h [new file with mode: 0644]
lib/cpPlugins/Interface/ImageToMeshFilter.h [new file with mode: 0644]
lib/cpPlugins/Interface/Interface.cxx [new file with mode: 0644]
lib/cpPlugins/Interface/Interface.h [new file with mode: 0644]
lib/cpPlugins/Interface/Mesh.h [new file with mode: 0644]
lib/cpPlugins/Interface/MeshToImageFilter.h [new file with mode: 0644]
lib/cpPlugins/Interface/MeshToMeshFilter.h [new file with mode: 0644]
lib/cpPlugins/Interface/Object.cxx [new file with mode: 0644]
lib/cpPlugins/Interface/Object.h [new file with mode: 0644]
lib/cpPlugins/Interface/ProcessObject.cxx [new file with mode: 0644]
lib/cpPlugins/Interface/ProcessObject.h [new file with mode: 0644]
lib/cpPlugins/Interface/SinkObject.h [new file with mode: 0644]
lib/cpPlugins/Interface/SourceObject.cxx [new file with mode: 0644]
lib/cpPlugins/Interface/SourceObject.h [new file with mode: 0644]
lib/cpPlugins/Plugins/CMakeLists.txt [new file with mode: 0644]
lib/cpPlugins/Plugins/Host.cxx [new file with mode: 0644]
lib/cpPlugins/Plugins/ImageReader.cxx [new file with mode: 0644]
lib/cpPlugins/Plugins/ImageReader.h [new file with mode: 0644]
lib/cpPlugins/Plugins/ImageWriter.cxx [new file with mode: 0644]
lib/cpPlugins/Plugins/ImageWriter.h [new file with mode: 0644]
lib/third_party/CMakeLists.txt [new file with mode: 0644]
lib/third_party/Pluma/CMakeLists.txt [new file with mode: 0644]
lib/third_party/Pluma/Config.hpp [new file with mode: 0644]
lib/third_party/Pluma/Connector.hpp [new file with mode: 0644]
lib/third_party/Pluma/DLibrary.cpp [new file with mode: 0644]
lib/third_party/Pluma/DLibrary.hpp [new file with mode: 0644]
lib/third_party/Pluma/Dir.cpp [new file with mode: 0644]
lib/third_party/Pluma/Dir.hpp [new file with mode: 0644]
lib/third_party/Pluma/Host.cpp [new file with mode: 0644]
lib/third_party/Pluma/Host.hpp [new file with mode: 0644]
lib/third_party/Pluma/PluginManager.cpp [new file with mode: 0644]
lib/third_party/Pluma/PluginManager.hpp [new file with mode: 0644]
lib/third_party/Pluma/Pluma.hpp [new file with mode: 0644]
lib/third_party/Pluma/Pluma.inl [new file with mode: 0644]
lib/third_party/Pluma/Provider.cpp [new file with mode: 0644]
lib/third_party/Pluma/Provider.hpp [new file with mode: 0644]
lib/third_party/Pluma/readme [new file with mode: 0644]
lib/third_party/Pluma/uce-dirent.h [new file with mode: 0644]

diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..d21e1bf
--- /dev/null
@@ -0,0 +1,83 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+
+# for CMake 2.6 corrected behaviour (see "cmake --help-policy CMP0003")
+IF(
+    COMMAND cmake_policy AND
+    ${CMAKE_MAJOR_VERSION} EQUAL 2 AND
+    ${CMAKE_MINOR_VERSION} GREATER 4
+    )
+  CMAKE_POLICY(SET CMP0003 NEW)
+  CMAKE_POLICY(SET CMP0005 NEW)
+  CMAKE_POLICY(SET CMP0011 NEW)
+  CMAKE_POLICY(SET CMP0012 NEW)
+ENDIF(
+  COMMAND cmake_policy AND
+  ${CMAKE_MAJOR_VERSION} EQUAL 2 AND
+  ${CMAKE_MINOR_VERSION} GREATER 4
+  )
+
+## ================
+## = Project name =
+## ================
+
+PROJECT(cpPlugins)
+SET(cpPlugins_MAJOR_VERSION   "1")
+SET(cpPlugins_MINOR_VERSION   "0")
+SET(cpPlugins_RELEASE_VERSION "0")
+SET(cpPlugins_VERSION "${cpPlugins_MAJOR_VERSION}.${cpPlugins_MINOR_VERSION}.${cpPlugins_RELEASE_VERSION}")
+
+## ===========
+## = Options =
+## ===========
+
+OPTION(BUILD_EXAMPLES "Build examples" OFF)
+
+## ============
+## = Packages =
+## ============
+
+FIND_PACKAGE(ITK REQUIRED)
+INCLUDE(${ITK_USE_FILE})
+
+FIND_PACKAGE(VTK REQUIRED)
+INCLUDE(${VTK_USE_FILE})
+
+## ================================================
+## = Do not allow to build inside the source tree =
+## ================================================
+
+IF(PROJECT_BINARY_DIR STREQUAL ${PROJECT_SOURCE_DIR})
+  MESSAGE(FATAL_ERROR "Building in the source tree is not allowed")
+ENDIF(PROJECT_BINARY_DIR STREQUAL ${PROJECT_SOURCE_DIR})
+
+## =====================================
+## = Where to put executables and libs =
+## =====================================
+
+SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
+SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
+MARK_AS_ADVANCED(
+  CMAKE_BACKWARDS_COMPATIBILITY
+  EXECUTABLE_OUTPUT_PATH
+  LIBRARY_OUTPUT_PATH
+  )
+
+## ==============================
+## = Subdirs containing headers =
+## ==============================
+
+INCLUDE_DIRECTORIES(
+  ${PROJECT_SOURCE_DIR}/lib
+  ${PROJECT_SOURCE_DIR}/lib/third_party
+  )
+
+## ===========================
+## = Subdirs containing code =
+## ===========================
+
+SUBDIRS(
+  lib
+  appli
+  )
+
+## eof - $RCSfile$
diff --git a/COMPILATION b/COMPILATION
new file mode 100644 (file)
index 0000000..96717fa
--- /dev/null
@@ -0,0 +1,26 @@
+@description
+  The project uses CMake as compilation helper. It should compile on the three
+  major box flavors (linux, windows, mac). However, as of december 2014, it
+  has only been tested on linux Fedora 20 and Ubuntu 14.04.
+
+@prerequisites
+  1. CMake (>=2.8.12.2)
+
+  3. Visualization Toolkit -VTK- (>=6.1.0)
+    3.1 Required cmake flags:
+      BUILD_SHARED_LIBS:BOOL=ON
+
+  4. Insight Toolkit -ITK- (>=4.6.0)
+    4.1 Required cmake flags:
+      BUILD_SHARED_LIBS:BOOL=ON
+      Module_ITKVtkGlue:BOOL=ON
+
+@cmake_flags
+  BUILD_DEMOS:BOOL
+    Build example applications? (most of them are command line)
+  CMAKE_BUILD_TYPE:STRING
+    Debug/Release?
+  CMAKE_INSTALL_PREFIX:STRING
+    Where to put installation products? (in windows this option has no use)
+
+## eof - $RCSfile$
diff --git a/appli/CMakeLists.txt b/appli/CMakeLists.txt
new file mode 100644 (file)
index 0000000..61d2cd0
--- /dev/null
@@ -0,0 +1,7 @@
+IF(BUILD_EXAMPLES)
+  SUBDIRS(
+    examples
+    )
+ENDIF(BUILD_EXAMPLES)
+
+## eof - $RCSfile$
diff --git a/appli/examples/CMakeLists.txt b/appli/examples/CMakeLists.txt
new file mode 100644 (file)
index 0000000..209a58f
--- /dev/null
@@ -0,0 +1,23 @@
+
+## =========================
+## = Command line programs =
+## =========================
+
+SET(
+  EXAMPLES_PROGRAMS
+  example_LoadPlugins
+  example_ReadWriteImage
+  )
+
+FOREACH(prog ${EXAMPLES_PROGRAMS}) 
+  ADD_EXECUTABLE(
+    ${prog}
+    ${prog}.cxx
+    )
+  TARGET_LINK_LIBRARIES(
+    ${prog}
+    cpPlugins_Interface
+    )
+ENDFOREACH(prog)
+
+## eof - $RCSfile$
diff --git a/appli/examples/example_LoadPlugins.cxx b/appli/examples/example_LoadPlugins.cxx
new file mode 100644 (file)
index 0000000..edbb600
--- /dev/null
@@ -0,0 +1,34 @@
+#include <iostream>
+#include <string>
+
+#include <cpPlugins/Interface/Interface.h>
+
+int main( int argc, char* argv[] )
+{
+  if( argc < 2 )
+  {
+    std::cerr << "Usage: " << argv[ 0 ] << " plugins_file" << std::endl;
+    return( 1 );
+
+  } // fi
+  std::string plugins_file = argv[ 1 ];
+
+  // Create interface
+  typedef cpPlugins::Interface::Interface TInterface;
+  typedef TInterface::TClasses            TClasses;
+
+  TInterface plugins;
+  plugins.Load( plugins_file );
+
+  std::cout << "---------------------------------------------" << std::endl;
+  std::cout << "Loaded classes:" << std::endl;
+  TClasses::const_iterator cIt = plugins.GetClasses( ).begin( );
+  TClasses::const_iterator end_cIt = plugins.GetClasses( ).end( );
+  for( ; cIt != end_cIt; ++cIt )
+    std::cout << "\t:= " << cIt->first << std::endl;
+  std::cout << "---------------------------------------------" << std::endl;
+  
+  return( 0 );
+}
+
+// eof - $RCSfile$
diff --git a/appli/examples/example_ReadWriteImage.cxx b/appli/examples/example_ReadWriteImage.cxx
new file mode 100644 (file)
index 0000000..4d5987b
--- /dev/null
@@ -0,0 +1,77 @@
+#include <cstdlib>
+#include <iostream>
+#include <string>
+
+#include <cpPlugins/Interface/Interface.h>
+#include <cpPlugins/Interface/ProcessObject.h>
+
+int main( int argc, char* argv[] )
+{
+  if( argc < 7 )
+  {
+    std::cerr
+      << "Usage: " << argv[ 0 ]
+      << " plugins_file"
+      << " input_image output_image"
+      << " dimensions pixel_type is_color" << std::endl;
+    return( 1 );
+
+  } // fi
+  std::string plugins_file = argv[ 1 ];
+  std::string input_image_file = argv[ 2 ];
+  std::string output_image_file = argv[ 3 ];
+  std::string dimensions = argv[ 4 ];
+  std::string pixel_type = argv[ 5 ];
+  bool is_color = ( std::atoi( argv[ 6 ] ) == 1 );
+
+  // Create interface
+  typedef cpPlugins::Interface::Interface TInterface;
+  typedef TInterface::TClasses            TClasses;
+
+  TInterface plugins;
+  plugins.Load( plugins_file );
+
+  // Create objects
+  typedef cpPlugins::Interface::ProcessObject TProcessObject;
+  typedef TProcessObject::TParameters         TParameters;
+  cpPlugins::Interface::ProcessObject* reader;
+  cpPlugins::Interface::ProcessObject* writer;
+
+  reader =
+    dynamic_cast< TProcessObject* >(
+      plugins.CreateObject( "cpPlugins::Plugins::ImageReader" )
+      );
+  if( reader == NULL )
+  {
+    std::cerr << "No suitable reader found in plugins." << std::endl;
+    return( 1 );
+
+  } // fi
+  writer =
+    dynamic_cast< TProcessObject* >(
+      plugins.CreateObject( "cpPlugins::Plugins::ImageWriter" )
+      );
+  if( writer == NULL )
+  {
+    delete reader;
+    std::cerr << "No suitable writer found in plugins." << std::endl;
+    return( 1 );
+
+  } // fi
+
+  // Configure reader
+  TParameters reader_params = reader->GetDefaultParameters( );
+  reader_params[ "FileName" ].second = input_image_file;
+  reader_params[ "PixelType" ].second = pixel_type;
+  reader_params[ "ImageDimension" ].second = dimensions;
+  reader_params[ "IsColorImage" ].second = ( is_color )? "1": "0";
+  reader->SetParameters( reader_params );
+
+  // Free memory
+  delete writer;
+  delete reader;
+
+  return( 0 );
+}
+
+// eof - $RCSfile$
diff --git a/doc/third_party/Pluma/build/Doxyfile b/doc/third_party/Pluma/build/Doxyfile
new file mode 100644 (file)
index 0000000..b0d5dd6
--- /dev/null
@@ -0,0 +1,1597 @@
+# Doxyfile 1.6.3
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project
+#
+# All text after a hash (#) is considered a comment and will be ignored
+# The format is:
+#       TAG = value [value, ...]
+# For lists items can also be appended using:
+#       TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (" ")
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file 
+# that follow. The default is UTF-8 which is also the encoding used for all 
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the 
+# iconv built into libc) for the transcoding. See 
+# http://www.gnu.org/software/libiconv for the list of possible encodings.
+
+DOXYFILE_ENCODING      = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded 
+# by quotes) that should identify the project.
+
+PROJECT_NAME           = Pluma
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number. 
+# This could be handy for archiving the generated documentation or 
+# if some version control system is used.
+
+PROJECT_NUMBER         = 
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) 
+# base path where the generated documentation will be put. 
+# If a relative path is entered, it will be relative to the location 
+# where doxygen was started. If left blank the current directory will be used.
+
+OUTPUT_DIRECTORY       = ..
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 
+# 4096 sub-directories (in 2 levels) under the output directory of each output 
+# format and will distribute the generated files over these directories. 
+# Enabling this option can be useful when feeding doxygen a huge amount of 
+# source files, where putting all generated files in the same directory would 
+# otherwise cause performance problems for the file system.
+
+CREATE_SUBDIRS         = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all 
+# documentation generated by doxygen is written. Doxygen will use this 
+# information to generate all constant output in the proper language. 
+# The default language is English, other supported languages are: 
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, 
+# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, 
+# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English 
+# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, 
+# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, 
+# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
+
+OUTPUT_LANGUAGE        = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will 
+# include brief member descriptions after the members that are listed in 
+# the file and class documentation (similar to JavaDoc). 
+# Set to NO to disable this.
+
+BRIEF_MEMBER_DESC      = YES
+
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend 
+# the brief description of a member or function before the detailed description. 
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the 
+# brief descriptions will be completely suppressed.
+
+REPEAT_BRIEF           = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator 
+# that is used to form the text in various listings. Each string 
+# in this list, if found as the leading text of the brief description, will be 
+# stripped from the text and the result after processing the whole list, is 
+# used as the annotated text. Otherwise, the brief description is used as-is. 
+# If left blank, the following values are used ("$name" is automatically 
+# replaced with the name of the entity): "The $name class" "The $name widget" 
+# "The $name file" "is" "provides" "specifies" "contains" 
+# "represents" "a" "an" "the"
+
+ABBREVIATE_BRIEF       = "The $name class" \
+                         "The $name widget" \
+                         "The $name file" \
+                         is \
+                         provides \
+                         specifies \
+                         contains \
+                         represents \
+                         a \
+                         an \
+                         the
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then 
+# Doxygen will generate a detailed section even if there is only a brief 
+# description.
+
+ALWAYS_DETAILED_SEC    = YES
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all 
+# inherited members of a class in the documentation of that class as if those 
+# members were ordinary class members. Constructors, destructors and assignment 
+# operators of the base classes will not be shown.
+
+INLINE_INHERITED_MEMB  = YES
+
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full 
+# path before files name in the file list and in the header files. If set 
+# to NO the shortest path that makes the file name unique will be used.
+
+FULL_PATH_NAMES        = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag 
+# can be used to strip a user-defined part of the path. Stripping is 
+# only done if one of the specified strings matches the left-hand part of 
+# the path. The tag can be used to show relative paths in the file list. 
+# If left blank the directory from which doxygen is run is used as the 
+# path to strip.
+
+STRIP_FROM_PATH        = 
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of 
+# the path mentioned in the documentation of a class, which tells 
+# the reader which header file to include in order to use a class. 
+# If left blank only the name of the header file containing the class 
+# definition is used. Otherwise one should specify the include paths that 
+# are normally passed to the compiler using the -I flag.
+
+STRIP_FROM_INC_PATH    = 
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter 
+# (but less readable) file names. This can be useful is your file systems 
+# doesn't support long names like on DOS, Mac, or CD-ROM.
+
+SHORT_NAMES            = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen 
+# will interpret the first line (until the first dot) of a JavaDoc-style 
+# comment as the brief description. If set to NO, the JavaDoc 
+# comments will behave just like regular Qt-style comments 
+# (thus requiring an explicit @brief command for a brief description.)
+
+JAVADOC_AUTOBRIEF      = NO
+
+# If the QT_AUTOBRIEF tag is set to YES then Doxygen will 
+# interpret the first line (until the first dot) of a Qt-style 
+# comment as the brief description. If set to NO, the comments 
+# will behave just like regular Qt-style comments (thus requiring 
+# an explicit \brief command for a brief description.)
+
+QT_AUTOBRIEF           = NO
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen 
+# treat a multi-line C++ special comment block (i.e. a block of //! or /// 
+# comments) as a brief description. This used to be the default behaviour. 
+# The new default is to treat a multi-line C++ comment block as a detailed 
+# description. Set this tag to YES if you prefer the old behaviour instead.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented 
+# member inherits the documentation from any documented member that it 
+# re-implements.
+
+INHERIT_DOCS           = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce 
+# a new page for each member. If set to NO, the documentation of a member will 
+# be part of the file/class/namespace that contains it.
+
+SEPARATE_MEMBER_PAGES  = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab. 
+# Doxygen uses this value to replace tabs by spaces in code fragments.
+
+TAB_SIZE               = 4
+
+# This tag can be used to specify a number of aliases that acts 
+# as commands in the documentation. An alias has the form "name=value". 
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to 
+# put the command \sideeffect (or @sideeffect) in the documentation, which 
+# will result in a user-defined paragraph with heading "Side Effects:". 
+# You can put \n's in the value part of an alias to insert newlines.
+
+ALIASES                = 
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C 
+# sources only. Doxygen will then generate output that is more tailored for C. 
+# For instance, some of the names that are used will be different. The list 
+# of all members will be omitted, etc.
+
+OPTIMIZE_OUTPUT_FOR_C  = NO
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java 
+# sources only. Doxygen will then generate output that is more tailored for 
+# Java. For instance, namespaces will be presented as packages, qualified 
+# scopes will look different, etc.
+
+OPTIMIZE_OUTPUT_JAVA   = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran 
+# sources only. Doxygen will then generate output that is more tailored for 
+# Fortran.
+
+OPTIMIZE_FOR_FORTRAN   = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL 
+# sources. Doxygen will then generate output that is tailored for 
+# VHDL.
+
+OPTIMIZE_OUTPUT_VHDL   = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it parses. 
+# With this tag you can assign which parser to use for a given extension. 
+# Doxygen has a built-in mapping, but you can override or extend it using this tag. 
+# The format is ext=language, where ext is a file extension, and language is one of 
+# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, 
+# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat 
+# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), 
+# use: inc=Fortran f=C. Note that for custom extensions you also need to set
+# FILE_PATTERNS otherwise the files are not read by doxygen.
+
+EXTENSION_MAPPING      = 
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want 
+# to include (a tag file for) the STL sources as input, then you should 
+# set this tag to YES in order to let doxygen match functions declarations and 
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. 
+# func(std::string) {}). This also make the inheritance and collaboration 
+# diagrams that involve STL classes more complete and accurate.
+
+BUILTIN_STL_SUPPORT    = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to 
+# enable parsing support.
+
+CPP_CLI_SUPPORT        = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. 
+# Doxygen will parse them like normal C++ but will assume all classes use public 
+# instead of private inheritance when no explicit protection keyword is present.
+
+SIP_SUPPORT            = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate getter 
+# and setter methods for a property. Setting this option to YES (the default) 
+# will make doxygen to replace the get and set methods by a property in the 
+# documentation. This will only work if the methods are indeed getting or 
+# setting a simple type. If this is not the case, or you want to show the 
+# methods anyway, you should set this option to NO.
+
+IDL_PROPERTY_SUPPORT   = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC 
+# tag is set to YES, then doxygen will reuse the documentation of the first 
+# member in the group (if any) for the other members of the group. By default 
+# all members of a group must be documented explicitly.
+
+DISTRIBUTE_GROUP_DOC   = NO
+
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of 
+# the same type (for instance a group of public functions) to be put as a 
+# subgroup of that type (e.g. under the Public Functions section). Set it to 
+# NO to prevent subgrouping. Alternatively, this can be done per class using 
+# the \nosubgrouping command.
+
+SUBGROUPING            = YES
+
+# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum 
+# is documented as struct, union, or enum with the name of the typedef. So 
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct 
+# with name TypeT. When disabled the typedef will appear as a member of a file, 
+# namespace, or class. And the struct will be named TypeS. This can typically 
+# be useful for C code in case the coding convention dictates that all compound 
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+
+TYPEDEF_HIDES_STRUCT   = NO
+
+# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to 
+# determine which symbols to keep in memory and which to flush to disk. 
+# When the cache is full, less often used symbols will be written to disk. 
+# For small to medium size projects (<1000 input files) the default value is 
+# probably good enough. For larger projects a too small cache size can cause 
+# doxygen to be busy swapping symbols to and from disk most of the time 
+# causing a significant performance penality. 
+# If the system has enough physical memory increasing the cache will improve the 
+# performance by keeping more symbols in memory. Note that the value works on 
+# a logarithmic scale so increasing the size by one will rougly double the 
+# memory usage. The cache size is given by this formula: 
+# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, 
+# corresponding to a cache size of 2^16 = 65536 symbols
+
+SYMBOL_CACHE_SIZE      = 0
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in 
+# documentation are documented, even if no documentation was available. 
+# Private class members and static file members will be hidden unless 
+# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+
+EXTRACT_ALL            = NO
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class 
+# will be included in the documentation.
+
+EXTRACT_PRIVATE        = NO
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file 
+# will be included in the documentation.
+
+EXTRACT_STATIC         = YES
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) 
+# defined locally in source files will be included in the documentation. 
+# If set to NO only classes defined in header files are included.
+
+EXTRACT_LOCAL_CLASSES  = YES
+
+# This flag is only useful for Objective-C code. When set to YES local 
+# methods, which are defined in the implementation section but not in 
+# the interface are included in the documentation. 
+# If set to NO (the default) only methods in the interface are included.
+
+EXTRACT_LOCAL_METHODS  = NO
+
+# If this flag is set to YES, the members of anonymous namespaces will be 
+# extracted and appear in the documentation as a namespace called 
+# 'anonymous_namespace{file}', where file will be replaced with the base 
+# name of the file that contains the anonymous namespace. By default 
+# anonymous namespace are hidden.
+
+EXTRACT_ANON_NSPACES   = NO
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all 
+# undocumented members of documented classes, files or namespaces. 
+# If set to NO (the default) these members will be included in the 
+# various overviews, but no documentation section is generated. 
+# This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_MEMBERS     = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all 
+# undocumented classes that are normally visible in the class hierarchy. 
+# If set to NO (the default) these classes will be included in the various 
+# overviews. This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_CLASSES     = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all 
+# friend (class|struct|union) declarations. 
+# If set to NO (the default) these declarations will be included in the 
+# documentation.
+
+HIDE_FRIEND_COMPOUNDS  = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any 
+# documentation blocks found inside the body of a function. 
+# If set to NO (the default) these blocks will be appended to the 
+# function's detailed documentation block.
+
+HIDE_IN_BODY_DOCS      = NO
+
+# The INTERNAL_DOCS tag determines if documentation 
+# that is typed after a \internal command is included. If the tag is set 
+# to NO (the default) then the documentation will be excluded. 
+# Set it to YES to include the internal documentation.
+
+INTERNAL_DOCS          = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate 
+# file names in lower-case letters. If set to YES upper-case letters are also 
+# allowed. This is useful if you have classes or files whose names only differ 
+# in case and if your file system supports case sensitive file names. Windows 
+# and Mac users are advised to set this option to NO.
+
+CASE_SENSE_NAMES       = YES
+
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen 
+# will show members with their full class and namespace scopes in the 
+# documentation. If set to YES the scope will be hidden.
+
+HIDE_SCOPE_NAMES       = NO
+
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen 
+# will put a list of the files that are included by a file in the documentation 
+# of that file.
+
+SHOW_INCLUDE_FILES     = YES
+
+# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen 
+# will list include files with double quotes in the documentation 
+# rather than with sharp brackets.
+
+FORCE_LOCAL_INCLUDES   = NO
+
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] 
+# is inserted in the documentation for inline members.
+
+INLINE_INFO            = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen 
+# will sort the (detailed) documentation of file and class members 
+# alphabetically by member name. If set to NO the members will appear in 
+# declaration order.
+
+SORT_MEMBER_DOCS       = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the 
+# brief documentation of file, namespace and class members alphabetically 
+# by member name. If set to NO (the default) the members will appear in 
+# declaration order.
+
+SORT_BRIEF_DOCS        = NO
+
+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen
+# will sort the (brief and detailed) documentation of class members so that
+# constructors and destructors are listed first. If set to NO (the default)
+# the constructors will appear in the respective orders defined by
+# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS.
+# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO
+# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
+
+SORT_MEMBERS_CTORS_1ST = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the 
+# hierarchy of group names into alphabetical order. If set to NO (the default) 
+# the group names will appear in their defined order.
+
+SORT_GROUP_NAMES       = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be 
+# sorted by fully-qualified names, including namespaces. If set to 
+# NO (the default), the class list will be sorted only by class name, 
+# not including the namespace part. 
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. 
+# Note: This option applies only to the class list, not to the 
+# alphabetical list.
+
+SORT_BY_SCOPE_NAME     = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or 
+# disable (NO) the todo list. This list is created by putting \todo 
+# commands in the documentation.
+
+GENERATE_TODOLIST      = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or 
+# disable (NO) the test list. This list is created by putting \test 
+# commands in the documentation.
+
+GENERATE_TESTLIST      = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or 
+# disable (NO) the bug list. This list is created by putting \bug 
+# commands in the documentation.
+
+GENERATE_BUGLIST       = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or 
+# disable (NO) the deprecated list. This list is created by putting 
+# \deprecated commands in the documentation.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional 
+# documentation sections, marked by \if sectionname ... \endif.
+
+ENABLED_SECTIONS       = 
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines 
+# the initial value of a variable or define consists of for it to appear in 
+# the documentation. If the initializer consists of more lines than specified 
+# here it will be hidden. Use a value of 0 to hide initializers completely. 
+# The appearance of the initializer of individual variables and defines in the 
+# documentation can be controlled using \showinitializer or \hideinitializer 
+# command in the documentation regardless of this setting.
+
+MAX_INITIALIZER_LINES  = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated 
+# at the bottom of the documentation of classes and structs. If set to YES the 
+# list will mention the files that were used to generate the documentation.
+
+SHOW_USED_FILES        = YES
+
+# If the sources in your project are distributed over multiple directories 
+# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy 
+# in the documentation. The default is NO.
+
+SHOW_DIRECTORIES       = NO
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page. 
+# This will remove the Files entry from the Quick Index and from the 
+# Folder Tree View (if specified). The default is YES.
+
+SHOW_FILES             = YES
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the 
+# Namespaces page.  This will remove the Namespaces entry from the Quick Index 
+# and from the Folder Tree View (if specified). The default is YES.
+
+SHOW_NAMESPACES        = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that 
+# doxygen should invoke to get the current version for each file (typically from 
+# the version control system). Doxygen will invoke the program by executing (via 
+# popen()) the command <command> <input-file>, where <command> is the value of 
+# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file 
+# provided by doxygen. Whatever the program writes to standard output 
+# is used as the file version. See the manual for examples.
+
+FILE_VERSION_FILTER    = 
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by 
+# doxygen. The layout file controls the global structure of the generated output files 
+# in an output format independent way. The create the layout file that represents 
+# doxygen's defaults, run doxygen with the -l option. You can optionally specify a 
+# file name after the option, if omitted DoxygenLayout.xml will be used as the name 
+# of the layout file.
+
+LAYOUT_FILE            = 
+
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated 
+# by doxygen. Possible values are YES and NO. If left blank NO is used.
+
+QUIET                  = NO
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are 
+# generated by doxygen. Possible values are YES and NO. If left blank 
+# NO is used.
+
+WARNINGS               = YES
+
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings 
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will 
+# automatically be disabled.
+
+WARN_IF_UNDOCUMENTED   = YES
+
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for 
+# potential errors in the documentation, such as not documenting some 
+# parameters in a documented function, or documenting parameters that 
+# don't exist or using markup commands wrongly.
+
+WARN_IF_DOC_ERROR      = YES
+
+# This WARN_NO_PARAMDOC option can be abled to get warnings for 
+# functions that are documented, but have no documentation for their parameters 
+# or return value. If set to NO (the default) doxygen will only warn about 
+# wrong or incomplete parameter documentation, but not about the absence of 
+# documentation.
+
+WARN_NO_PARAMDOC       = YES
+
+# The WARN_FORMAT tag determines the format of the warning messages that 
+# doxygen can produce. The string should contain the $file, $line, and $text 
+# tags, which will be replaced by the file and line number from which the 
+# warning originated and the warning text. Optionally the format may contain 
+# $version, which will be replaced by the version of the file (if it could 
+# be obtained via FILE_VERSION_FILTER)
+
+WARN_FORMAT            = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning 
+# and error messages should be written. If left blank the output is written 
+# to stderr.
+
+WARN_LOGFILE           = 
+
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag can be used to specify the files and/or directories that contain 
+# documented source files. You may enter file names like "myfile.cpp" or 
+# directories like "/usr/src/myproject". Separate the files or directories 
+# with spaces.
+
+INPUT                  = ../../../Pluma/ \
+                         Doxygen.hpp
+
+# This tag can be used to specify the character encoding of the source files 
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is 
+# also the default input encoding. Doxygen uses libiconv (or the iconv built 
+# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for 
+# the list of possible encodings.
+
+INPUT_ENCODING         = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the 
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp 
+# and *.h) to filter out the source-files in the directories. If left 
+# blank the following patterns are tested: 
+# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx 
+# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
+
+FILE_PATTERNS          = *.c \
+                         *.cc \
+                         *.cxx \
+                         *.cpp \
+                         *.c++ \
+                         *.d \
+                         *.java \
+                         *.ii \
+                         *.ixx \
+                         *.ipp \
+                         *.i++ \
+                         *.inl \
+                         *.hh \
+                         *.hxx \
+                         *.hpp \
+                         *.h++ \
+                         *.idl \
+                         *.odl \
+                         *.cs \
+                         *.php \
+                         *.php3 \
+                         *.inc \
+                         *.dox \
+                         *.py
+
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories 
+# should be searched for input files as well. Possible values are YES and NO. 
+# If left blank NO is used.
+
+RECURSIVE              = YES
+
+# The EXCLUDE tag can be used to specify files and/or directories that should 
+# excluded from the INPUT source files. This way you can easily exclude a 
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+
+EXCLUDE                = 
+
+# The EXCLUDE_SYMLINKS tag can be used select whether or not files or 
+# directories that are symbolic links (a Unix filesystem feature) are excluded 
+# from the input.
+
+EXCLUDE_SYMLINKS       = NO
+
+# If the value of the INPUT tag contains directories, you can use the 
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude 
+# certain files from those directories. Note that the wildcards are matched 
+# against the file with absolute path, so to exclude all test directories 
+# for example use the pattern */test/*
+
+EXCLUDE_PATTERNS       = .svn \
+                         Linux \
+                         Unix \
+                         OSX*
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names 
+# (namespaces, classes, functions, etc.) that should be excluded from the 
+# output. The symbol name can be a fully qualified name, a word, or if the 
+# wildcard * is used, a substring. Examples: ANamespace, AClass, 
+# AClass::ANamespace, ANamespace::*Test
+
+EXCLUDE_SYMBOLS        = priv
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or 
+# directories that contain example code fragments that are included (see 
+# the \include command).
+
+EXAMPLE_PATH           = 
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the 
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp 
+# and *.h) to filter out the source-files in the directories. If left 
+# blank all files are included.
+
+EXAMPLE_PATTERNS       = *
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be 
+# searched for input files to be used with the \include or \dontinclude 
+# commands irrespective of the value of the RECURSIVE tag. 
+# Possible values are YES and NO. If left blank NO is used.
+
+EXAMPLE_RECURSIVE      = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or 
+# directories that contain image that are included in the documentation (see 
+# the \image command).
+
+IMAGE_PATH             = 
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should 
+# invoke to filter for each input file. Doxygen will invoke the filter program 
+# by executing (via popen()) the command <filter> <input-file>, where <filter> 
+# is the value of the INPUT_FILTER tag, and <input-file> is the name of an 
+# input file. Doxygen will then use the output that the filter program writes 
+# to standard output.  If FILTER_PATTERNS is specified, this tag will be 
+# ignored.
+
+INPUT_FILTER           = 
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern 
+# basis.  Doxygen will compare the file name with each pattern and apply the 
+# filter if there is a match.  The filters are a list of the form: 
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further 
+# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER 
+# is applied to all files.
+
+FILTER_PATTERNS        = 
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using 
+# INPUT_FILTER) will be used to filter the input files when producing source 
+# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+
+FILTER_SOURCE_FILES    = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will 
+# be generated. Documented entities will be cross-referenced with these sources. 
+# Note: To get rid of all source code in the generated output, make sure also 
+# VERBATIM_HEADERS is set to NO.
+
+SOURCE_BROWSER         = YES
+
+# Setting the INLINE_SOURCES tag to YES will include the body 
+# of functions and classes directly in the documentation.
+
+INLINE_SOURCES         = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct 
+# doxygen to hide any special comment blocks from generated source code 
+# fragments. Normal C and C++ comments will always remain visible.
+
+STRIP_CODE_COMMENTS    = YES
+
+# If the REFERENCED_BY_RELATION tag is set to YES 
+# then for each documented function all documented 
+# functions referencing it will be listed.
+
+REFERENCED_BY_RELATION = NO
+
+# If the REFERENCES_RELATION tag is set to YES 
+# then for each documented function all documented entities 
+# called/used by that function will be listed.
+
+REFERENCES_RELATION    = NO
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) 
+# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from 
+# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will 
+# link to the source code.  Otherwise they will link to the documentation.
+
+REFERENCES_LINK_SOURCE = NO
+
+# If the USE_HTAGS tag is set to YES then the references to source code 
+# will point to the HTML generated by the htags(1) tool instead of doxygen 
+# built-in source browser. The htags tool is part of GNU's global source 
+# tagging system (see http://www.gnu.org/software/global/global.html). You 
+# will need version 4.8.6 or higher.
+
+USE_HTAGS              = NO
+
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen 
+# will generate a verbatim copy of the header file for each class for 
+# which an include is specified. Set to NO to disable this.
+
+VERBATIM_HEADERS       = YES
+
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index 
+# of all compounds will be generated. Enable this if the project 
+# contains a lot of classes, structs, unions or interfaces.
+
+ALPHABETICAL_INDEX     = YES
+
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then 
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns 
+# in which this list will be split (can be a number in the range [1..20])
+
+COLS_IN_ALPHA_INDEX    = 5
+
+# In case all classes in a project start with a common prefix, all 
+# classes will be put under the same header in the alphabetical index. 
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that 
+# should be ignored while generating the index headers.
+
+IGNORE_PREFIX          = 
+
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will 
+# generate HTML output.
+
+GENERATE_HTML          = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `html' will be used as the default path.
+
+HTML_OUTPUT            = html
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for 
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank 
+# doxygen will generate files with .html extension.
+
+HTML_FILE_EXTENSION    = .htm
+
+# The HTML_HEADER tag can be used to specify a personal HTML header for 
+# each generated HTML page. If it is left blank doxygen will generate a 
+# standard header.
+
+HTML_HEADER            = header.htm
+
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for 
+# each generated HTML page. If it is left blank doxygen will generate a 
+# standard footer.
+
+HTML_FOOTER            = footer.htm
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading 
+# style sheet that is used by each HTML page. It can be used to 
+# fine-tune the look of the HTML output. If the tag is left blank doxygen 
+# will generate a default style sheet. Note that doxygen will try to copy 
+# the style sheet file to the HTML output directory, so don't put your own 
+# stylesheet in the HTML output directory as well, or it will be erased!
+
+HTML_STYLESHEET        = doxygen.css
+
+# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML 
+# page will contain the date and time when the page was generated. Setting 
+# this to NO can help when comparing the output of multiple runs.
+
+HTML_TIMESTAMP         = YES
+
+# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, 
+# files or namespaces will be aligned in HTML using tables. If set to 
+# NO a bullet list will be used.
+
+HTML_ALIGN_MEMBERS     = YES
+
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML 
+# documentation will contain sections that can be hidden and shown after the 
+# page has loaded. For this to work a browser that supports 
+# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox 
+# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
+
+HTML_DYNAMIC_SECTIONS  = NO
+
+# If the GENERATE_DOCSET tag is set to YES, additional index files 
+# will be generated that can be used as input for Apple's Xcode 3 
+# integrated development environment, introduced with OSX 10.5 (Leopard). 
+# To create a documentation set, doxygen will generate a Makefile in the 
+# HTML output directory. Running make will produce the docset in that 
+# directory and running "make install" will install the docset in 
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find 
+# it at startup. 
+# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information.
+
+GENERATE_DOCSET        = NO
+
+# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the 
+# feed. A documentation feed provides an umbrella under which multiple 
+# documentation sets from a single provider (such as a company or product suite) 
+# can be grouped.
+
+DOCSET_FEEDNAME        = "Doxygen generated docs"
+
+# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that 
+# should uniquely identify the documentation set bundle. This should be a 
+# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen 
+# will append .docset to the name.
+
+DOCSET_BUNDLE_ID       = org.doxygen.Project
+
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files 
+# will be generated that can be used as input for tools like the 
+# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) 
+# of the generated HTML documentation.
+
+GENERATE_HTMLHELP      = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can 
+# be used to specify the file name of the resulting .chm file. You 
+# can add a path in front of the file if the result should not be 
+# written to the html output directory.
+
+CHM_FILE               = ../Pluma.chm
+
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can 
+# be used to specify the location (absolute path including file name) of 
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run 
+# the HTML help compiler on the generated index.hhp.
+
+HHC_LOCATION           = "C:/Program Files/HTML Help Workshop/hhc.exe"
+
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag 
+# controls if a separate .chi index file is generated (YES) or that 
+# it should be included in the master .chm file (NO).
+
+GENERATE_CHI           = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING 
+# is used to encode HtmlHelp index (hhk), content (hhc) and project file 
+# content.
+
+CHM_INDEX_ENCODING     = 
+
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag 
+# controls whether a binary table of contents is generated (YES) or a 
+# normal table of contents (NO) in the .chm file.
+
+BINARY_TOC             = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members 
+# to the contents of the HTML help documentation and to the tree view.
+
+TOC_EXPAND             = NO
+
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER 
+# are set, an additional index file will be generated that can be used as input for 
+# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated 
+# HTML documentation.
+
+GENERATE_QHP           = NO
+
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can 
+# be used to specify the file name of the resulting .qch file. 
+# The path specified is relative to the HTML output folder.
+
+QCH_FILE               = 
+
+# The QHP_NAMESPACE tag specifies the namespace to use when generating 
+# Qt Help Project output. For more information please see 
+# http://doc.trolltech.com/qthelpproject.html#namespace
+
+QHP_NAMESPACE          = org.doxygen.Project
+
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating 
+# Qt Help Project output. For more information please see 
+# http://doc.trolltech.com/qthelpproject.html#virtual-folders
+
+QHP_VIRTUAL_FOLDER     = doc
+
+# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. 
+# For more information please see 
+# http://doc.trolltech.com/qthelpproject.html#custom-filters
+
+QHP_CUST_FILTER_NAME   = 
+
+# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see 
+# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">Qt Help Project / Custom Filters</a>.
+
+QHP_CUST_FILTER_ATTRS  = 
+
+# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's 
+# filter section matches. 
+# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">Qt Help Project / Filter Attributes</a>.
+
+QHP_SECT_FILTER_ATTRS  = 
+
+# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can 
+# be used to specify the location of Qt's qhelpgenerator. 
+# If non-empty doxygen will try to run qhelpgenerator on the generated 
+# .qhp file.
+
+QHG_LOCATION           = 
+
+# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files  
+# will be generated, which together with the HTML files, form an Eclipse help  
+# plugin. To install this plugin and make it available under the help contents 
+# menu in Eclipse, the contents of the directory containing the HTML and XML 
+# files needs to be copied into the plugins directory of eclipse. The name of 
+# the directory within the plugins directory should be the same as 
+# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before
+# the help appears.
+
+GENERATE_ECLIPSEHELP   = NO
+
+# A unique identifier for the eclipse help plugin. When installing the plugin 
+# the directory name containing the HTML and XML files should also have 
+# this name.
+
+ECLIPSE_DOC_ID         = org.doxygen.Project
+
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index at 
+# top of each HTML page. The value NO (the default) enables the index and 
+# the value YES disables it.
+
+DISABLE_INDEX          = NO
+
+# This tag can be used to set the number of enum values (range [1..20]) 
+# that doxygen will group on one line in the generated HTML documentation.
+
+ENUM_VALUES_PER_LINE   = 1
+
+# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index 
+# structure should be generated to display hierarchical information. 
+# If the tag value is set to YES, a side panel will be generated 
+# containing a tree-like index structure (just like the one that 
+# is generated for HTML Help). For this to work a browser that supports 
+# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). 
+# Windows users are probably better off using the HTML help feature.
+
+GENERATE_TREEVIEW      = NO
+
+# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, 
+# and Class Hierarchy pages using a tree view instead of an ordered list.
+
+USE_INLINE_TREES       = NO
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be 
+# used to set the initial width (in pixels) of the frame in which the tree 
+# is shown.
+
+TREEVIEW_WIDTH         = 250
+
+# Use this tag to change the font size of Latex formulas included 
+# as images in the HTML documentation. The default is 10. Note that 
+# when you change the font size after a successful doxygen run you need 
+# to manually remove any form_*.png images from the HTML output directory 
+# to force them to be regenerated.
+
+FORMULA_FONTSIZE       = 10
+
+# When the SEARCHENGINE tag is enabled doxygen will generate a search box
+# for the HTML output. The underlying search engine uses javascript 
+# and DHTML and should work on any modern browser. Note that when using
+# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets
+# (GENERATE_DOCSET) there is already a search function so this one should 
+# typically be disabled. For large projects the javascript based search engine 
+# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution.
+
+SEARCHENGINE           = NO
+
+# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
+# implemented using a PHP enabled web server instead of at the web client
+# using Javascript. Doxygen will generate the search PHP script and index 
+# file to put on the web server. The advantage of the server
+# based approach is that it scales better to large projects and allows
+# full text search. The disadvances is that it is more difficult to setup 
+# and does not have live searching capabilities.
+
+SERVER_BASED_SEARCH    = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will 
+# generate Latex output.
+
+GENERATE_LATEX         = NO
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `latex' will be used as the default path.
+
+LATEX_OUTPUT           = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be 
+# invoked. If left blank `latex' will be used as the default command name. 
+# Note that when enabling USE_PDFLATEX this option is only used for 
+# generating bitmaps for formulas in the HTML output, but not in the 
+# Makefile that is written to the output directory.
+
+LATEX_CMD_NAME         = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to 
+# generate index for LaTeX. If left blank `makeindex' will be used as the 
+# default command name.
+
+MAKEINDEX_CMD_NAME     = makeindex
+
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact 
+# LaTeX documents. This may be useful for small projects and may help to 
+# save some trees in general.
+
+COMPACT_LATEX          = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used 
+# by the printer. Possible values are: a4, a4wide, letter, legal and 
+# executive. If left blank a4wide will be used.
+
+PAPER_TYPE             = a4wide
+
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX 
+# packages that should be included in the LaTeX output.
+
+EXTRA_PACKAGES         = 
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for 
+# the generated latex document. The header should contain everything until 
+# the first chapter. If it is left blank doxygen will generate a 
+# standard header. Notice: only use this tag if you know what you are doing!
+
+LATEX_HEADER           = 
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated 
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will 
+# contain links (just like the HTML output) instead of page references 
+# This makes the output suitable for online browsing using a pdf viewer.
+
+PDF_HYPERLINKS         = NO
+
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of 
+# plain latex in the generated Makefile. Set this option to YES to get a 
+# higher quality PDF documentation.
+
+USE_PDFLATEX           = NO
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. 
+# command to the generated LaTeX files. This will instruct LaTeX to keep 
+# running if errors occur, instead of asking the user for help. 
+# This option is also used when generating formulas in HTML.
+
+LATEX_BATCHMODE        = NO
+
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not 
+# include the index chapters (such as File Index, Compound Index, etc.) 
+# in the output.
+
+LATEX_HIDE_INDICES     = NO
+
+# If LATEX_SOURCE_CODE is set to YES then doxygen will include
+# source code with syntax highlighting in the LaTeX output.
+# Note that which sources are shown also depends on other settings
+# such as SOURCE_BROWSER.
+
+LATEX_SOURCE_CODE      = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output 
+# The RTF output is optimized for Word 97 and may not look very pretty with 
+# other RTF readers or editors.
+
+GENERATE_RTF           = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `rtf' will be used as the default path.
+
+RTF_OUTPUT             = rtf
+
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact 
+# RTF documents. This may be useful for small projects and may help to 
+# save some trees in general.
+
+COMPACT_RTF            = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated 
+# will contain hyperlink fields. The RTF file will 
+# contain links (just like the HTML output) instead of page references. 
+# This makes the output suitable for online browsing using WORD or other 
+# programs which support those fields. 
+# Note: wordpad (write) and others do not support links.
+
+RTF_HYPERLINKS         = NO
+
+# Load stylesheet definitions from file. Syntax is similar to doxygen's 
+# config file, i.e. a series of assignments. You only have to provide 
+# replacements, missing definitions are set to their default value.
+
+RTF_STYLESHEET_FILE    = 
+
+# Set optional variables used in the generation of an rtf document. 
+# Syntax is similar to doxygen's config file.
+
+RTF_EXTENSIONS_FILE    = 
+
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will 
+# generate man pages
+
+GENERATE_MAN           = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `man' will be used as the default path.
+
+MAN_OUTPUT             = man
+
+# The MAN_EXTENSION tag determines the extension that is added to 
+# the generated man pages (default is the subroutine's section .3)
+
+MAN_EXTENSION          = .3
+
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output, 
+# then it will generate one additional man file for each entity 
+# documented in the real man page(s). These additional files 
+# only source the real man page, but without them the man command 
+# would be unable to find the correct page. The default is NO.
+
+MAN_LINKS              = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES Doxygen will 
+# generate an XML file that captures the structure of 
+# the code including all documentation.
+
+GENERATE_XML           = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `xml' will be used as the default path.
+
+XML_OUTPUT             = xml
+
+# The XML_SCHEMA tag can be used to specify an XML schema, 
+# which can be used by a validating XML parser to check the 
+# syntax of the XML files.
+
+XML_SCHEMA             = 
+
+# The XML_DTD tag can be used to specify an XML DTD, 
+# which can be used by a validating XML parser to check the 
+# syntax of the XML files.
+
+XML_DTD                = 
+
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will 
+# dump the program listings (including syntax highlighting 
+# and cross-referencing information) to the XML output. Note that 
+# enabling this will significantly increase the size of the XML output.
+
+XML_PROGRAMLISTING     = YES
+
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will 
+# generate an AutoGen Definitions (see autogen.sf.net) file 
+# that captures the structure of the code including all 
+# documentation. Note that this feature is still experimental 
+# and incomplete at the moment.
+
+GENERATE_AUTOGEN_DEF   = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will 
+# generate a Perl module file that captures the structure of 
+# the code including all documentation. Note that this 
+# feature is still experimental and incomplete at the 
+# moment.
+
+GENERATE_PERLMOD       = NO
+
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate 
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able 
+# to generate PDF and DVI output from the Perl module output.
+
+PERLMOD_LATEX          = NO
+
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be 
+# nicely formatted so it can be parsed by a human reader.  This is useful 
+# if you want to understand what is going on.  On the other hand, if this 
+# tag is set to NO the size of the Perl module output will be much smaller 
+# and Perl will parse it just the same.
+
+PERLMOD_PRETTY         = YES
+
+# The names of the make variables in the generated doxyrules.make file 
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. 
+# This is useful so different doxyrules.make files included by the same 
+# Makefile don't overwrite each other's variables.
+
+PERLMOD_MAKEVAR_PREFIX = 
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will 
+# evaluate all C-preprocessor directives found in the sources and include 
+# files.
+
+ENABLE_PREPROCESSING   = YES
+
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro 
+# names in the source code. If set to NO (the default) only conditional 
+# compilation will be performed. Macro expansion can be done in a controlled 
+# way by setting EXPAND_ONLY_PREDEF to YES.
+
+MACRO_EXPANSION        = YES
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES 
+# then the macro expansion is limited to the macros specified with the 
+# PREDEFINED and EXPAND_AS_DEFINED tags.
+
+EXPAND_ONLY_PREDEF     = YES
+
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files 
+# in the INCLUDE_PATH (see below) will be search if a #include is found.
+
+SEARCH_INCLUDES        = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that 
+# contain include files that are not input files but should be processed by 
+# the preprocessor.
+
+INCLUDE_PATH           = 
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard 
+# patterns (like *.h and *.hpp) to filter out the header-files in the 
+# directories. If left blank, the patterns specified with FILE_PATTERNS will 
+# be used.
+
+INCLUDE_FILE_PATTERNS  = 
+
+# The PREDEFINED tag can be used to specify one or more macro names that 
+# are defined before the preprocessor is started (similar to the -D option of 
+# gcc). The argument of the tag is a list of macros of the form: name 
+# or name=definition (no spaces). If the definition and the = are 
+# omitted =1 is assumed. To prevent a macro definition from being 
+# undefined via #undef or recursively expanded use the := operator 
+# instead of the = operator.
+
+PREDEFINED             = 
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then 
+# this tag can be used to specify a list of macro names that should be expanded. 
+# The macro definition that is found in the sources will be used. 
+# Use the PREDEFINED tag if you want to use a different macro definition.
+
+EXPAND_AS_DEFINED      = 
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then 
+# doxygen's preprocessor will remove all function-like macros that are alone 
+# on a line, have an all uppercase name, and do not end with a semicolon. Such 
+# function macros are typically used for boiler-plate code, and will confuse 
+# the parser if not removed.
+
+SKIP_FUNCTION_MACROS   = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES option can be used to specify one or more tagfiles. 
+# Optionally an initial location of the external documentation 
+# can be added for each tagfile. The format of a tag file without 
+# this location is as follows: 
+#   TAGFILES = file1 file2 ... 
+# Adding location for the tag files is done as follows: 
+#   TAGFILES = file1=loc1 "file2 = loc2" ... 
+# where "loc1" and "loc2" can be relative or absolute paths or 
+# URLs. If a location is present for each tag, the installdox tool 
+# does not have to be run to correct the links. 
+# Note that each tag file must have a unique name 
+# (where the name does NOT include the path) 
+# If a tag file is not located in the directory in which doxygen 
+# is run, you must also specify the path to the tagfile here.
+
+TAGFILES               = 
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create 
+# a tag file that is based on the input files it reads.
+
+GENERATE_TAGFILE       = 
+
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed 
+# in the class index. If set to NO only the inherited external classes 
+# will be listed.
+
+ALLEXTERNALS           = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed 
+# in the modules index. If set to NO, only the current project's groups will 
+# be listed.
+
+EXTERNAL_GROUPS        = YES
+
+# The PERL_PATH should be the absolute path and name of the perl script 
+# interpreter (i.e. the result of `which perl').
+
+PERL_PATH              = /usr/bin/perl
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will 
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base 
+# or super classes. Setting the tag to NO turns the diagrams off. Note that 
+# this option is superseded by the HAVE_DOT option below. This is only a 
+# fallback. It is recommended to install and use dot, since it yields more 
+# powerful graphs.
+
+CLASS_DIAGRAMS         = YES
+
+# You can define message sequence charts within doxygen comments using the \msc 
+# command. Doxygen will then run the mscgen tool (see 
+# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the 
+# documentation. The MSCGEN_PATH tag allows you to specify the directory where 
+# the mscgen tool resides. If left empty the tool is assumed to be found in the 
+# default search path.
+
+MSCGEN_PATH            = D:/Programmes/mscgen
+
+# If set to YES, the inheritance and collaboration graphs will hide 
+# inheritance and usage relations if the target is undocumented 
+# or is not a class.
+
+HIDE_UNDOC_RELATIONS   = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is 
+# available from the path. This tool is part of Graphviz, a graph visualization 
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section 
+# have no effect if this option is set to NO (the default)
+
+HAVE_DOT               = NO
+
+# By default doxygen will write a font called FreeSans.ttf to the output 
+# directory and reference it in all dot files that doxygen generates. This 
+# font does not include all possible unicode characters however, so when you need 
+# these (or just want a differently looking font) you can specify the font name 
+# using DOT_FONTNAME. You need need to make sure dot is able to find the font, 
+# which can be done by putting it in a standard location or by setting the 
+# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory 
+# containing the font.
+
+DOT_FONTNAME           = FreeSans
+
+# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. 
+# The default size is 10pt.
+
+DOT_FONTSIZE           = 10
+
+# By default doxygen will tell dot to use the output directory to look for the 
+# FreeSans.ttf font (which doxygen will put there itself). If you specify a 
+# different font using DOT_FONTNAME you can set the path where dot 
+# can find it using this tag.
+
+DOT_FONTPATH           = 
+
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen 
+# will generate a graph for each documented class showing the direct and 
+# indirect inheritance relations. Setting this tag to YES will force the 
+# the CLASS_DIAGRAMS tag to NO.
+
+CLASS_GRAPH            = YES
+
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen 
+# will generate a graph for each documented class showing the direct and 
+# indirect implementation dependencies (inheritance, containment, and 
+# class references variables) of the class with other documented classes.
+
+COLLABORATION_GRAPH    = YES
+
+# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen 
+# will generate a graph for groups, showing the direct groups dependencies
+
+GROUP_GRAPHS           = YES
+
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and 
+# collaboration diagrams in a style similar to the OMG's Unified Modeling 
+# Language.
+
+UML_LOOK               = NO
+
+# If set to YES, the inheritance and collaboration graphs will show the 
+# relations between templates and their instances.
+
+TEMPLATE_RELATIONS     = NO
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT 
+# tags are set to YES then doxygen will generate a graph for each documented 
+# file showing the direct and indirect include dependencies of the file with 
+# other documented files.
+
+INCLUDE_GRAPH          = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and 
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each 
+# documented header file showing the documented files that directly or 
+# indirectly include this file.
+
+INCLUDED_BY_GRAPH      = YES
+
+# If the CALL_GRAPH and HAVE_DOT options are set to YES then 
+# doxygen will generate a call dependency graph for every global function 
+# or class method. Note that enabling this option will significantly increase 
+# the time of a run. So in most cases it will be better to enable call graphs 
+# for selected functions only using the \callgraph command.
+
+CALL_GRAPH             = NO
+
+# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then 
+# doxygen will generate a caller dependency graph for every global function 
+# or class method. Note that enabling this option will significantly increase 
+# the time of a run. So in most cases it will be better to enable caller 
+# graphs for selected functions only using the \callergraph command.
+
+CALLER_GRAPH           = NO
+
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen 
+# will graphical hierarchy of all classes instead of a textual one.
+
+GRAPHICAL_HIERARCHY    = YES
+
+# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES 
+# then doxygen will show the dependencies a directory has on other directories 
+# in a graphical way. The dependency relations are determined by the #include 
+# relations between the files in the directories.
+
+DIRECTORY_GRAPH        = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images 
+# generated by dot. Possible values are png, jpg, or gif 
+# If left blank png will be used.
+
+DOT_IMAGE_FORMAT       = png
+
+# The tag DOT_PATH can be used to specify the path where the dot tool can be 
+# found. If left blank, it is assumed the dot tool can be found in the path.
+
+DOT_PATH               = 
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that 
+# contain dot files that are included in the documentation (see the 
+# \dotfile command).
+
+DOTFILE_DIRS           = 
+
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of 
+# nodes that will be shown in the graph. If the number of nodes in a graph 
+# becomes larger than this value, doxygen will truncate the graph, which is 
+# visualized by representing a node as a red box. Note that doxygen if the 
+# number of direct children of the root node in a graph is already larger than 
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note 
+# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+
+DOT_GRAPH_MAX_NODES    = 50
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the 
+# graphs generated by dot. A depth value of 3 means that only nodes reachable 
+# from the root by following a path via at most 3 edges will be shown. Nodes 
+# that lay further from the root node will be omitted. Note that setting this 
+# option to 1 or 2 may greatly reduce the computation time needed for large 
+# code bases. Also note that the size of a graph can be further restricted by 
+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+
+MAX_DOT_GRAPH_DEPTH    = 0
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent 
+# background. This is disabled by default, because dot on Windows does not 
+# seem to support this out of the box. Warning: Depending on the platform used, 
+# enabling this option may lead to badly anti-aliased labels on the edges of 
+# a graph (i.e. they become hard to read).
+
+DOT_TRANSPARENT        = NO
+
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output 
+# files in one run (i.e. multiple -o and -T options on the command line). This 
+# makes dot run faster, but since only newer versions of dot (>1.8.10) 
+# support this, this feature is disabled by default.
+
+DOT_MULTI_TARGETS      = NO
+
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will 
+# generate a legend page explaining the meaning of the various boxes and 
+# arrows in the dot generated graphs.
+
+GENERATE_LEGEND        = YES
+
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will 
+# remove the intermediate dot files that are used to generate 
+# the various graphs.
+
+DOT_CLEANUP            = YES
diff --git a/doc/third_party/Pluma/build/Doxygen.hpp b/doc/third_party/Pluma/build/Doxygen.hpp
new file mode 100644 (file)
index 0000000..9b307a1
--- /dev/null
@@ -0,0 +1,101 @@
+////////////////////////////////////////////////////////////\r
+/// \mainpage\r
+///\r
+/// \section welcome Welcome\r
+/// Welcome to Pluma documentation. Here you will find a detailed\r
+/// view of all Pluma <a href="./annotated.htm">classes</a>.<br>\r
+/// If you are looking for support, you can visit the official website\r
+/// at <a href="http://pluma-framework.sourceforge.net/">http://pluma-framework.sourceforge.net/</a>.<br><br>\r
+///\r
+/// CSS based on <a href="http://www.sfml-dev.org/documentation/1.6/">SFML1.6 documentation</a><br>\r
+///\r
+/// \section example Short Example\r
+/// A short example to demonstrate Pluma usage:<br>\r
+/// A host application define a Device interface. A certain plugin\r
+/// defines a Keyboard, witch is a Device.\r
+/// The host will use DeviceProviders to create objects of type Device.\r
+/// The plugin will provide host specifically with a KeyboardProvider.<br>\r
+///\r
+/// Device hpp (shared):\r
+/// \code\r
+/// #include <Pluma/Pluma.hpp>\r
+/// class Device{\r
+/// public:\r
+///     virtual std::string getDescription() const = 0;\r
+/// };\r
+/// // create DevicedProvider class\r
+/// PLUMA_PROVIDER_HEADER(Device);\r
+/// \endcode\r
+///\r
+/// Device cpp (shared):\r
+/// \code\r
+/// #include "Device.hpp"\r
+/// generate DevicedProvider with version 6, and compatible with at least v.3\r
+/// PLUMA_PROVIDER_SOURCE(Device, 6, 3);\r
+/// \endcode\r
+///\r
+///\r
+/// <br>\r
+/// Keyboard code on the plugin side:\r
+/// \code\r
+/// #include <Pluma/Pluma.hpp>\r
+/// #include "Device.hpp"\r
+///\r
+/// class Keyboard: public Device{\r
+/// public:\r
+///     std::string getDescription() const{\r
+///         return "keyboard";\r
+///     }\r
+/// };\r
+///\r
+/// // create KeyboardProvider, it implements DeviceProvider\r
+/// PLUMA_INHERIT_PROVIDER(Keyboard, Device);\r
+/// \endcode\r
+///\r
+/// plugin connector:\r
+/// \code\r
+/// #include <Pluma/Connector.hpp>\r
+/// #include "Keyboard.hpp"\r
+///\r
+/// PLUMA_CONNECTOR\r
+/// bool connect(pluma::Host& host){\r
+///     // add a keyboard provider to host\r
+///     host.add( new KeyboardProvider() );\r
+///     return true;\r
+/// }\r
+/// \endcode\r
+///\r
+///\r
+/// Host application code:\r
+/// \code\r
+/// #include <Pluma/Pluma.hpp>\r
+///\r
+/// #include "Device.hpp"\r
+/// #include <iostream>\r
+/// #include <vector>\r
+///\r
+/// int main(){\r
+///\r
+///     pluma::Pluma plugins;\r
+///     // Tell plugins manager to accept providers of the type DeviceProvider\r
+///     plugins.acceptProviderType<DeviceProvider>();\r
+///     // Load library "standard_devices" from folder "plugins"\r
+///     plugins.load("plugins", "standard_devices");\r
+///\r
+///     // Get device providers into a vector\r
+///     std::vector<DeviceProvider*> providers;\r
+///     plugins.getProviders(providers);\r
+///\r
+///     // create a Device from the first provider\r
+///     if (!providers.empty()){\r
+///         Device* myDevice = providers.first()->create();\r
+///         // do something with myDevice\r
+///         std::cout << device->getDescription() << std::endl;\r
+///         // and delete it in the end\r
+///         delete myDevice;\r
+///     }\r
+///     return 0;\r
+/// }\r
+/// \endcode\r
+///\r
+////////////////////////////////////////////////////////////\r
diff --git a/doc/third_party/Pluma/build/doxygen.css b/doc/third_party/Pluma/build/doxygen.css
new file mode 100644 (file)
index 0000000..de219ac
--- /dev/null
@@ -0,0 +1,384 @@
+div#logo\r
+{\r
+    margin-bottom : 1em;\r
+    background    : url("./logo-bg.jpg") repeat-x;\r
+}\r
+\r
+div#logo a\r
+{\r
+    display : block;\r
+}\r
+\r
+p#footer\r
+{\r
+    text-decoration : overline;\r
+    color           : #606060;\r
+    padding-top     : 1em;\r
+    text-align      : center;\r
+    font-size       : smaller;\r
+}\r
+\r
+p#footer a\r
+{\r
+    color           : #007298;\r
+    text-decoration : none;\r
+}\r
+\r
+BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV {\r
+       font-family: Geneva, Arial, Helvetica, sans-serif;\r
+}\r
+BODY,TD {\r
+       font-size: 90%;\r
+}\r
+H1 {\r
+    text-align    : center;\r
+    margin-top    : 0px;\r
+    color         : #2090B0;\r
+    font-size     : 160%;\r
+}\r
+H2 {\r
+       font-size: 120%;\r
+}\r
+H3 {\r
+       font-size: 100%;\r
+}\r
+CAPTION { font-weight: bold }\r
+DIV.qindex {\r
+       width: 100%;\r
+       background-color: #E0FFE0;\r
+       border: 1px dotted #808080;\r
+       text-align: center;\r
+       margin: 2px;\r
+       padding: 2px;\r
+       line-height: 140%;\r
+}\r
+DIV.nav {\r
+       width: 100%;\r
+       background-color: #e8eef2;\r
+       border: 1px solid #84b0c7;\r
+       text-align: center;\r
+       margin: 2px;\r
+       padding: 2px;\r
+       line-height: 140%;\r
+}\r
+DIV.navtab {\r
+       background-color: #e8eef2;\r
+       border: 1px solid #84b0c7;\r
+       text-align: center;\r
+       margin: 2px;\r
+       margin-right: 15px;\r
+       padding: 2px;\r
+}\r
+TD.navtab {\r
+       font-size: 70%;\r
+}\r
+A.qindex {\r
+       text-decoration: none;\r
+       font-weight: bold;\r
+}\r
+A.qindex:visited {\r
+       text-decoration: none;\r
+       font-weight: bold;\r
+}\r
+A.qindex:hover {\r
+       text-decoration: none;\r
+       background-color: #ddddff;\r
+}\r
+A.qindexHL {\r
+       text-decoration: none;\r
+       font-weight: bold;\r
+       background-color: #6666cc;\r
+       color: #ffffff;\r
+       border: 1px double #9295C2;\r
+}\r
+A.qindexHL:hover {\r
+       text-decoration: none;\r
+       background-color: #6666cc;\r
+       color: #ffffff;\r
+}\r
+A.qindexHL:visited { text-decoration: none; background-color: #6666cc; color: #ffffff }\r
+A.el { text-decoration: none; font-weight: bold }\r
+A.elRef { font-weight: bold }\r
+A.code:link { text-decoration: none; font-weight: normal; border-bottom : 1px dotted #808080; color: black;}\r
+A.code:visited { text-decoration: none; font-weight: normal; border-bottom : 1px dotted #808080; color: black;}\r
+A.codeRef:link { font-weight: normal; color: #0000FF}\r
+A.codeRef:visited { font-weight: normal; color: #0000FF}\r
+/*A:hover { text-decoration: none; background-color: #f2f2ff }*/\r
+DL.el { margin-left: -1cm }\r
+.fragment {\r
+       font-family: monospace, fixed;\r
+       font-size: 95%;\r
+}\r
+PRE.fragment {\r
+       border: 1px solid #CCCCCC;\r
+       background-color: #f5f5f5;\r
+       margin-top: 4px;\r
+       margin-bottom: 4px;\r
+       margin-left: 2px;\r
+       margin-right: 8px;\r
+       padding-left: 6px;\r
+       padding-right: 6px;\r
+       padding-top: 4px;\r
+       padding-bottom: 4px;\r
+}\r
+DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px }\r
+\r
+DIV.groupHeader {\r
+       margin-left: 16px;\r
+       margin-top: 12px;\r
+       margin-bottom: 6px;\r
+       font-weight: bold;\r
+}\r
+DIV.groupText { margin-left: 16px; font-style: italic; font-size: 90% }\r
+BODY {\r
+       background: white;\r
+       color: black;\r
+       margin-right: 20px;\r
+       margin-left: 20px;\r
+}\r
+TD.indexkey {\r
+       background-color: #e8eef2;\r
+       font-weight: bold;\r
+       padding-right  : 10px;\r
+       padding-top    : 2px;\r
+       padding-left   : 10px;\r
+       padding-bottom : 2px;\r
+       margin-left    : 0px;\r
+       margin-right   : 0px;\r
+       margin-top     : 2px;\r
+       margin-bottom  : 2px;\r
+       border: 1px solid #CCCCCC;\r
+}\r
+TD.indexvalue {\r
+       background-color: #e8eef2;\r
+       font-style: italic;\r
+       padding-right  : 10px;\r
+       padding-top    : 2px;\r
+       padding-left   : 10px;\r
+       padding-bottom : 2px;\r
+       margin-left    : 0px;\r
+       margin-right   : 0px;\r
+       margin-top     : 2px;\r
+       margin-bottom  : 2px;\r
+       border: 1px solid #CCCCCC;\r
+}\r
+TR.memlist {\r
+   background-color: #f0f0f0; \r
+}\r
+P.formulaDsp { text-align: center; }\r
+IMG.formulaDsp { }\r
+IMG.formulaInl { vertical-align: middle; }\r
+SPAN.keyword       { color: #0000FF }\r
+SPAN.keywordtype   { color: #0000FF }\r
+SPAN.keywordflow   { color: #0000FF }\r
+SPAN.comment       { color: #008000 }\r
+SPAN.preprocessor  { color: #008080 }\r
+SPAN.stringliteral { color: #008080 }\r
+SPAN.charliteral   { color: #008080 }\r
+.mdescLeft {\r
+       padding: 0px 8px 4px 8px;\r
+       font-size: 80%;\r
+       font-style: italic;\r
+       background-color: #FAFAFA;\r
+       border-top: 1px none #E0E0E0;\r
+       border-right: 1px none #E0E0E0;\r
+       border-bottom: 1px none #E0E0E0;\r
+       border-left: 1px none #E0E0E0;\r
+       margin: 0px;\r
+}\r
+.mdescRight {\r
+       padding: 0px 8px 4px 8px;\r
+       font-size: 80%;\r
+       font-style: italic;\r
+       background-color: #FAFAFA;\r
+       border-top: 1px none #E0E0E0;\r
+       border-right: 1px none #E0E0E0;\r
+       border-bottom: 1px none #E0E0E0;\r
+       border-left: 1px none #E0E0E0;\r
+       margin: 0px;\r
+}\r
+.memItemLeft {\r
+       padding: 1px 0px 0px 8px;\r
+       margin: 4px;\r
+       border-top-width: 1px;\r
+       border-right-width: 1px;\r
+       border-bottom-width: 1px;\r
+       border-left-width: 1px;\r
+       border-top-color: #E0E0E0;\r
+       border-right-color: #E0E0E0;\r
+       border-bottom-color: #E0E0E0;\r
+       border-left-color: #E0E0E0;\r
+       border-top-style: solid;\r
+       border-right-style: none;\r
+       border-bottom-style: none;\r
+       border-left-style: none;\r
+       background-color: #FAFAFA;\r
+       font-size: 80%;\r
+}\r
+.memItemRight {\r
+       padding: 1px 8px 0px 8px;\r
+       margin: 4px;\r
+       border-top-width: 1px;\r
+       border-right-width: 1px;\r
+       border-bottom-width: 1px;\r
+       border-left-width: 1px;\r
+       border-top-color: #E0E0E0;\r
+       border-right-color: #E0E0E0;\r
+       border-bottom-color: #E0E0E0;\r
+       border-left-color: #E0E0E0;\r
+       border-top-style: solid;\r
+       border-right-style: none;\r
+       border-bottom-style: none;\r
+       border-left-style: none;\r
+       background-color: #FAFAFA;\r
+       font-size: 80%;\r
+}\r
+.memTemplItemLeft {\r
+       padding: 1px 0px 0px 8px;\r
+       margin: 4px;\r
+       border-top-width: 1px;\r
+       border-right-width: 1px;\r
+       border-bottom-width: 1px;\r
+       border-left-width: 1px;\r
+       border-top-color: #E0E0E0;\r
+       border-right-color: #E0E0E0;\r
+       border-bottom-color: #E0E0E0;\r
+       border-left-color: #E0E0E0;\r
+       border-top-style: none;\r
+       border-right-style: none;\r
+       border-bottom-style: none;\r
+       border-left-style: none;\r
+       background-color: #FAFAFA;\r
+       font-size: 80%;\r
+}\r
+.memTemplItemRight {\r
+       padding: 1px 8px 0px 8px;\r
+       margin: 4px;\r
+       border-top-width: 1px;\r
+       border-right-width: 1px;\r
+       border-bottom-width: 1px;\r
+       border-left-width: 1px;\r
+       border-top-color: #E0E0E0;\r
+       border-right-color: #E0E0E0;\r
+       border-bottom-color: #E0E0E0;\r
+       border-left-color: #E0E0E0;\r
+       border-top-style: none;\r
+       border-right-style: none;\r
+       border-bottom-style: none;\r
+       border-left-style: none;\r
+       background-color: #FAFAFA;\r
+       font-size: 80%;\r
+}\r
+.memTemplParams {\r
+       padding: 1px 0px 0px 8px;\r
+       margin: 4px;\r
+       border-top-width: 1px;\r
+       border-right-width: 1px;\r
+       border-bottom-width: 1px;\r
+       border-left-width: 1px;\r
+       border-top-color: #E0E0E0;\r
+       border-right-color: #E0E0E0;\r
+       border-bottom-color: #E0E0E0;\r
+       border-left-color: #E0E0E0;\r
+       border-top-style: solid;\r
+       border-right-style: none;\r
+       border-bottom-style: none;\r
+       border-left-style: none;\r
+       color: #606060;\r
+       background-color: #FAFAFA;\r
+       font-size: 80%;\r
+}\r
+.search     { color: #003399;\r
+              font-weight: bold;\r
+}\r
+FORM.search {\r
+              margin-bottom: 0px;\r
+              margin-top: 0px;\r
+}\r
+INPUT.search { font-size: 75%;\r
+               color: #000080;\r
+               font-weight: normal;\r
+               background-color: #e8eef2;\r
+}\r
+TD.tiny      { font-size: 75%;\r
+}\r
+a {\r
+       color: #2090B0;\r
+}\r
+a:visited {\r
+       color: #2090B0;\r
+}\r
+.dirtab { padding: 4px;\r
+          border-collapse: collapse;\r
+          border: 1px solid #84b0c7;\r
+}\r
+TH.dirtab { background: #e8eef2;\r
+            font-weight: bold;\r
+}\r
+HR { height: 1px;\r
+     border: none;\r
+     border-top: 1px solid black;\r
+}\r
+\r
+/* Style for detailed member documentation */\r
+.memtemplate {\r
+  font-size: 80%;\r
+  color: #606060;\r
+  font-weight: normal;\r
+} \r
+.memnav { \r
+  background-color: #e8eef2;\r
+  border: 1px solid #84b0c7;\r
+  text-align: center;\r
+  margin: 2px;\r
+  margin-right: 15px;\r
+  padding: 2px;\r
+}\r
+.memitem {\r
+  /*padding: 4px;*/\r
+  background-color: #F0FFF0;\r
+  border-width: 1px;\r
+  border-style: solid;\r
+  border-color: #808080;\r
+  /*-moz-border-radius: 8px 8px 8px 8px;*/\r
+}\r
+.memname {\r
+  white-space: nowrap;\r
+  font-weight: bold;\r
+}\r
+.memdoc{\r
+  padding-left: 10px;\r
+}\r
+.memproto {\r
+  background-color: #D0FFD0;\r
+  width: 100%;\r
+  border-bottom-width: 1px;\r
+  border-bottom-style: dotted;\r
+  border-bottom-color: #808080;\r
+  font-weight: bold;\r
+  /*-moz-border-radius: 8px 8px 8px 8px;*/\r
+}\r
+.paramkey {\r
+  text-align: right;\r
+}\r
+.paramtype {\r
+  white-space: nowrap;\r
+}\r
+.paramname {\r
+  color: #602020;\r
+  font-style: italic;\r
+  white-space: nowrap;\r
+}\r
+/* End Styling for detailed member documentation */\r
+\r
+/* for the tree view */\r
+.ftvtree {\r
+       font-family: sans-serif;\r
+       margin:0.5em;\r
+}\r
+.directory { font-size: 9pt; font-weight: bold; }\r
+.directory h3 { margin: 0px; margin-top: 1em; font-size: 11pt; }\r
+.directory > h3 { margin-top: 0; }\r
+.directory p { margin: 0px; white-space: nowrap; }\r
+.directory div { display: none; margin: 0px; }\r
+.directory img { vertical-align: -30%; }\r
diff --git a/doc/third_party/Pluma/build/footer.htm b/doc/third_party/Pluma/build/footer.htm
new file mode 100644 (file)
index 0000000..0681f33
--- /dev/null
@@ -0,0 +1,8 @@
+\r
+        <p id="footer">\r
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;\r
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;\r
+        </p>\r
+\r
+    </body>\r
+</html>\r
diff --git a/doc/third_party/Pluma/build/header.htm b/doc/third_party/Pluma/build/header.htm
new file mode 100644 (file)
index 0000000..e7890bd
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r
+<html>\r
+    <head>\r
+        <title>Pluma - Plug-in Management Framework</title>\r
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />\r
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />\r
+        <link href="tabs.css" rel="stylesheet" type="text/css" />\r
+    </head>\r
+    <body>\r
+        <div id="logo">\r
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />\r
+        </div>\r
diff --git a/doc/third_party/Pluma/html/Config_8hpp_source.htm b/doc/third_party/Pluma/html/Config_8hpp_source.htm
new file mode 100644 (file)
index 0000000..fb54cd0
--- /dev/null
@@ -0,0 +1,170 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Config.hpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Pluma - Plug-in Management Framework</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This software is provided &#39;as-is&#39;, without any express or implied warranty.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// subject to the following restrictions:</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//    you must not claim that you wrote the original software.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//    If you use this software in a product, an acknowledgment</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//    in the product documentation would be appreciated but is not required.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//    and must not be misrepresented as being the original software.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">// Based on SFML configuration header</span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">// SFML Config.hpp:</span></div>
+<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">// http://www.sfml-dev.org/documentation/2.0/Config_8hpp-source.htm</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">// Acknowledgements to Simple and Fast Multimedia Library</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment">// http://www.sfml-dev.org/</span></div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#ifndef PLUMA_CONFIG_HPP</span></div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PLUMA_CONFIG_HPP</span></div>
+<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">// Identify the operating system</span></div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment"></span><span class="preprocessor">#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)</span></div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="comment">// Windows</span></div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">    #define PLUMA_SYS_WINDOWS</span></div>
+<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor"></span><span class="preprocessor">    #ifndef WIN32_LEAN_AND_MEAN</span></div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor"></span><span class="preprocessor">        #define WIN32_LEAN_AND_MEAN</span></div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor"></span><span class="preprocessor">    #endif</span></div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor"></span><span class="preprocessor">    #ifndef NOMINMAX</span></div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor"></span><span class="preprocessor">        #define NOMINMAX</span></div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor"></span><span class="preprocessor">    #endif</span></div>
+<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor">#elif defined(linux) || defined(__linux)</span></div>
+<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="comment">// Linux</span></div>
+<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="preprocessor">    #define PLUMA_SYS_LINUX</span></div>
+<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="preprocessor">#elif defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh)</span></div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="comment">// MacOS</span></div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor">    #define PLUMA_SYS_MACOS</span></div>
+<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor">#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)</span></div>
+<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="comment">// FreeBSD</span></div>
+<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">    #define PLUMA_SYS_FREEBSD</span></div>
+<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#else</span></div>
+<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="comment">// Unsupported system</span></div>
+<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">    #error This operating system is not supported by this library</span></div>
+<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="preprocessor">#endif</span></div>
+<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
+<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
+<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment">// Define library file extension based on OS</span></div>
+<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="comment"></span><span class="preprocessor">#ifdef PLUMA_SYS_WINDOWS</span></div>
+<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor"></span><span class="preprocessor">     #define PLUMA_LIB_EXTENSION &quot;dll&quot;</span></div>
+<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#elif defined(PLUMA_SYS_MACOS)</span></div>
+<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor"></span><span class="preprocessor">     #define PLUMA_LIB_EXTENSION &quot;dylib&quot;</span></div>
+<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#elif defined(PLUMA_SYS_LINUX) || defined(PLUMA_SYS_FREEBSD)</span></div>
+<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="preprocessor"></span><span class="preprocessor">     #define PLUMA_LIB_EXTENSION &quot;so&quot;</span></div>
+<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#else</span></div>
+<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor"></span>   <span class="comment">// unknown library file type</span></div>
+<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="preprocessor">    #error Unknown library file extension for this operating system</span></div>
+<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
+<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
+<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="comment">// Define portable import / export macros</span></div>
+<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="comment"></span><span class="preprocessor">#if defined(PLUMA_SYS_WINDOWS)</span></div>
+<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="preprocessor">    #ifndef PLUMA_STATIC</span></div>
+<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <span class="comment">// Windows platforms</span></div>
+<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">        #ifdef PLUMA_EXPORTS</span></div>
+<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            <span class="comment">// From DLL side, we must export</span></div>
+<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="preprocessor">            #define PLUMA_API __declspec(dllexport)</span></div>
+<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">        #else</span></div>
+<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            <span class="comment">// From client application side, we must import</span></div>
+<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="preprocessor">            #define PLUMA_API __declspec(dllimport)</span></div>
+<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="preprocessor">        #endif</span></div>
+<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="comment">// For Visual C++ compilers, we also need to turn off this annoying C4251 warning.</span></div>
+<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        <span class="comment">// You can read lots ot different things about it, but the point is the code will</span></div>
+<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <span class="comment">// just work fine, and so the simplest way to get rid of this warning is to disable it</span></div>
+<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">        #ifdef _MSC_VER</span></div>
+<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">            #pragma warning(disable : 4251)</span></div>
+<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="preprocessor">        #endif</span></div>
+<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="preprocessor">    #else</span></div>
+<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        <span class="comment">// No specific directive needed for static build</span></div>
+<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="preprocessor">        #define PLUMA_API</span></div>
+<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">    #endif</span></div>
+<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">#else</span></div>
+<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="comment">// Other platforms don&#39;t need to define anything</span></div>
+<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="preprocessor">    #define PLUMA_API</span></div>
+<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="preprocessor">#endif</span></div>
+<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div>
+<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div>
+<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div>
+<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="preprocessor">#endif // PLUMA_CONFIG_HPP</span></div>
+</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/Connector_8hpp_source.htm b/doc/third_party/Pluma/html/Connector_8hpp_source.htm
new file mode 100644 (file)
index 0000000..5a36cdf
--- /dev/null
@@ -0,0 +1,119 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Connector.hpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Pluma - Plug-in Management Framework</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This software is provided &#39;as-is&#39;, without any express or implied warranty.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// subject to the following restrictions:</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//    you must not claim that you wrote the original software.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//    If you use this software in a product, an acknowledgment</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//    in the product documentation would be appreciated but is not required.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//    and must not be misrepresented as being the original software.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef PLUMA_CONNECTOR_HPP</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PLUMA_CONNECTOR_HPP</span></div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">// Headers</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"></span><span class="preprocessor">#include &lt;Pluma/Config.hpp&gt;</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;Pluma/Pluma.hpp&gt;</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">// Define portable import/export macros for Plugin registration</span></div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment"></span><span class="preprocessor">#if defined(PLUMA_SYS_WINDOWS)</span></div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">    #ifndef PLUMA_STATIC_PLUGIN</span></div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;         <span class="comment">// Windows platforms</span></div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">        #ifndef PLUGIN_IMPORTS</span></div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;            <span class="comment">// From DLL side, we must export</span></div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">            #ifdef __cplusplus</span></div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor"></span><span class="preprocessor">               #define PLUMA_CONNECTOR extern &quot;C&quot; __declspec(dllexport)</span></div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor"></span><span class="preprocessor">            #else</span></div>
+<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor"></span><span class="preprocessor">               #define PLUMA_CONNECTOR __declspec(dllexport)</span></div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor"></span><span class="preprocessor">            #endif</span></div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">        #else</span></div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;            <span class="comment">// From client application side, we must import</span></div>
+<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">            #ifdef __cplusplus</span></div>
+<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor"></span><span class="preprocessor">               #define PLUMA_CONNECTOR extern &quot;C&quot; __declspec(dllimport)</span></div>
+<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor"></span><span class="preprocessor">            #else</span></div>
+<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor"></span><span class="preprocessor">               #define PLUMA_CONNECTOR __declspec(dllimport)</span></div>
+<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="preprocessor"></span><span class="preprocessor">            #endif</span></div>
+<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="preprocessor">        #endif</span></div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor">    #else</span></div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <span class="comment">// Only define the extern &quot;C&quot; for static build</span></div>
+<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor">        #ifdef __cplusplus</span></div>
+<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor"></span><span class="preprocessor">           #define PLUMA_CONNECTOR extern &quot;C&quot;</span></div>
+<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor"></span><span class="preprocessor">        #else</span></div>
+<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor"></span><span class="preprocessor">           #define PLUMA_CONNECTOR</span></div>
+<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor"></span><span class="preprocessor">        #endif</span></div>
+<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">    #endif</span></div>
+<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">#else</span></div>
+<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <span class="comment">// Only define the extern &quot;C&quot; for other platforms</span></div>
+<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">    #ifdef __cplusplus</span></div>
+<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="preprocessor"></span><span class="preprocessor">       #define PLUMA_CONNECTOR extern &quot;C&quot;</span></div>
+<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="preprocessor"></span><span class="preprocessor">    #else</span></div>
+<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="preprocessor"></span><span class="preprocessor">       #define PLUMA_CONNECTOR</span></div>
+<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="preprocessor"></span><span class="preprocessor">    #endif</span></div>
+<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">#endif</span></div>
+<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
+<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">#endif // PLUMA_CONNECTOR_HPP</span></div>
+</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/DLibrary_8cpp_source.htm b/doc/third_party/Pluma/html/DLibrary_8cpp_source.htm
new file mode 100644 (file)
index 0000000..e4e4562
--- /dev/null
@@ -0,0 +1,141 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">DLibrary.cpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Pluma - Plug-in Management Framework</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This software is provided &#39;as-is&#39;, without any express or implied warranty.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// subject to the following restrictions:</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//    you must not claim that you wrote the original software.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//    If you use this software in a product, an acknowledgment</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//    in the product documentation would be appreciated but is not required.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//    and must not be misrepresented as being the original software.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">// Headers</span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"></span><span class="preprocessor">#include &lt;Pluma/DLibrary.hpp&gt;</span></div>
+<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;cstdio&gt;</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">namespace </span>pluma{</div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
+<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classpluma_1_1DLibrary.htm#a32400d8e50c0f03cb525ca7500b4516e">   37</a></span>&#160;<a class="code" href="classpluma_1_1DLibrary.htm">DLibrary</a>* <a class="code" href="classpluma_1_1DLibrary.htm#a32400d8e50c0f03cb525ca7500b4516e">DLibrary::load</a>(<span class="keyword">const</span> std::string&amp; path){</div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keywordflow">if</span> ( path.empty() ){</div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;Failed to load library: Empty path\n&quot;</span>);</div>
+<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    }</div>
+<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordtype">void</span>* handle = NULL;</div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="comment">// load library - OS dependent operation</span></div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">    #ifdef PLUMA_SYS_WINDOWS</span></div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor"></span>        handle = ::LoadLibraryA(path.c_str());</div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        <span class="keywordflow">if</span> (!handle){</div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;            fprintf(stderr, <span class="stringliteral">&quot;Failed to load library \&quot;%s\&quot;.\n&quot;</span>, path.c_str());</div>
+<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;            <span class="keywordflow">return</span> NULL;</div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        }</div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">    #else</span></div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor"></span>        handle = ::dlopen(path.c_str(), RTLD_NOW);</div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <span class="keywordflow">if</span> (!handle){</div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">char</span>* errorString = ::dlerror();</div>
+<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;            fprintf(stderr, <span class="stringliteral">&quot;Failed to load library \&quot;%s\&quot;.&quot;</span>, path.c_str());</div>
+<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;            <span class="keywordflow">if</span>(errorString) fprintf(stderr, <span class="stringliteral">&quot; OS returned error: \&quot;%s\&quot;.&quot;</span>, errorString);</div>
+<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;            fprintf(stderr, <span class="stringliteral">&quot;\n&quot;</span>);</div>
+<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;            <span class="keywordflow">return</span> NULL;</div>
+<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        }</div>
+<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor">    #endif</span></div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="preprocessor"></span>    <span class="comment">// return a DLibrary with the DLL handle</span></div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classpluma_1_1DLibrary.htm">DLibrary</a>(handle);</div>
+<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;}</div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
+<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div>
+<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classpluma_1_1DLibrary.htm#a3fa679bc824b36ce61b67716bedd15c7">   67</a></span>&#160;<a class="code" href="classpluma_1_1DLibrary.htm#a3fa679bc824b36ce61b67716bedd15c7">DLibrary::~DLibrary</a>(){</div>
+<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordflow">if</span> (handle){</div>
+<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">        #ifdef PLUMA_SYS_WINDOWS</span></div>
+<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor"></span>            ::FreeLibrary( (HMODULE)handle );</div>
+<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">        #else</span></div>
+<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor"></span>            ::dlclose(handle);</div>
+<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="preprocessor">        #endif</span></div>
+<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor"></span>    }</div>
+<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;}</div>
+<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
+<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div>
+<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="classpluma_1_1DLibrary.htm#a57dd3726140cce08957e40cb5b001d84">   79</a></span>&#160;<span class="keywordtype">void</span>* <a class="code" href="classpluma_1_1DLibrary.htm#a57dd3726140cce08957e40cb5b001d84">DLibrary::getSymbol</a>(<span class="keyword">const</span> std::string&amp; symbol){</div>
+<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordflow">if</span> (!handle){</div>
+<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;Cannot inspect library symbols, library isn&#39;t loaded.\n&quot;</span>);</div>
+<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
+<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    }</div>
+<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keywordtype">void</span>* res;</div>
+<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">    #ifdef PLUMA_SYS_WINDOWS</span></div>
+<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor"></span>        res = (<span class="keywordtype">void</span>*)(::GetProcAddress((HMODULE)handle, symbol.c_str()));</div>
+<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">    #else</span></div>
+<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="preprocessor"></span>        res = (<span class="keywordtype">void</span>*)(::dlsym(handle, symbol.c_str()));</div>
+<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor">    #endif</span></div>
+<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor"></span>    <span class="keywordflow">if</span> (!res){</div>
+<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;Library symbol \&quot;%s\&quot; not found.\n&quot;</span>, symbol.c_str());</div>
+<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
+<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    }</div>
+<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keywordflow">return</span> res;</div>
+<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;}</div>
+<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div>
+<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div>
+<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;DLibrary::DLibrary(<span class="keywordtype">void</span>* handle):</div>
+<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    handle(handle)</div>
+<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;{</div>
+<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="comment">// Nothing to do</span></div>
+<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;}</div>
+<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
+<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;}   <span class="comment">// namespace pluma</span></div>
+<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
+<div class="ttc" id="classpluma_1_1DLibrary_htm_a32400d8e50c0f03cb525ca7500b4516e"><div class="ttname"><a href="classpluma_1_1DLibrary.htm#a32400d8e50c0f03cb525ca7500b4516e">pluma::DLibrary::load</a></div><div class="ttdeci">static DLibrary * load(const std::string &amp;path)</div><div class="ttdoc">Load a library. </div><div class="ttdef"><b>Definition:</b> <a href="DLibrary_8cpp_source.htm#l00037">DLibrary.cpp:37</a></div></div>
+<div class="ttc" id="classpluma_1_1DLibrary_htm"><div class="ttname"><a href="classpluma_1_1DLibrary.htm">pluma::DLibrary</a></div><div class="ttdoc">Manages a Dynamic Linking Library. </div><div class="ttdef"><b>Definition:</b> <a href="DLibrary_8hpp_source.htm#l00049">DLibrary.hpp:49</a></div></div>
+<div class="ttc" id="classpluma_1_1DLibrary_htm_a57dd3726140cce08957e40cb5b001d84"><div class="ttname"><a href="classpluma_1_1DLibrary.htm#a57dd3726140cce08957e40cb5b001d84">pluma::DLibrary::getSymbol</a></div><div class="ttdeci">void * getSymbol(const std::string &amp;symbol)</div><div class="ttdoc">Get a symbol from the library. </div><div class="ttdef"><b>Definition:</b> <a href="DLibrary_8cpp_source.htm#l00079">DLibrary.cpp:79</a></div></div>
+<div class="ttc" id="classpluma_1_1DLibrary_htm_a3fa679bc824b36ce61b67716bedd15c7"><div class="ttname"><a href="classpluma_1_1DLibrary.htm#a3fa679bc824b36ce61b67716bedd15c7">pluma::DLibrary::~DLibrary</a></div><div class="ttdeci">~DLibrary()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> <a href="DLibrary_8cpp_source.htm#l00067">DLibrary.cpp:67</a></div></div>
+</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/DLibrary_8hpp_source.htm b/doc/third_party/Pluma/html/DLibrary_8hpp_source.htm
new file mode 100644 (file)
index 0000000..6030a7a
--- /dev/null
@@ -0,0 +1,117 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">DLibrary.hpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Pluma - Plug-in Management Framework</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This software is provided &#39;as-is&#39;, without any express or implied warranty.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// subject to the following restrictions:</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//    you must not claim that you wrote the original software.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//    If you use this software in a product, an acknowledgment</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//    in the product documentation would be appreciated but is not required.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//    and must not be misrepresented as being the original software.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef PLUMA_DYNAMIC_LIBRARY_HPP</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PLUMA_DYNAMIC_LIBRARY_HPP</span></div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">// Headers</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"></span><span class="preprocessor">#include &lt;Pluma/Config.hpp&gt;</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">// include OS dependent support for DLL</span></div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#ifdef PLUMA_SYS_WINDOWS</span></div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor"></span><span class="preprocessor">    #include &lt;Windows.h&gt;</span></div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#else</span></div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor"></span><span class="preprocessor">    #include &lt;dlfcn.h&gt;</span></div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#endif</span></div>
+<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
+<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">namespace </span>pluma{</div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
+<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classpluma_1_1DLibrary.htm">   49</a></span>&#160;<span class="keyword">class </span><a class="code" href="classpluma_1_1DLibrary.htm">DLibrary</a>{</div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">static</span> <a class="code" href="classpluma_1_1DLibrary.htm">DLibrary</a>* <a class="code" href="classpluma_1_1DLibrary.htm#a32400d8e50c0f03cb525ca7500b4516e">load</a>(<span class="keyword">const</span> std::string&amp; path);</div>
+<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
+<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <a class="code" href="classpluma_1_1DLibrary.htm#a3fa679bc824b36ce61b67716bedd15c7">~DLibrary</a>();</div>
+<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
+<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordtype">void</span>* <a class="code" href="classpluma_1_1DLibrary.htm#a57dd3726140cce08957e40cb5b001d84">getSymbol</a>(<span class="keyword">const</span> std::string&amp; symbol);</div>
+<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
+<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
+<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
+<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <a class="code" href="classpluma_1_1DLibrary.htm">DLibrary</a>();</div>
+<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div>
+<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <a class="code" href="classpluma_1_1DLibrary.htm">DLibrary</a>(<span class="keywordtype">void</span>* handle);</div>
+<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div>
+<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
+<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
+<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="comment">// Member data</span></div>
+<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div>
+<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div>
+<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <span class="keywordtype">void</span>* handle; </div>
+<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div>
+<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;};</div>
+<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div>
+<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div>
+<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;}   <span class="comment">// namespace pluma</span></div>
+<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div>
+<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div>
+<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">#endif // PLUMA_DYNAMIC_LIBRARY_HPP</span></div>
+<div class="ttc" id="classpluma_1_1DLibrary_htm_a32400d8e50c0f03cb525ca7500b4516e"><div class="ttname"><a href="classpluma_1_1DLibrary.htm#a32400d8e50c0f03cb525ca7500b4516e">pluma::DLibrary::load</a></div><div class="ttdeci">static DLibrary * load(const std::string &amp;path)</div><div class="ttdoc">Load a library. </div><div class="ttdef"><b>Definition:</b> <a href="DLibrary_8cpp_source.htm#l00037">DLibrary.cpp:37</a></div></div>
+<div class="ttc" id="classpluma_1_1DLibrary_htm"><div class="ttname"><a href="classpluma_1_1DLibrary.htm">pluma::DLibrary</a></div><div class="ttdoc">Manages a Dynamic Linking Library. </div><div class="ttdef"><b>Definition:</b> <a href="DLibrary_8hpp_source.htm#l00049">DLibrary.hpp:49</a></div></div>
+<div class="ttc" id="classpluma_1_1DLibrary_htm_a57dd3726140cce08957e40cb5b001d84"><div class="ttname"><a href="classpluma_1_1DLibrary.htm#a57dd3726140cce08957e40cb5b001d84">pluma::DLibrary::getSymbol</a></div><div class="ttdeci">void * getSymbol(const std::string &amp;symbol)</div><div class="ttdoc">Get a symbol from the library. </div><div class="ttdef"><b>Definition:</b> <a href="DLibrary_8cpp_source.htm#l00079">DLibrary.cpp:79</a></div></div>
+<div class="ttc" id="classpluma_1_1DLibrary_htm_a3fa679bc824b36ce61b67716bedd15c7"><div class="ttname"><a href="classpluma_1_1DLibrary.htm#a3fa679bc824b36ce61b67716bedd15c7">pluma::DLibrary::~DLibrary</a></div><div class="ttdeci">~DLibrary()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> <a href="DLibrary_8cpp_source.htm#l00067">DLibrary.cpp:67</a></div></div>
+</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/Dir_8cpp_source.htm b/doc/third_party/Pluma/html/Dir_8cpp_source.htm
new file mode 100644 (file)
index 0000000..8c2d4c2
--- /dev/null
@@ -0,0 +1,137 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Dir.cpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Pluma - Plug-in Management Framework</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This software is provided &#39;as-is&#39;, without any express or implied warranty.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// subject to the following restrictions:</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//    you must not claim that you wrote the original software.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//    If you use this software in a product, an acknowledgment</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//    in the product documentation would be appreciated but is not required.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//    and must not be misrepresented as being the original software.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">// Headers</span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"></span><span class="preprocessor">#include &lt;Pluma/Dir.hpp&gt;</span></div>
+<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;Pluma/uce-dirent.h&gt;</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;cstdio&gt;</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;queue&gt;</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">namespace </span>pluma{</div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">namespace </span>dir{</div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="keywordtype">void</span> listFiles(std::list&lt;std::string&gt;&amp; list, <span class="keyword">const</span> std::string&amp; folder, <span class="keyword">const</span> std::string&amp; extension, <span class="keywordtype">bool</span> recursive){</div>
+<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    DIR* dir;</div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    DIR* subDir;</div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keyword">struct </span>dirent *ent;</div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="comment">// try to open top folder</span></div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    dir = opendir(folder.c_str());</div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordflow">if</span> (dir == NULL){</div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="comment">// could not open directory</span></div>
+<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;      fprintf(stderr, <span class="stringliteral">&quot;Could not open \&quot;%s\&quot; directory.\n&quot;</span>, folder.c_str());</div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;      <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    }<span class="keywordflow">else</span>{</div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="comment">// close, we&#39;ll process it next</span></div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        closedir(dir);</div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    }</div>
+<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="comment">// enqueue top folder</span></div>
+<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    std::queue&lt;std::string&gt; folders;</div>
+<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    folders.push(folder);</div>
+<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
+<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="comment">// run while has queued folders</span></div>
+<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keywordflow">while</span> (!folders.empty()){</div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        std::string currFolder = folders.front();</div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        folders.pop();</div>
+<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        dir = opendir(currFolder.c_str());</div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keywordflow">if</span> (dir == NULL) <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <span class="comment">// iterate through all the files and directories</span></div>
+<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordflow">while</span> ((ent = readdir (dir)) != NULL) {</div>
+<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            std::string name(ent-&gt;d_name);</div>
+<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;            <span class="comment">// ignore &quot;.&quot; and &quot;..&quot; directories</span></div>
+<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;            <span class="keywordflow">if</span> ( name.compare(<span class="stringliteral">&quot;.&quot;</span>) == 0 || name.compare(<span class="stringliteral">&quot;..&quot;</span>) == 0) <span class="keywordflow">continue</span>;</div>
+<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;            <span class="comment">// add path to the file name</span></div>
+<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;            std::string path = currFolder;</div>
+<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;            path.append(<span class="stringliteral">&quot;/&quot;</span>);</div>
+<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;            path.append(name);</div>
+<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            <span class="comment">// check if it&#39;s a folder by trying to open it</span></div>
+<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            subDir = opendir(path.c_str());</div>
+<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            <span class="keywordflow">if</span> (subDir != NULL){</div>
+<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                <span class="comment">// it&#39;s a folder: close, we can process it later</span></div>
+<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;                closedir(subDir);</div>
+<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                <span class="keywordflow">if</span> (recursive) folders.push(path);</div>
+<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;            }<span class="keywordflow">else</span>{</div>
+<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;                <span class="comment">// it&#39;s a file</span></div>
+<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;                <span class="keywordflow">if</span> (extension.empty()){</div>
+<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;                    list.push_back(path);</div>
+<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;                }<span class="keywordflow">else</span>{</div>
+<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;                    <span class="comment">// check file extension</span></div>
+<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;                    <span class="keywordtype">size_t</span> lastDot = name.find_last_of(<span class="charliteral">&#39;.&#39;</span>);</div>
+<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;                    std::string ext = name.substr(lastDot+1);</div>
+<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                    <span class="keywordflow">if</span> (ext.compare(extension) == 0){</div>
+<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;                        <span class="comment">// match</span></div>
+<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;                        list.push_back(path);</div>
+<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;                    }</div>
+<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;                } <span class="comment">// endif (extension test)</span></div>
+<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;            } <span class="comment">// endif (folder test)</span></div>
+<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        } <span class="comment">// endwhile (nextFile)</span></div>
+<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        closedir(dir);</div>
+<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    } <span class="comment">// endwhile (queued folders)</span></div>
+<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div>
+<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;} <span class="comment">// end listFiles</span></div>
+<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
+<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div>
+<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;}   <span class="comment">// namespace dir</span></div>
+<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
+<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;}   <span class="comment">// namespace pluma</span></div>
+</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/Dir_8hpp_source.htm b/doc/third_party/Pluma/html/Dir_8hpp_source.htm
new file mode 100644 (file)
index 0000000..1b8b876
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Dir.hpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Pluma - Plug-in Management Framework</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This software is provided &#39;as-is&#39;, without any express or implied warranty.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// subject to the following restrictions:</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//    you must not claim that you wrote the original software.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//    If you use this software in a product, an acknowledgment</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//    in the product documentation would be appreciated but is not required.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//    and must not be misrepresented as being the original software.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef PLUMA_DIRECTORY_HPP</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PLUMA_DIRECTORY_HPP</span></div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">// Headers</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"></span><span class="preprocessor">#include &lt;Pluma/Config.hpp&gt;</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;list&gt;</span></div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">namespace </span>pluma{</div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">namespace </span>dir{</div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keywordtype">void</span> listFiles(</div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    std::list&lt;std::string&gt;&amp; list,</div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keyword">const</span> std::string&amp; folder,</div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keyword">const</span> std::string&amp; extension = <span class="stringliteral">&quot;&quot;</span>,</div>
+<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordtype">bool</span> recursive = <span class="keyword">false</span></div>
+<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;);</div>
+<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
+<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
+<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;}   <span class="comment">// namespace dir</span></div>
+<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;}   <span class="comment">// namespace pluma</span></div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
+<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor">#endif // PLUMA_DIRECTORY_HPP</span></div>
+</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/Doxygen_8hpp_source.htm b/doc/third_party/Pluma/html/Doxygen_8hpp_source.htm
new file mode 100644 (file)
index 0000000..0a8d6d5
--- /dev/null
@@ -0,0 +1,39 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Doxygen.hpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/Host_8cpp_source.htm b/doc/third_party/Pluma/html/Host_8cpp_source.htm
new file mode 100644 (file)
index 0000000..b70cfb6
--- /dev/null
@@ -0,0 +1,203 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Host.cpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Pluma - Plug-in Management Framework</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This software is provided &#39;as-is&#39;, without any express or implied warranty.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// subject to the following restrictions:</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//    you must not claim that you wrote the original software.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//    If you use this software in a product, an acknowledgment</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//    in the product documentation would be appreciated but is not required.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//    and must not be misrepresented as being the original software.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">// Headers</span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"></span><span class="preprocessor">#include &lt;Pluma/Host.hpp&gt;</span></div>
+<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;cstdio&gt;</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">namespace </span>pluma{</div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;Host::Host(){</div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="comment">// Nothing to do</span></div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;}</div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
+<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
+<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classpluma_1_1Host.htm#ab673ba94ff56a12cdf2a7a25ebb8cc36">   42</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classpluma_1_1Host.htm#ab673ba94ff56a12cdf2a7a25ebb8cc36">Host::add</a>(<a class="code" href="classpluma_1_1Provider.htm">Provider</a>* provider){</div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keywordflow">if</span> (provider == NULL){</div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;Trying to add a null provider.\n&quot;</span>);</div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    }</div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordflow">if</span> (!validateProvider(provider)){</div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keyword">delete</span> provider;</div>
+<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    }</div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    addRequests[ provider-&gt;plumaGetType() ].push_back(provider);</div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;}</div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
+<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
+<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;Host::~Host(){</div>
+<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    clearProviders();</div>
+<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="comment">// map frees itself</span></div>
+<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;}</div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keywordtype">void</span> Host::clearProviders(){</div>
+<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    ProvidersMap::iterator it;</div>
+<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordflow">for</span> (it = knownTypes.begin() ; it != knownTypes.end() ; ++it){</div>
+<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        std::list&lt;Provider*&gt;&amp; providers = it-&gt;second.providers;</div>
+<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        std::list&lt;Provider*&gt;::iterator provIt;</div>
+<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="keywordflow">for</span> (provIt = providers.begin() ; provIt != providers.end() ; ++provIt){</div>
+<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;            <span class="keyword">delete</span> *provIt;</div>
+<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        }</div>
+<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        std::list&lt;Provider*&gt;().swap(providers);</div>
+<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    }</div>
+<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;}</div>
+<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div>
+<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
+<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="keywordtype">bool</span> Host::knows(<span class="keyword">const</span> std::string&amp; type)<span class="keyword"> const</span>{</div>
+<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordflow">return</span> knownTypes.find(type) != knownTypes.end();</div>
+<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;}</div>
+<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
+<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
+<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> Host::getVersion(<span class="keyword">const</span> std::string&amp; type)<span class="keyword"> const</span>{</div>
+<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    ProvidersMap::const_iterator it = knownTypes.find(type);</div>
+<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordflow">if</span> (it != knownTypes.end())</div>
+<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <span class="keywordflow">return</span> it-&gt;second.version;</div>
+<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;}</div>
+<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div>
+<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div>
+<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> Host::getLowestVersion(<span class="keyword">const</span> std::string&amp; type)<span class="keyword"> const</span>{</div>
+<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    ProvidersMap::const_iterator it = knownTypes.find(type);</div>
+<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordflow">if</span> (it != knownTypes.end())</div>
+<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <span class="keywordflow">return</span> it-&gt;second.lowestVersion;</div>
+<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keywordflow">return</span> 0;</div>
+<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;}</div>
+<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
+<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div>
+<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keywordtype">void</span> Host::registerType(<span class="keyword">const</span> std::string&amp; type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> version, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> lowestVersion){</div>
+<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="keywordflow">if</span> (!knows(type)){</div>
+<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        ProviderInfo pi;</div>
+<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        pi.version = version;</div>
+<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        pi.lowestVersion = lowestVersion;</div>
+<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        knownTypes[type] = pi;</div>
+<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    }</div>
+<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;}</div>
+<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div>
+<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
+<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="keyword">const</span> std::list&lt;Provider*&gt;* Host::getProviders(<span class="keyword">const</span> std::string&amp; type)<span class="keyword"> const</span>{</div>
+<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    ProvidersMap::const_iterator it = knownTypes.find(type);</div>
+<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <span class="keywordflow">if</span> (it != knownTypes.end())</div>
+<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        <span class="keywordflow">return</span> &amp;it-&gt;second.providers;</div>
+<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keywordflow">return</span> NULL;</div>
+<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;}</div>
+<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div>
+<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
+<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="keywordtype">bool</span> Host::validateProvider(Provider* provider)<span class="keyword"> const</span>{</div>
+<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keyword">const</span> std::string&amp; type = provider-&gt;plumaGetType();</div>
+<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <span class="keywordflow">if</span> ( !knows(type) ){</div>
+<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;%s provider type isn&#39;t registered.\n&quot;</span>, type.c_str());</div>
+<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    }</div>
+<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordflow">if</span> (!provider-&gt;isCompatible(*<span class="keyword">this</span>)){</div>
+<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;Incompatible %s provider version.\n&quot;</span>, type.c_str());</div>
+<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    }</div>
+<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;}</div>
+<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div>
+<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
+<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="keywordtype">bool</span> Host::registerProvider(Provider* provider){</div>
+<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <span class="keywordflow">if</span> (!validateProvider(provider)){</div>
+<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        <span class="keyword">delete</span> provider;</div>
+<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    }</div>
+<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    knownTypes[ provider-&gt;plumaGetType() ].providers.push_back(provider);</div>
+<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;}</div>
+<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div>
+<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div>
+<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="keywordtype">void</span> Host::cancelAddictions(){</div>
+<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    TempProvidersMap::iterator it;</div>
+<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keywordflow">for</span>( it = addRequests.begin() ; it != addRequests.end() ; ++it){</div>
+<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        std::list&lt;Provider*&gt; lst = it-&gt;second;</div>
+<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        std::list&lt;Provider*&gt;::iterator providerIt;</div>
+<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        <span class="keywordflow">for</span> (providerIt = lst.begin() ; providerIt != lst.end() ; ++providerIt){</div>
+<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;            <span class="keyword">delete</span> *providerIt;</div>
+<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        }</div>
+<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    }</div>
+<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="comment">// clear map</span></div>
+<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    TempProvidersMap().swap(addRequests);</div>
+<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;}</div>
+<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div>
+<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div>
+<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="keywordtype">bool</span> Host::confirmAddictions(){</div>
+<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keywordflow">if</span> (addRequests.empty()) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    TempProvidersMap::iterator it;</div>
+<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordflow">for</span>( it = addRequests.begin() ; it != addRequests.end() ; ++it){</div>
+<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        std::list&lt;Provider*&gt; lst = it-&gt;second;</div>
+<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        std::list&lt;Provider*&gt;::iterator providerIt;</div>
+<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        <span class="keywordflow">for</span> (providerIt = lst.begin() ; providerIt != lst.end() ; ++providerIt){</div>
+<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;            knownTypes[it-&gt;first].providers.push_back(*providerIt);</div>
+<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        }</div>
+<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    }</div>
+<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <span class="comment">// clear map</span></div>
+<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    TempProvidersMap().swap(addRequests);</div>
+<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;}</div>
+<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div>
+<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div>
+<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;} <span class="comment">//namespace pluma</span></div>
+<div class="ttc" id="classpluma_1_1Provider_htm"><div class="ttname"><a href="classpluma_1_1Provider.htm">pluma::Provider</a></div><div class="ttdoc">Interface to provide applications with objects from plugins. </div><div class="ttdef"><b>Definition:</b> <a href="Provider_8hpp_source.htm#l00042">Provider.hpp:42</a></div></div>
+<div class="ttc" id="classpluma_1_1Host_htm_ab673ba94ff56a12cdf2a7a25ebb8cc36"><div class="ttname"><a href="classpluma_1_1Host.htm#ab673ba94ff56a12cdf2a7a25ebb8cc36">pluma::Host::add</a></div><div class="ttdeci">bool add(Provider *provider)</div><div class="ttdoc">Add provider. </div><div class="ttdef"><b>Definition:</b> <a href="Host_8cpp_source.htm#l00042">Host.cpp:42</a></div></div>
+</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/Host_8hpp_source.htm b/doc/third_party/Pluma/html/Host_8hpp_source.htm
new file mode 100644 (file)
index 0000000..8ca0182
--- /dev/null
@@ -0,0 +1,136 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Host.hpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Pluma - Plug-in Management Framework</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This software is provided &#39;as-is&#39;, without any express or implied warranty.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// subject to the following restrictions:</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//    you must not claim that you wrote the original software.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//    If you use this software in a product, an acknowledgment</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//    in the product documentation would be appreciated but is not required.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//    and must not be misrepresented as being the original software.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef PLUMA_HOST_HPP</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PLUMA_HOST_HPP</span></div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">// Headers</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"></span><span class="preprocessor">#include &lt;Pluma/Config.hpp&gt;</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;Pluma/Provider.hpp&gt;</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;list&gt;</span></div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">namespace </span>pluma{</div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
+<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classpluma_1_1Host.htm">   44</a></span>&#160;<span class="keyword">class </span>PLUMA_API <a class="code" href="classpluma_1_1Host.htm">Host</a>{</div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classpluma_1_1PluginManager.htm">PluginManager</a>;</div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classpluma_1_1Provider.htm">Provider</a>;</div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
+<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordtype">bool</span> add(<a class="code" href="classpluma_1_1Provider.htm">Provider</a>* provider);</div>
+<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
+<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
+<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <a class="code" href="classpluma_1_1Host.htm">Host</a>();</div>
+<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
+<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    ~<a class="code" href="classpluma_1_1Host.htm">Host</a>();</div>
+<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
+<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keywordtype">bool</span> knows(<span class="keyword">const</span> std::string&amp; type) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
+<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getVersion(<span class="keyword">const</span> std::string&amp; type) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
+<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getLowestVersion(<span class="keyword">const</span> std::string&amp; type) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div>
+<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keywordtype">void</span> registerType(<span class="keyword">const</span> std::string&amp; type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> version, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> lowestVersion);</div>
+<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div>
+<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keyword">const</span> std::list&lt;Provider*&gt;* getProviders(<span class="keyword">const</span> std::string&amp; type) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
+<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <span class="keywordtype">void</span> clearProviders();</div>
+<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div>
+<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordtype">bool</span> validateProvider(<a class="code" href="classpluma_1_1Provider.htm">Provider</a>* provider) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div>
+<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <span class="keywordtype">bool</span> registerProvider(<a class="code" href="classpluma_1_1Provider.htm">Provider</a>* provider);</div>
+<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div>
+<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <span class="keywordtype">void</span> cancelAddictions();</div>
+<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div>
+<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    <span class="keywordtype">bool</span> confirmAddictions();</div>
+<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div>
+<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;</div>
+<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div>
+<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="comment">// Member data</span></div>
+<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div>
+<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <span class="keyword">struct </span>ProviderInfo{</div>
+<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> version;</div>
+<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;        <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> lowestVersion;</div>
+<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        std::list&lt;Provider*&gt; providers;</div>
+<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    };</div>
+<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div>
+<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    <span class="keyword">typedef</span> std::map&lt;std::string, ProviderInfo &gt; ProvidersMap;</div>
+<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keyword">typedef</span> std::map&lt;std::string, std::list&lt;Provider*&gt; &gt; TempProvidersMap;</div>
+<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;</div>
+<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    ProvidersMap knownTypes;        </div>
+<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    TempProvidersMap addRequests;   </div>
+<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div>
+<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;};</div>
+<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div>
+<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;}   <span class="comment">// namespace pluma</span></div>
+<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;</div>
+<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="preprocessor">#endif // PLUMA_HOST_HPP</span></div>
+<div class="ttc" id="classpluma_1_1PluginManager_htm"><div class="ttname"><a href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></div><div class="ttdoc">Manages loaded plugins. </div><div class="ttdef"><b>Definition:</b> <a href="PluginManager_8hpp_source.htm#l00044">PluginManager.hpp:44</a></div></div>
+<div class="ttc" id="classpluma_1_1Provider_htm"><div class="ttname"><a href="classpluma_1_1Provider.htm">pluma::Provider</a></div><div class="ttdoc">Interface to provide applications with objects from plugins. </div><div class="ttdef"><b>Definition:</b> <a href="Provider_8hpp_source.htm#l00042">Provider.hpp:42</a></div></div>
+<div class="ttc" id="classpluma_1_1Host_htm"><div class="ttname"><a href="classpluma_1_1Host.htm">pluma::Host</a></div><div class="ttdoc">Manages providers. </div><div class="ttdef"><b>Definition:</b> <a href="Host_8hpp_source.htm#l00044">Host.hpp:44</a></div></div>
+</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/PluginManager_8cpp_source.htm b/doc/third_party/Pluma/html/PluginManager_8cpp_source.htm
new file mode 100644 (file)
index 0000000..20f62fb
--- /dev/null
@@ -0,0 +1,237 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">PluginManager.cpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Pluma - Plug-in Management Framework</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This software is provided &#39;as-is&#39;, without any express or implied warranty.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// subject to the following restrictions:</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//    you must not claim that you wrote the original software.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//    If you use this software in a product, an acknowledgment</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//    in the product documentation would be appreciated but is not required.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//    and must not be misrepresented as being the original software.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">// Headers</span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"></span><span class="preprocessor">#include &lt;Pluma/PluginManager.hpp&gt;</span></div>
+<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;Pluma/DLibrary.hpp&gt;</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;Pluma/Dir.hpp&gt;</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;cstdio&gt;</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">namespace </span>pluma{</div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
+<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classpluma_1_1PluginManager.htm#a8378a698812f8f079ff8aea7c1474d67">   37</a></span>&#160;<a class="code" href="classpluma_1_1PluginManager.htm#a8378a698812f8f079ff8aea7c1474d67">PluginManager::PluginManager</a>(){</div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="comment">// Nothing to do</span></div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;}</div>
+<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
+<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classpluma_1_1PluginManager.htm#a4d7a0e1151b75300350834a59db5748b">   43</a></span>&#160;<a class="code" href="classpluma_1_1PluginManager.htm#a4d7a0e1151b75300350834a59db5748b">PluginManager::~PluginManager</a>(){</div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <a class="code" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db">unloadAll</a>();</div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;}</div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
+<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">   49</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">PluginManager::load</a>(<span class="keyword">const</span> std::string&amp; path){</div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    std::string plugName = getPluginName(path);</div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    std::string realPath = resolvePathExtension(path);</div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <a class="code" href="classpluma_1_1DLibrary.htm">DLibrary</a>* lib = <a class="code" href="classpluma_1_1DLibrary.htm#a32400d8e50c0f03cb525ca7500b4516e">DLibrary::load</a>(realPath);</div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordflow">if</span> (!lib) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
+<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    fnRegisterPlugin* registerFunction;</div>
+<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    registerFunction = <span class="keyword">reinterpret_cast&lt;</span>fnRegisterPlugin*<span class="keyword">&gt;</span>(lib-&gt;<a class="code" href="classpluma_1_1DLibrary.htm#a57dd3726140cce08957e40cb5b001d84">getSymbol</a>(<span class="stringliteral">&quot;connect&quot;</span>));</div>
+<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
+<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordflow">if</span>(!registerFunction){</div>
+<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;Failed to initialize plugin \&quot;%s\&quot;: connect function not found\n&quot;</span>, plugName.c_str());</div>
+<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <span class="keyword">delete</span> lib;</div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    }</div>
+<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="comment">// try to initialize plugin:</span></div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    <span class="keywordflow">if</span> (!registerFunction(host)){</div>
+<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <span class="comment">// plugin decided to fail</span></div>
+<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;Self registry failed on plugin \&quot;%s\&quot;.\n&quot;</span>, plugName.c_str());</div>
+<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        host.cancelAddictions();</div>
+<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <span class="keyword">delete</span> lib;</div>
+<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    }</div>
+<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="comment">// Store the library if addictions are confirmed</span></div>
+<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordflow">if</span> (host.confirmAddictions())</div>
+<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        libraries[plugName] = lib;</div>
+<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keywordflow">else</span>{</div>
+<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="comment">// otherwise nothing was registered</span></div>
+<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;Nothing registered by plugin \&quot;%s\&quot;.\n&quot;</span>, plugName.c_str());</div>
+<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keyword">delete</span> lib;</div>
+<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    }</div>
+<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;}</div>
+<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div>
+<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
+<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classpluma_1_1PluginManager.htm#a866127044950094bb789260bc15a2874">   85</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">PluginManager::load</a>(<span class="keyword">const</span> std::string&amp; folder, <span class="keyword">const</span> std::string&amp; pluginName){</div>
+<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordflow">if</span> (folder.empty())</div>
+<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">load</a>(pluginName);</div>
+<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (folder[folder.size()-1] == <span class="charliteral">&#39;/&#39;</span> || folder[folder.size()-1] == <span class="charliteral">&#39;\\&#39;</span>)</div>
+<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">load</a>(folder + pluginName);</div>
+<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">load</a>(folder + <span class="charliteral">&#39;/&#39;</span> + pluginName);</div>
+<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;}</div>
+<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
+<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
+<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb">   95</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb">PluginManager::loadFromFolder</a>(<span class="keyword">const</span> std::string&amp; folder, <span class="keywordtype">bool</span> recursive){</div>
+<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    std::list&lt;std::string&gt; files;</div>
+<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    dir::listFiles(files, folder, PLUMA_LIB_EXTENSION, recursive);</div>
+<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="comment">// try to load every library</span></div>
+<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keywordtype">int</span> res = 0;</div>
+<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    std::list&lt;std::string&gt;::const_iterator it;</div>
+<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="keywordflow">for</span> (it = files.begin() ; it != files.end() ; ++it){</div>
+<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <span class="keywordflow">if</span> ( <a class="code" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">load</a>(*it) ) ++res;</div>
+<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    }</div>
+<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="keywordflow">return</span> res;</div>
+<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;}</div>
+<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
+<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div>
+<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745">  109</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745">PluginManager::unload</a>(<span class="keyword">const</span> std::string&amp; pluginName){</div>
+<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    std::string plugName = getPluginName(pluginName);</div>
+<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    LibMap::iterator it = libraries.find(plugName);</div>
+<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="keywordflow">if</span>( it != libraries.end() ) {</div>
+<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <span class="keyword">delete</span> it-&gt;second;</div>
+<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        libraries.erase(it);</div>
+<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    }</div>
+<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;}</div>
+<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div>
+<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div>
+<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db">  122</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db">PluginManager::unloadAll</a>(){</div>
+<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div>
+<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    host.clearProviders();</div>
+<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    LibMap::iterator it;</div>
+<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keywordflow">for</span> (it = libraries.begin() ; it != libraries.end() ; ++it){</div>
+<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        <span class="keyword">delete</span> it-&gt;second;</div>
+<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    }</div>
+<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    libraries.clear();</div>
+<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;}</div>
+<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div>
+<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div>
+<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;std::string PluginManager::getPluginName(<span class="keyword">const</span> std::string&amp; path){</div>
+<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keywordtype">size_t</span> lastDash = path.find_last_of(<span class="stringliteral">&quot;/\\&quot;</span>);</div>
+<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keywordtype">size_t</span> lastDot = path.find_last_of(<span class="charliteral">&#39;.&#39;</span>);</div>
+<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keywordflow">if</span> (lastDash == std::string::npos) lastDash = 0;</div>
+<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <span class="keywordflow">else</span> ++lastDash;</div>
+<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keywordflow">if</span> (lastDot &lt; lastDash || lastDot == std::string::npos){</div>
+<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;        <span class="comment">// path without extension</span></div>
+<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        lastDot = path.length();</div>
+<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    }</div>
+<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keywordflow">return</span> path.substr(lastDash, lastDot-lastDash);</div>
+<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;}</div>
+<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div>
+<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div>
+<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;std::string PluginManager::resolvePathExtension(<span class="keyword">const</span> std::string&amp; path){</div>
+<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keywordtype">size_t</span> lastDash = path.find_last_of(<span class="stringliteral">&quot;/\\&quot;</span>);</div>
+<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keywordtype">size_t</span> lastDot = path.find_last_of(<span class="charliteral">&#39;.&#39;</span>);</div>
+<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <span class="keywordflow">if</span> (lastDash == std::string::npos) lastDash = 0;</div>
+<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="keywordflow">else</span> ++lastDash;</div>
+<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="keywordflow">if</span> (lastDot &lt; lastDash || lastDot == std::string::npos){</div>
+<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        <span class="comment">// path without extension, add it</span></div>
+<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        <span class="keywordflow">return</span> path + <span class="stringliteral">&quot;.&quot;</span> + PLUMA_LIB_EXTENSION;</div>
+<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    }</div>
+<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keywordflow">return</span> path;</div>
+<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;}</div>
+<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div>
+<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div>
+<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="classpluma_1_1PluginManager.htm#ab70b5b6b719bdbd64c27ae2dcb12a64d">  162</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classpluma_1_1PluginManager.htm#ab70b5b6b719bdbd64c27ae2dcb12a64d">PluginManager::registerType</a>(<span class="keyword">const</span> std::string&amp; type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> version, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> lowestVersion){</div>
+<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    host.registerType(type, version, lowestVersion);</div>
+<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;}</div>
+<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div>
+<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;</div>
+<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="classpluma_1_1PluginManager.htm#af27f8e89b8e29359495b6398464ebf02">  168</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classpluma_1_1PluginManager.htm#af27f8e89b8e29359495b6398464ebf02">PluginManager::addProvider</a>(<a class="code" href="classpluma_1_1Provider.htm">Provider</a>* provider){</div>
+<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordflow">if</span> (provider == NULL){</div>
+<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;Trying to add null provider\n&quot;</span>);</div>
+<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    }</div>
+<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <span class="keywordflow">return</span> host.registerProvider(provider);</div>
+<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;}</div>
+<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div>
+<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div>
+<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="classpluma_1_1PluginManager.htm#a187e60d3fe7524774c08eb58ebcb843f">  178</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="classpluma_1_1PluginManager.htm#a187e60d3fe7524774c08eb58ebcb843f">PluginManager::getLoadedPlugins</a>(std::vector&lt;const std::string*&gt;&amp; pluginNames)<span class="keyword"> const</span>{</div>
+<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    pluginNames.reserve(pluginNames.size()+libraries.size());</div>
+<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    LibMap::const_iterator it;</div>
+<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    <span class="keywordflow">for</span>(it = libraries.begin() ; it != libraries.end() ; ++it){</div>
+<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        pluginNames.push_back(&amp;(it-&gt;first));</div>
+<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    }</div>
+<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;}</div>
+<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div>
+<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div>
+<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="classpluma_1_1PluginManager.htm#adbd75738cd4d8969608c9da8b58a03c3">  188</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classpluma_1_1PluginManager.htm#adbd75738cd4d8969608c9da8b58a03c3">PluginManager::isLoaded</a>(<span class="keyword">const</span> std::string&amp; pluginName)<span class="keyword"> const</span>{</div>
+<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="keywordflow">return</span> libraries.find(getPluginName(pluginName)) != libraries.end();</div>
+<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;}</div>
+<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div>
+<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div>
+<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classpluma_1_1PluginManager.htm#ad5eab1dcae10122fdfb8d94d7b391e9e">  194</a></span>&#160;<span class="keyword">const</span> std::list&lt;Provider*&gt;* <a class="code" href="classpluma_1_1PluginManager.htm#ad5eab1dcae10122fdfb8d94d7b391e9e">PluginManager::getProviders</a>(<span class="keyword">const</span> std::string&amp; type)<span class="keyword"> const</span>{</div>
+<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    <span class="keywordflow">return</span> host.getProviders(type);</div>
+<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;}</div>
+<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;</div>
+<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div>
+<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div>
+<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;}   <span class="comment">// namespace pluma</span></div>
+<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div>
+<div class="ttc" id="classpluma_1_1PluginManager_htm_a52f6408d4cf95c6f36b518ab2d3a7745"><div class="ttname"><a href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745">pluma::PluginManager::unload</a></div><div class="ttdeci">bool unload(const std::string &amp;pluginName)</div><div class="ttdoc">Unload a plugin. </div><div class="ttdef"><b>Definition:</b> <a href="PluginManager_8cpp_source.htm#l00109">PluginManager.cpp:109</a></div></div>
+<div class="ttc" id="classpluma_1_1PluginManager_htm_ab70b5b6b719bdbd64c27ae2dcb12a64d"><div class="ttname"><a href="classpluma_1_1PluginManager.htm#ab70b5b6b719bdbd64c27ae2dcb12a64d">pluma::PluginManager::registerType</a></div><div class="ttdeci">void registerType(const std::string &amp;type, unsigned int version, unsigned int lowestVersion)</div><div class="ttdoc">Register a provider type. </div><div class="ttdef"><b>Definition:</b> <a href="PluginManager_8cpp_source.htm#l00162">PluginManager.cpp:162</a></div></div>
+<div class="ttc" id="classpluma_1_1PluginManager_htm_a697a20dc97957e0c2a5dad33f39d93db"><div class="ttname"><a href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db">pluma::PluginManager::unloadAll</a></div><div class="ttdeci">void unloadAll()</div><div class="ttdoc">Unload all loaded plugins. </div><div class="ttdef"><b>Definition:</b> <a href="PluginManager_8cpp_source.htm#l00122">PluginManager.cpp:122</a></div></div>
+<div class="ttc" id="classpluma_1_1PluginManager_htm_a8378a698812f8f079ff8aea7c1474d67"><div class="ttname"><a href="classpluma_1_1PluginManager.htm#a8378a698812f8f079ff8aea7c1474d67">pluma::PluginManager::PluginManager</a></div><div class="ttdeci">PluginManager()</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> <a href="PluginManager_8cpp_source.htm#l00037">PluginManager.cpp:37</a></div></div>
+<div class="ttc" id="classpluma_1_1Provider_htm"><div class="ttname"><a href="classpluma_1_1Provider.htm">pluma::Provider</a></div><div class="ttdoc">Interface to provide applications with objects from plugins. </div><div class="ttdef"><b>Definition:</b> <a href="Provider_8hpp_source.htm#l00042">Provider.hpp:42</a></div></div>
+<div class="ttc" id="classpluma_1_1PluginManager_htm_ad5eab1dcae10122fdfb8d94d7b391e9e"><div class="ttname"><a href="classpluma_1_1PluginManager.htm#ad5eab1dcae10122fdfb8d94d7b391e9e">pluma::PluginManager::getProviders</a></div><div class="ttdeci">const std::list&lt; Provider * &gt; * getProviders(const std::string &amp;type) const </div><div class="ttdoc">Get providers of a certain type. </div><div class="ttdef"><b>Definition:</b> <a href="PluginManager_8cpp_source.htm#l00194">PluginManager.cpp:194</a></div></div>
+<div class="ttc" id="classpluma_1_1DLibrary_htm_a32400d8e50c0f03cb525ca7500b4516e"><div class="ttname"><a href="classpluma_1_1DLibrary.htm#a32400d8e50c0f03cb525ca7500b4516e">pluma::DLibrary::load</a></div><div class="ttdeci">static DLibrary * load(const std::string &amp;path)</div><div class="ttdoc">Load a library. </div><div class="ttdef"><b>Definition:</b> <a href="DLibrary_8cpp_source.htm#l00037">DLibrary.cpp:37</a></div></div>
+<div class="ttc" id="classpluma_1_1DLibrary_htm"><div class="ttname"><a href="classpluma_1_1DLibrary.htm">pluma::DLibrary</a></div><div class="ttdoc">Manages a Dynamic Linking Library. </div><div class="ttdef"><b>Definition:</b> <a href="DLibrary_8hpp_source.htm#l00049">DLibrary.hpp:49</a></div></div>
+<div class="ttc" id="classpluma_1_1PluginManager_htm_a4d892e345288c26dea091d62ee2b03eb"><div class="ttname"><a href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb">pluma::PluginManager::loadFromFolder</a></div><div class="ttdeci">int loadFromFolder(const std::string &amp;folder, bool recursive=false)</div><div class="ttdoc">Load all plugins from a given folder. </div><div class="ttdef"><b>Definition:</b> <a href="PluginManager_8cpp_source.htm#l00095">PluginManager.cpp:95</a></div></div>
+<div class="ttc" id="classpluma_1_1DLibrary_htm_a57dd3726140cce08957e40cb5b001d84"><div class="ttname"><a href="classpluma_1_1DLibrary.htm#a57dd3726140cce08957e40cb5b001d84">pluma::DLibrary::getSymbol</a></div><div class="ttdeci">void * getSymbol(const std::string &amp;symbol)</div><div class="ttdoc">Get a symbol from the library. </div><div class="ttdef"><b>Definition:</b> <a href="DLibrary_8cpp_source.htm#l00079">DLibrary.cpp:79</a></div></div>
+<div class="ttc" id="classpluma_1_1PluginManager_htm_aa00400d23efa8a8f94e44dd1c5bf54e6"><div class="ttname"><a href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">pluma::PluginManager::load</a></div><div class="ttdeci">bool load(const std::string &amp;path)</div><div class="ttdoc">Load a plugin given it&#39;s path. </div><div class="ttdef"><b>Definition:</b> <a href="PluginManager_8cpp_source.htm#l00049">PluginManager.cpp:49</a></div></div>
+<div class="ttc" id="classpluma_1_1PluginManager_htm_a4d7a0e1151b75300350834a59db5748b"><div class="ttname"><a href="classpluma_1_1PluginManager.htm#a4d7a0e1151b75300350834a59db5748b">pluma::PluginManager::~PluginManager</a></div><div class="ttdeci">~PluginManager()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> <a href="PluginManager_8cpp_source.htm#l00043">PluginManager.cpp:43</a></div></div>
+<div class="ttc" id="classpluma_1_1PluginManager_htm_adbd75738cd4d8969608c9da8b58a03c3"><div class="ttname"><a href="classpluma_1_1PluginManager.htm#adbd75738cd4d8969608c9da8b58a03c3">pluma::PluginManager::isLoaded</a></div><div class="ttdeci">bool isLoaded(const std::string &amp;pluginName) const </div><div class="ttdoc">Check if a plug-in is loaded. </div><div class="ttdef"><b>Definition:</b> <a href="PluginManager_8cpp_source.htm#l00188">PluginManager.cpp:188</a></div></div>
+<div class="ttc" id="classpluma_1_1PluginManager_htm_a187e60d3fe7524774c08eb58ebcb843f"><div class="ttname"><a href="classpluma_1_1PluginManager.htm#a187e60d3fe7524774c08eb58ebcb843f">pluma::PluginManager::getLoadedPlugins</a></div><div class="ttdeci">void getLoadedPlugins(std::vector&lt; const std::string * &gt; &amp;pluginNames) const </div><div class="ttdoc">Get the name of all loaded plugins. </div><div class="ttdef"><b>Definition:</b> <a href="PluginManager_8cpp_source.htm#l00178">PluginManager.cpp:178</a></div></div>
+<div class="ttc" id="classpluma_1_1PluginManager_htm_af27f8e89b8e29359495b6398464ebf02"><div class="ttname"><a href="classpluma_1_1PluginManager.htm#af27f8e89b8e29359495b6398464ebf02">pluma::PluginManager::addProvider</a></div><div class="ttdeci">bool addProvider(Provider *provider)</div><div class="ttdoc">Directly add a new provider. </div><div class="ttdef"><b>Definition:</b> <a href="PluginManager_8cpp_source.htm#l00168">PluginManager.cpp:168</a></div></div>
+</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/PluginManager_8hpp_source.htm b/doc/third_party/Pluma/html/PluginManager_8hpp_source.htm
new file mode 100644 (file)
index 0000000..ace857e
--- /dev/null
@@ -0,0 +1,131 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">PluginManager.hpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Pluma - Plug-in Management Framework</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This software is provided &#39;as-is&#39;, without any express or implied warranty.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// subject to the following restrictions:</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//    you must not claim that you wrote the original software.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//    If you use this software in a product, an acknowledgment</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//    in the product documentation would be appreciated but is not required.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//    and must not be misrepresented as being the original software.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef PLUMA_PLUGIN_MANAGER_HPP</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PLUMA_PLUGIN_MANAGER_HPP</span></div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">// Headers</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"></span><span class="preprocessor">#include &lt;Pluma/Config.hpp&gt;</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;Pluma/Host.hpp&gt;</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">namespace </span>pluma{</div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">class </span>DLibrary;</div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
+<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classpluma_1_1PluginManager.htm">   44</a></span>&#160;<span class="keyword">class </span>PLUMA_API <a class="code" href="classpluma_1_1PluginManager.htm">PluginManager</a>{</div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    ~<a class="code" href="classpluma_1_1PluginManager.htm">PluginManager</a>();</div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
+<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keywordtype">bool</span> load(<span class="keyword">const</span> std::string&amp; path);</div>
+<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
+<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
+<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keywordtype">bool</span> load(<span class="keyword">const</span> std::string&amp; folder, <span class="keyword">const</span> std::string&amp; pluginName);</div>
+<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div>
+<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keywordtype">int</span> loadFromFolder(<span class="keyword">const</span> std::string&amp; folder, <span class="keywordtype">bool</span> recursive = <span class="keyword">false</span>);</div>
+<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div>
+<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keywordtype">bool</span> unload(<span class="keyword">const</span> std::string&amp; pluginName);</div>
+<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div>
+<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordtype">void</span> unloadAll();</div>
+<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
+<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="keywordtype">bool</span> addProvider(<a class="code" href="classpluma_1_1Provider.htm">Provider</a>* provider);</div>
+<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div>
+<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keywordtype">void</span> getLoadedPlugins(std::vector&lt;const std::string*&gt;&amp; pluginNames) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;</div>
+<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <span class="keywordtype">bool</span> isLoaded(<span class="keyword">const</span> std::string&amp; pluginName) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div>
+<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div>
+<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="keyword">protected</span>:</div>
+<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div>
+<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <a class="code" href="classpluma_1_1PluginManager.htm">PluginManager</a>();</div>
+<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;</div>
+<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    <span class="keywordtype">void</span> registerType(<span class="keyword">const</span> std::string&amp; type, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> version, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> lowestVersion);</div>
+<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div>
+<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="keyword">const</span> std::list&lt;Provider*&gt;* getProviders(<span class="keyword">const</span> std::string&amp; type) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div>
+<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;</div>
+<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div>
+<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    <span class="keyword">static</span> std::string getPluginName(<span class="keyword">const</span> std::string&amp; path);</div>
+<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div>
+<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keyword">static</span> std::string resolvePathExtension(<span class="keyword">const</span> std::string&amp; path);</div>
+<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;</div>
+<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div>
+<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;</div>
+<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    <span class="keyword">typedef</span> <span class="keywordtype">bool</span> fnRegisterPlugin(<a class="code" href="classpluma_1_1Host.htm">Host</a>&amp;);</div>
+<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <span class="keyword">typedef</span> std::map&lt;std::string,DLibrary*&gt; LibMap;</div>
+<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div>
+<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    LibMap libraries;   </div>
+<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    <a class="code" href="classpluma_1_1Host.htm">Host</a> host;          </div>
+<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;</div>
+<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;};</div>
+<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div>
+<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;}   <span class="comment">// namespace pluma</span></div>
+<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div>
+<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;<span class="preprocessor">#endif // PLUMA_PLUGIN_MANAGER_HPP</span></div>
+<div class="ttc" id="classpluma_1_1PluginManager_htm"><div class="ttname"><a href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></div><div class="ttdoc">Manages loaded plugins. </div><div class="ttdef"><b>Definition:</b> <a href="PluginManager_8hpp_source.htm#l00044">PluginManager.hpp:44</a></div></div>
+<div class="ttc" id="classpluma_1_1Provider_htm"><div class="ttname"><a href="classpluma_1_1Provider.htm">pluma::Provider</a></div><div class="ttdoc">Interface to provide applications with objects from plugins. </div><div class="ttdef"><b>Definition:</b> <a href="Provider_8hpp_source.htm#l00042">Provider.hpp:42</a></div></div>
+<div class="ttc" id="classpluma_1_1Host_htm"><div class="ttname"><a href="classpluma_1_1Host.htm">pluma::Host</a></div><div class="ttdoc">Manages providers. </div><div class="ttdef"><b>Definition:</b> <a href="Host_8hpp_source.htm#l00044">Host.hpp:44</a></div></div>
+</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/Pluma_8hpp_source.htm b/doc/third_party/Pluma/html/Pluma_8hpp_source.htm
new file mode 100644 (file)
index 0000000..54cbe25
--- /dev/null
@@ -0,0 +1,137 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Pluma.hpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Pluma - Plug-in Management Framework</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This software is provided &#39;as-is&#39;, without any express or implied warranty.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// subject to the following restrictions:</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//    you must not claim that you wrote the original software.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//    If you use this software in a product, an acknowledgment</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//    in the product documentation would be appreciated but is not required.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//    and must not be misrepresented as being the original software.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef PLUMA_PLUMA_HPP</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PLUMA_PLUMA_HPP</span></div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">// Headers</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"></span><span class="preprocessor">#include &lt;Pluma/Config.hpp&gt;</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;Pluma/Provider.hpp&gt;</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;Pluma/PluginManager.hpp&gt;</span></div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">// Andy macro to convert parameter to string</span></div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment"></span><span class="preprocessor">#define PLUMA_2STRING(X) #X</span></div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">// Macro that helps host applications defining</span></div>
+<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment">// their provider classes</span></div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment"></span><span class="preprocessor">#define PLUMA_PROVIDER_HEADER(TYPE)\</span></div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">PLUMA_PROVIDER_HEADER_BEGIN(TYPE)\</span></div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">virtual TYPE* create() const = 0;\</span></div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">PLUMA_PROVIDER_HEADER_END</span></div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">// Macro that generate first part of the provider definition</span></div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment"></span><span class="preprocessor">#define PLUMA_PROVIDER_HEADER_BEGIN(TYPE)\</span></div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">class TYPE##Provider: public pluma::Provider{\</span></div>
+<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor">private:\</span></div>
+<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">    friend class pluma::Pluma;\</span></div>
+<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor">    static const unsigned int PLUMA_INTERFACE_VERSION;\</span></div>
+<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">    static const unsigned int PLUMA_INTERFACE_LOWEST_VERSION;\</span></div>
+<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">    static const std::string PLUMA_PROVIDER_TYPE;\</span></div>
+<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="preprocessor">    std::string plumaGetType() const{ return PLUMA_PROVIDER_TYPE; }\</span></div>
+<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor">public:\</span></div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="preprocessor">    unsigned int getVersion() const{ return PLUMA_INTERFACE_VERSION; }</span></div>
+<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="comment">// Macro that generate last part of the provider definition</span></div>
+<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="comment"></span><span class="preprocessor">#define PLUMA_PROVIDER_HEADER_END };</span></div>
+<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="comment">// Macro that generate the provider declaration</span></div>
+<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="comment"></span><span class="preprocessor">#define PLUMA_PROVIDER_SOURCE(TYPE, Version, LowestVersion)\</span></div>
+<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">const std::string TYPE##Provider::PLUMA_PROVIDER_TYPE = PLUMA_2STRING( TYPE );\</span></div>
+<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="preprocessor">const unsigned int TYPE##Provider::PLUMA_INTERFACE_VERSION = Version;\</span></div>
+<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">const unsigned int TYPE##Provider::PLUMA_INTERFACE_LOWEST_VERSION = LowestVersion;</span></div>
+<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
+<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="comment">// Macro that helps plugins generating their provider implementations</span></div>
+<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment">// PRE: SPECIALIZED_TYPE must inherit from BASE_TYPE</span></div>
+<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment"></span><span class="preprocessor">#define PLUMA_INHERIT_PROVIDER(SPECIALIZED_TYPE, BASE_TYPE)\</span></div>
+<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor">class SPECIALIZED_TYPE##Provider: public BASE_TYPE##Provider{\</span></div>
+<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">public:\</span></div>
+<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">    BASE_TYPE * create() const{ return new SPECIALIZED_TYPE (); }\</span></div>
+<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">};</span></div>
+<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
+<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keyword">namespace </span>pluma{</div>
+<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div>
+<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classpluma_1_1Pluma.htm">   94</a></span>&#160;<span class="keyword">class </span><a class="code" href="classpluma_1_1Pluma.htm">Pluma</a>: <span class="keyword">public</span> <a class="code" href="classpluma_1_1PluginManager.htm">PluginManager</a>{</div>
+<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div>
+<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <a class="code" href="classpluma_1_1Pluma.htm#adf4e065f5169931f6290f3828b49e7bb">Pluma</a>();</div>
+<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
+<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Prov<span class="keywordtype">id</span>erType&gt;</div>
+<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpluma_1_1Pluma.htm#a200c59b0983c7ca53d11b03cf8220bc7">acceptProviderType</a>();</div>
+<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div>
+<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Prov<span class="keywordtype">id</span>erType&gt;</div>
+<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classpluma_1_1Pluma.htm#a49fa0b2b4497885c4e978259be0a7abe">getProviders</a>(std::vector&lt;ProviderType*&gt;&amp; providers);</div>
+<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;};</div>
+<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div>
+<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="preprocessor">#include &lt;Pluma/Pluma.inl&gt;</span></div>
+<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div>
+<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;}</div>
+<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;</div>
+<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
+<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="preprocessor">#endif // PLUMA_PLUMA_HPP</span></div>
+<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div>
+<div class="ttc" id="classpluma_1_1PluginManager_htm"><div class="ttname"><a href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></div><div class="ttdoc">Manages loaded plugins. </div><div class="ttdef"><b>Definition:</b> <a href="PluginManager_8hpp_source.htm#l00044">PluginManager.hpp:44</a></div></div>
+<div class="ttc" id="classpluma_1_1Pluma_htm"><div class="ttname"><a href="classpluma_1_1Pluma.htm">pluma::Pluma</a></div><div class="ttdoc">Pluma plugins management. </div><div class="ttdef"><b>Definition:</b> <a href="Pluma_8hpp_source.htm#l00094">Pluma.hpp:94</a></div></div>
+<div class="ttc" id="classpluma_1_1Pluma_htm_a49fa0b2b4497885c4e978259be0a7abe"><div class="ttname"><a href="classpluma_1_1Pluma.htm#a49fa0b2b4497885c4e978259be0a7abe">pluma::Pluma::getProviders</a></div><div class="ttdeci">void getProviders(std::vector&lt; ProviderType * &gt; &amp;providers)</div><div class="ttdoc">Get the stored providers of a certain type. </div></div>
+<div class="ttc" id="classpluma_1_1Pluma_htm_a200c59b0983c7ca53d11b03cf8220bc7"><div class="ttname"><a href="classpluma_1_1Pluma.htm#a200c59b0983c7ca53d11b03cf8220bc7">pluma::Pluma::acceptProviderType</a></div><div class="ttdeci">void acceptProviderType()</div><div class="ttdoc">Tell Pluma to accept a certain type of providers. </div></div>
+<div class="ttc" id="classpluma_1_1Pluma_htm_adf4e065f5169931f6290f3828b49e7bb"><div class="ttname"><a href="classpluma_1_1Pluma.htm#adf4e065f5169931f6290f3828b49e7bb">pluma::Pluma::Pluma</a></div><div class="ttdeci">Pluma()</div><div class="ttdoc">Default Constructor. </div><div class="ttdef"><b>Definition:</b> <a href="Pluma_8inl_source.htm#l00027">Pluma.inl:27</a></div></div>
+</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/Pluma_8inl_source.htm b/doc/third_party/Pluma/html/Pluma_8inl_source.htm
new file mode 100644 (file)
index 0000000..3955ab5
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Pluma.inl</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Pluma - Plug-in Management Framework</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This software is provided &#39;as-is&#39;, without any express or implied warranty.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// subject to the following restrictions:</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//    you must not claim that you wrote the original software.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//    If you use this software in a product, an acknowledgment</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//    in the product documentation would be appreciated but is not required.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//    and must not be misrepresented as being the original software.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
+<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classpluma_1_1Pluma.htm#adf4e065f5169931f6290f3828b49e7bb">   27</a></span>&#160;<span class="keyword">inline</span> Pluma::Pluma(){</div>
+<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="comment">// Nothing to do</span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;}</div>
+<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Prov<span class="keywordtype">id</span>erType&gt;</div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keywordtype">void</span> Pluma::acceptProviderType(){</div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    PluginManager::registerType(</div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        ProviderType::PLUMA_PROVIDER_TYPE,</div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        ProviderType::PLUMA_INTERFACE_VERSION,</div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        ProviderType::PLUMA_INTERFACE_LOWEST_VERSION</div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    );</div>
+<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;}</div>
+<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
+<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> Prov<span class="keywordtype">id</span>erType&gt;</div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keywordtype">void</span> Pluma::getProviders(std::vector&lt;ProviderType*&gt;&amp; providers){</div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keyword">const</span> std::list&lt;Provider*&gt;* lst = PluginManager::getProviders(ProviderType::PLUMA_PROVIDER_TYPE);</div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordflow">if</span> (!lst) <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    providers.reserve(providers.size() + lst-&gt;size());</div>
+<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    std::list&lt;Provider*&gt;::const_iterator it;</div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keywordflow">for</span> (it = lst-&gt;begin() ; it != lst-&gt;end() ; ++it)</div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        providers.push_back(static_cast&lt;ProviderType*&gt;(*it));</div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;}</div>
+</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/Provider_8cpp_source.htm b/doc/third_party/Pluma/html/Provider_8cpp_source.htm
new file mode 100644 (file)
index 0000000..64e9be5
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Provider.cpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Pluma - Plug-in Management Framework</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This software is provided &#39;as-is&#39;, without any express or implied warranty.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// subject to the following restrictions:</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//    you must not claim that you wrote the original software.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//    If you use this software in a product, an acknowledgment</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//    in the product documentation would be appreciated but is not required.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//    and must not be misrepresented as being the original software.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">// Headers</span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"></span><span class="preprocessor">#include &lt;Pluma/Provider.hpp&gt;</span></div>
+<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;Pluma/Host.hpp&gt;</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">namespace </span>pluma{</div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
+<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classpluma_1_1Provider.htm#a111a1db902d6372282f8407c9d845c21">   36</a></span>&#160;<a class="code" href="classpluma_1_1Provider.htm#a111a1db902d6372282f8407c9d845c21">Provider::~Provider</a>(){</div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <span class="comment">// Nothing to do</span></div>
+<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;}</div>
+<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
+<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
+<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classpluma_1_1Provider.htm#a192ea5a17a8fe9de1f3ba6572f44f266">   42</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="classpluma_1_1Provider.htm#a192ea5a17a8fe9de1f3ba6572f44f266">Provider::isCompatible</a>(<span class="keyword">const</span> <a class="code" href="classpluma_1_1Host.htm">Host</a>&amp; host)<span class="keyword"> const</span>{</div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="comment">// check compatibility with host</span></div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keyword">const</span> std::string&amp; type = this-&gt;plumaGetType();</div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordflow">if</span> (!host.knows(type)) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> lowest = host.getLowestVersion(type);</div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> current = host.getVersion(type);</div>
+<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> myVersion = this-&gt;<a class="code" href="classpluma_1_1Provider.htm#af8643b65e111e010edff6e7a489265e6">getVersion</a>();</div>
+<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keywordflow">return</span> lowest &lt;= myVersion &amp;&amp; myVersion &lt;= current;</div>
+<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;}</div>
+<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;}   <span class="comment">// namespace pluma</span></div>
+<div class="ttc" id="classpluma_1_1Provider_htm_a111a1db902d6372282f8407c9d845c21"><div class="ttname"><a href="classpluma_1_1Provider.htm#a111a1db902d6372282f8407c9d845c21">pluma::Provider::~Provider</a></div><div class="ttdeci">virtual ~Provider()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> <a href="Provider_8cpp_source.htm#l00036">Provider.cpp:36</a></div></div>
+<div class="ttc" id="classpluma_1_1Provider_htm_af8643b65e111e010edff6e7a489265e6"><div class="ttname"><a href="classpluma_1_1Provider.htm#af8643b65e111e010edff6e7a489265e6">pluma::Provider::getVersion</a></div><div class="ttdeci">virtual unsigned int getVersion() const =0</div><div class="ttdoc">Get provider version. </div></div>
+<div class="ttc" id="classpluma_1_1Host_htm"><div class="ttname"><a href="classpluma_1_1Host.htm">pluma::Host</a></div><div class="ttdoc">Manages providers. </div><div class="ttdef"><b>Definition:</b> <a href="Host_8hpp_source.htm#l00044">Host.hpp:44</a></div></div>
+<div class="ttc" id="classpluma_1_1Provider_htm_a192ea5a17a8fe9de1f3ba6572f44f266"><div class="ttname"><a href="classpluma_1_1Provider.htm#a192ea5a17a8fe9de1f3ba6572f44f266">pluma::Provider::isCompatible</a></div><div class="ttdeci">bool isCompatible(const Host &amp;host) const </div><div class="ttdoc">Check compatibility with host. </div><div class="ttdef"><b>Definition:</b> <a href="Provider_8cpp_source.htm#l00042">Provider.cpp:42</a></div></div>
+</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/Provider_8hpp_source.htm b/doc/third_party/Pluma/html/Provider_8hpp_source.htm
new file mode 100644 (file)
index 0000000..bba5d6a
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Provider.hpp</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// Pluma - Plug-in Management Framework</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// This software is provided &#39;as-is&#39;, without any express or implied warranty.</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
+<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// subject to the following restrictions:</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//    you must not claim that you wrote the original software.</span></div>
+<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//    If you use this software in a product, an acknowledgment</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">//    in the product documentation would be appreciated but is not required.</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">//    and must not be misrepresented as being the original software.</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef PLUMA_PROVIDER_HPP</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PLUMA_PROVIDER_HPP</span></div>
+<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">// Headers</span></div>
+<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"></span><span class="preprocessor">#include &lt;Pluma/Config.hpp&gt;</span></div>
+<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
+<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
+<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
+<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">namespace </span>pluma{</div>
+<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">class </span>Host;</div>
+<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
+<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classpluma_1_1Provider.htm">   42</a></span>&#160;<span class="keyword">class </span>PLUMA_API <a class="code" href="classpluma_1_1Provider.htm">Provider</a>{</div>
+<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classpluma_1_1Host.htm">Host</a>;</div>
+<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
+<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
+<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
+<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classpluma_1_1Provider.htm">Provider</a>();</div>
+<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
+<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getVersion() <span class="keyword">const</span> = 0;</div>
+<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
+<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordtype">bool</span> isCompatible(<span class="keyword">const</span> <a class="code" href="classpluma_1_1Host.htm">Host</a>&amp; host) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
+<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div>
+<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
+<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keyword">virtual</span> std::string plumaGetType() <span class="keyword">const</span> = 0;</div>
+<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div>
+<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;};</div>
+<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
+<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;}   <span class="comment">// namespace pluma</span></div>
+<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div>
+<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div>
+<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="preprocessor">#endif // PLUMA_PROVIDER_HPP</span></div>
+<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
+<div class="ttc" id="classpluma_1_1Provider_htm"><div class="ttname"><a href="classpluma_1_1Provider.htm">pluma::Provider</a></div><div class="ttdoc">Interface to provide applications with objects from plugins. </div><div class="ttdef"><b>Definition:</b> <a href="Provider_8hpp_source.htm#l00042">Provider.hpp:42</a></div></div>
+<div class="ttc" id="classpluma_1_1Host_htm"><div class="ttname"><a href="classpluma_1_1Host.htm">pluma::Host</a></div><div class="ttdoc">Manages providers. </div><div class="ttdef"><b>Definition:</b> <a href="Host_8hpp_source.htm#l00044">Host.hpp:44</a></div></div>
+</div><!-- fragment --></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/annotated.htm b/doc/third_party/Pluma/html/annotated.htm
new file mode 100644 (file)
index 0000000..b5d70dd
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li class="current"><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Class List</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="textblock">Here are the classes, structs, unions and interfaces with brief descriptions:</div><div class="directory">
+<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span>]</div><table class="directory">
+<tr id="row_0_" class="even"><td class="entry"><img id="arr_0_" src="ftv2mlastnode.png" alt="\" width="16" height="22" onclick="toggleFolder('0_')"/><img src="ftv2ns.png" alt="N" width="24" height="22" /><b>pluma</b></td><td class="desc"></td></tr>
+<tr id="row_0_0_"><td class="entry"><img src="ftv2blank.png" alt="&#160;" width="16" height="22" /><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="classpluma_1_1DLibrary.htm" target="_self">DLibrary</a></td><td class="desc">Manages a Dynamic Linking Library </td></tr>
+<tr id="row_0_1_" class="even"><td class="entry"><img src="ftv2blank.png" alt="&#160;" width="16" height="22" /><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="classpluma_1_1Host.htm" target="_self">Host</a></td><td class="desc">Manages providers </td></tr>
+<tr id="row_0_2_"><td class="entry"><img src="ftv2blank.png" alt="&#160;" width="16" height="22" /><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="classpluma_1_1PluginManager.htm" target="_self">PluginManager</a></td><td class="desc">Manages loaded plugins </td></tr>
+<tr id="row_0_3_" class="even"><td class="entry"><img src="ftv2blank.png" alt="&#160;" width="16" height="22" /><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="classpluma_1_1Pluma.htm" target="_self">Pluma</a></td><td class="desc"><a class="el" href="classpluma_1_1Pluma.htm" title="Pluma plugins management. ">Pluma</a> plugins management </td></tr>
+<tr id="row_0_4_"><td class="entry"><img src="ftv2blank.png" alt="&#160;" width="16" height="22" /><img src="ftv2lastnode.png" alt="\" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="classpluma_1_1Provider.htm" target="_self">Provider</a></td><td class="desc">Interface to provide applications with objects from plugins </td></tr>
+</table>
+</div><!-- directory -->
+</div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/bc_s.png b/doc/third_party/Pluma/html/bc_s.png
new file mode 100644 (file)
index 0000000..224b29a
Binary files /dev/null and b/doc/third_party/Pluma/html/bc_s.png differ
diff --git a/doc/third_party/Pluma/html/bdwn.png b/doc/third_party/Pluma/html/bdwn.png
new file mode 100644 (file)
index 0000000..940a0b9
Binary files /dev/null and b/doc/third_party/Pluma/html/bdwn.png differ
diff --git a/doc/third_party/Pluma/html/classes.htm b/doc/third_party/Pluma/html/classes.htm
new file mode 100644 (file)
index 0000000..cb2c15c
--- /dev/null
@@ -0,0 +1,53 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li class="current"><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Class Index</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="qindex"><a class="qindex" href="#letter_D">D</a>&#160;|&#160;<a class="qindex" href="#letter_H">H</a>&#160;|&#160;<a class="qindex" href="#letter_P">P</a></div>
+<table style="margin: 10px; white-space: nowrap;" align="center" width="95%" border="0" cellspacing="0" cellpadding="0">
+<tr><td rowspan="2" valign="bottom"><a name="letter_D"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;D&#160;&#160;</div></td></tr></table>
+</td><td rowspan="2" valign="bottom"><a name="letter_H"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;H&#160;&#160;</div></td></tr></table>
+</td><td rowspan="2" valign="bottom"><a name="letter_P"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;P&#160;&#160;</div></td></tr></table>
+</td><td valign="top"><a class="el" href="classpluma_1_1Pluma.htm">Pluma</a> (pluma)&#160;&#160;&#160;</td></tr>
+<tr><td valign="top"><a class="el" href="classpluma_1_1Provider.htm">Provider</a> (pluma)&#160;&#160;&#160;</td></tr>
+<tr><td valign="top"><a class="el" href="classpluma_1_1DLibrary.htm">DLibrary</a> (pluma)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="classpluma_1_1Host.htm">Host</a> (pluma)&#160;&#160;&#160;</td><td valign="top"><a class="el" href="classpluma_1_1PluginManager.htm">PluginManager</a> (pluma)&#160;&#160;&#160;</td><td></td></tr>
+<tr><td></td><td></td><td></td><td></td></tr>
+</table>
+<div class="qindex"><a class="qindex" href="#letter_D">D</a>&#160;|&#160;<a class="qindex" href="#letter_H">H</a>&#160;|&#160;<a class="qindex" href="#letter_P">P</a></div>
+</div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/classpluma_1_1DLibrary-members.htm b/doc/third_party/Pluma/html/classpluma_1_1DLibrary-members.htm
new file mode 100644 (file)
index 0000000..0a21d3f
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+<div id="nav-path" class="navpath">
+  <ul>
+<li class="navelem"><b>pluma</b></li><li class="navelem"><a class="el" href="classpluma_1_1DLibrary.htm">DLibrary</a></li>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">pluma::DLibrary Member List</div>  </div>
+</div><!--header-->
+<div class="contents">
+
+<p>This is the complete list of members for <a class="el" href="classpluma_1_1DLibrary.htm">pluma::DLibrary</a>, including all inherited members.</p>
+<table class="directory">
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1DLibrary.htm#a57dd3726140cce08957e40cb5b001d84">getSymbol</a>(const std::string &amp;symbol)</td><td class="entry"><a class="el" href="classpluma_1_1DLibrary.htm">pluma::DLibrary</a></td><td class="entry"></td></tr>
+  <tr><td class="entry"><a class="el" href="classpluma_1_1DLibrary.htm#a32400d8e50c0f03cb525ca7500b4516e">load</a>(const std::string &amp;path)</td><td class="entry"><a class="el" href="classpluma_1_1DLibrary.htm">pluma::DLibrary</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1DLibrary.htm#a3fa679bc824b36ce61b67716bedd15c7">~DLibrary</a>()</td><td class="entry"><a class="el" href="classpluma_1_1DLibrary.htm">pluma::DLibrary</a></td><td class="entry"></td></tr>
+</table></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/classpluma_1_1DLibrary.htm b/doc/third_party/Pluma/html/classpluma_1_1DLibrary.htm
new file mode 100644 (file)
index 0000000..3d34b08
--- /dev/null
@@ -0,0 +1,163 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+<div id="nav-path" class="navpath">
+  <ul>
+<li class="navelem"><b>pluma</b></li><li class="navelem"><a class="el" href="classpluma_1_1DLibrary.htm">DLibrary</a></li>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="summary">
+<a href="#pub-methods">Public Member Functions</a> &#124;
+<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
+<a href="classpluma_1_1DLibrary-members.htm">List of all members</a>  </div>
+  <div class="headertitle">
+<div class="title">pluma::DLibrary Class Reference</div>  </div>
+</div><!--header-->
+<div class="contents">
+
+<p>Manages a Dynamic Linking Library.  
+ <a href="classpluma_1_1DLibrary.htm#details">More...</a></p>
+
+<p><code>#include &lt;<a class="el" href="DLibrary_8hpp_source.htm">DLibrary.hpp</a>&gt;</code></p>
+<table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
+Public Member Functions</h2></td></tr>
+<tr class="memitem:a3fa679bc824b36ce61b67716bedd15c7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1DLibrary.htm#a3fa679bc824b36ce61b67716bedd15c7">~DLibrary</a> ()</td></tr>
+<tr class="memdesc:a3fa679bc824b36ce61b67716bedd15c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a3fa679bc824b36ce61b67716bedd15c7">More...</a><br/></td></tr>
+<tr class="separator:a3fa679bc824b36ce61b67716bedd15c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a57dd3726140cce08957e40cb5b001d84"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1DLibrary.htm#a57dd3726140cce08957e40cb5b001d84">getSymbol</a> (const std::string &amp;symbol)</td></tr>
+<tr class="memdesc:a57dd3726140cce08957e40cb5b001d84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a symbol from the library.  <a href="#a57dd3726140cce08957e40cb5b001d84">More...</a><br/></td></tr>
+<tr class="separator:a57dd3726140cce08957e40cb5b001d84"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table><table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
+Static Public Member Functions</h2></td></tr>
+<tr class="memitem:a32400d8e50c0f03cb525ca7500b4516e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classpluma_1_1DLibrary.htm">DLibrary</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1DLibrary.htm#a32400d8e50c0f03cb525ca7500b4516e">load</a> (const std::string &amp;path)</td></tr>
+<tr class="memdesc:a32400d8e50c0f03cb525ca7500b4516e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load a library.  <a href="#a32400d8e50c0f03cb525ca7500b4516e">More...</a><br/></td></tr>
+<tr class="separator:a32400d8e50c0f03cb525ca7500b4516e"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table>
+<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
+<div class="textblock"><p>Manages a Dynamic Linking Library. </p>
+
+<p>Definition at line <a class="el" href="DLibrary_8hpp_source.htm#l00049">49</a> of file <a class="el" href="DLibrary_8hpp_source.htm">DLibrary.hpp</a>.</p>
+</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" id="a3fa679bc824b36ce61b67716bedd15c7"></a>
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">pluma::DLibrary::~DLibrary </td>
+          <td>(</td>
+          <td class="paramname"></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Destructor. </p>
+<p>Close and free the opened library (if any). </p>
+
+<p>Definition at line <a class="el" href="DLibrary_8cpp_source.htm#l00067">67</a> of file <a class="el" href="DLibrary_8cpp_source.htm">DLibrary.cpp</a>.</p>
+
+</div>
+</div>
+<h2 class="groupheader">Member Function Documentation</h2>
+<a class="anchor" id="a57dd3726140cce08957e40cb5b001d84"></a>
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">void * pluma::DLibrary::getSymbol </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>symbol</em></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Get a symbol from the library. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">symbol</td><td>Symbol that we're looking for.</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>Pointer to what the symbol refers to, or NULL if the symbol is not found. </dd></dl>
+
+<p>Definition at line <a class="el" href="DLibrary_8cpp_source.htm#l00079">79</a> of file <a class="el" href="DLibrary_8cpp_source.htm">DLibrary.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a32400d8e50c0f03cb525ca7500b4516e"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname"><a class="el" href="classpluma_1_1DLibrary.htm">DLibrary</a> * pluma::DLibrary::load </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>path</em></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">static</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Load a library. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">path</td><td>Path to the library.</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>Pointer to the loaded library, or NULL if failed. </dd></dl>
+
+<p>Definition at line <a class="el" href="DLibrary_8cpp_source.htm#l00037">37</a> of file <a class="el" href="DLibrary_8cpp_source.htm">DLibrary.cpp</a>.</p>
+
+</div>
+</div>
+<hr/>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="DLibrary_8hpp_source.htm">DLibrary.hpp</a></li>
+<li><a class="el" href="DLibrary_8cpp_source.htm">DLibrary.cpp</a></li>
+</ul>
+</div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/classpluma_1_1Host-members.htm b/doc/third_party/Pluma/html/classpluma_1_1Host-members.htm
new file mode 100644 (file)
index 0000000..dae8f08
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+<div id="nav-path" class="navpath">
+  <ul>
+<li class="navelem"><b>pluma</b></li><li class="navelem"><a class="el" href="classpluma_1_1Host.htm">Host</a></li>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">pluma::Host Member List</div>  </div>
+</div><!--header-->
+<div class="contents">
+
+<p>This is the complete list of members for <a class="el" href="classpluma_1_1Host.htm">pluma::Host</a>, including all inherited members.</p>
+<table class="directory">
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1Host.htm#ab673ba94ff56a12cdf2a7a25ebb8cc36">add</a>(Provider *provider)</td><td class="entry"><a class="el" href="classpluma_1_1Host.htm">pluma::Host</a></td><td class="entry"></td></tr>
+  <tr bgcolor="#f0f0f0"><td class="entry"><b>PluginManager</b> (defined in <a class="el" href="classpluma_1_1Host.htm">pluma::Host</a>)</td><td class="entry"><a class="el" href="classpluma_1_1Host.htm">pluma::Host</a></td><td class="entry"><span class="mlabel">friend</span></td></tr>
+  <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>Provider</b> (defined in <a class="el" href="classpluma_1_1Host.htm">pluma::Host</a>)</td><td class="entry"><a class="el" href="classpluma_1_1Host.htm">pluma::Host</a></td><td class="entry"><span class="mlabel">friend</span></td></tr>
+</table></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/classpluma_1_1Host.htm b/doc/third_party/Pluma/html/classpluma_1_1Host.htm
new file mode 100644 (file)
index 0000000..b5b0096
--- /dev/null
@@ -0,0 +1,109 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+<div id="nav-path" class="navpath">
+  <ul>
+<li class="navelem"><b>pluma</b></li><li class="navelem"><a class="el" href="classpluma_1_1Host.htm">Host</a></li>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="summary">
+<a href="#nested-classes">Classes</a> &#124;
+<a href="#pub-methods">Public Member Functions</a> &#124;
+<a href="#friends">Friends</a> &#124;
+<a href="classpluma_1_1Host-members.htm">List of all members</a>  </div>
+  <div class="headertitle">
+<div class="title">pluma::Host Class Reference</div>  </div>
+</div><!--header-->
+<div class="contents">
+
+<p>Manages providers.  
+ <a href="classpluma_1_1Host.htm#details">More...</a></p>
+
+<p><code>#include &lt;<a class="el" href="Host_8hpp_source.htm">Host.hpp</a>&gt;</code></p>
+<table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
+Public Member Functions</h2></td></tr>
+<tr class="memitem:ab673ba94ff56a12cdf2a7a25ebb8cc36"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1Host.htm#ab673ba94ff56a12cdf2a7a25ebb8cc36">add</a> (<a class="el" href="classpluma_1_1Provider.htm">Provider</a> *provider)</td></tr>
+<tr class="memdesc:ab673ba94ff56a12cdf2a7a25ebb8cc36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add provider.  <a href="#ab673ba94ff56a12cdf2a7a25ebb8cc36">More...</a><br/></td></tr>
+<tr class="separator:ab673ba94ff56a12cdf2a7a25ebb8cc36"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table><table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
+Friends</h2></td></tr>
+<tr class="memitem:ad0ccd35859b04e162412b22bf5200374"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad0ccd35859b04e162412b22bf5200374"></a>
+class&#160;</td><td class="memItemRight" valign="bottom"><b>PluginManager</b></td></tr>
+<tr class="separator:ad0ccd35859b04e162412b22bf5200374"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a70ab087352a74128b9608cf9e7d24c71"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a70ab087352a74128b9608cf9e7d24c71"></a>
+class&#160;</td><td class="memItemRight" valign="bottom"><b>Provider</b></td></tr>
+<tr class="separator:a70ab087352a74128b9608cf9e7d24c71"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table>
+<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
+<div class="textblock"><p>Manages providers. </p>
+
+<p>Definition at line <a class="el" href="Host_8hpp_source.htm#l00044">44</a> of file <a class="el" href="Host_8hpp_source.htm">Host.hpp</a>.</p>
+</div><h2 class="groupheader">Member Function Documentation</h2>
+<a class="anchor" id="ab673ba94ff56a12cdf2a7a25ebb8cc36"></a>
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">bool pluma::Host::add </td>
+          <td>(</td>
+          <td class="paramtype"><a class="el" href="classpluma_1_1Provider.htm">Provider</a> *&#160;</td>
+          <td class="paramname"><em>provider</em></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Add provider. </p>
+<p><a class="el" href="classpluma_1_1Provider.htm" title="Interface to provide applications with objects from plugins. ">Provider</a> type and version are checked. Only known and valid provider types are accepted.</p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">provider</td><td><a class="el" href="classpluma_1_1Provider.htm" title="Interface to provide applications with objects from plugins. ">Provider</a> to be added.</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>True if the provider is accepted. </dd></dl>
+
+<p>Definition at line <a class="el" href="Host_8cpp_source.htm#l00042">42</a> of file <a class="el" href="Host_8cpp_source.htm">Host.cpp</a>.</p>
+
+</div>
+</div>
+<hr/>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="Host_8hpp_source.htm">Host.hpp</a></li>
+<li><a class="el" href="Host_8cpp_source.htm">Host.cpp</a></li>
+</ul>
+</div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/classpluma_1_1PluginManager-members.htm b/doc/third_party/Pluma/html/classpluma_1_1PluginManager-members.htm
new file mode 100644 (file)
index 0000000..93bfd8a
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+<div id="nav-path" class="navpath">
+  <ul>
+<li class="navelem"><b>pluma</b></li><li class="navelem"><a class="el" href="classpluma_1_1PluginManager.htm">PluginManager</a></li>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">pluma::PluginManager Member List</div>  </div>
+</div><!--header-->
+<div class="contents">
+
+<p>This is the complete list of members for <a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a>, including all inherited members.</p>
+<table class="directory">
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#af27f8e89b8e29359495b6398464ebf02">addProvider</a>(Provider *provider)</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#a187e60d3fe7524774c08eb58ebcb843f">getLoadedPlugins</a>(std::vector&lt; const std::string * &gt; &amp;pluginNames) const </td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#ad5eab1dcae10122fdfb8d94d7b391e9e">getProviders</a>(const std::string &amp;type) const </td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
+  <tr><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#adbd75738cd4d8969608c9da8b58a03c3">isLoaded</a>(const std::string &amp;pluginName) const </td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">load</a>(const std::string &amp;path)</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#a866127044950094bb789260bc15a2874">load</a>(const std::string &amp;folder, const std::string &amp;pluginName)</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb">loadFromFolder</a>(const std::string &amp;folder, bool recursive=false)</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#a8378a698812f8f079ff8aea7c1474d67">PluginManager</a>()</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#ab70b5b6b719bdbd64c27ae2dcb12a64d">registerType</a>(const std::string &amp;type, unsigned int version, unsigned int lowestVersion)</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
+  <tr><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745">unload</a>(const std::string &amp;pluginName)</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db">unloadAll</a>()</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#a4d7a0e1151b75300350834a59db5748b">~PluginManager</a>()</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+</table></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/classpluma_1_1PluginManager.htm b/doc/third_party/Pluma/html/classpluma_1_1PluginManager.htm
new file mode 100644 (file)
index 0000000..eec4670
--- /dev/null
@@ -0,0 +1,515 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+<div id="nav-path" class="navpath">
+  <ul>
+<li class="navelem"><b>pluma</b></li><li class="navelem"><a class="el" href="classpluma_1_1PluginManager.htm">PluginManager</a></li>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="summary">
+<a href="#pub-methods">Public Member Functions</a> &#124;
+<a href="#pro-methods">Protected Member Functions</a> &#124;
+<a href="classpluma_1_1PluginManager-members.htm">List of all members</a>  </div>
+  <div class="headertitle">
+<div class="title">pluma::PluginManager Class Reference</div>  </div>
+</div><!--header-->
+<div class="contents">
+
+<p>Manages loaded plugins.  
+ <a href="classpluma_1_1PluginManager.htm#details">More...</a></p>
+
+<p><code>#include &lt;<a class="el" href="PluginManager_8hpp_source.htm">PluginManager.hpp</a>&gt;</code></p>
+<div class="dynheader">
+Inheritance diagram for pluma::PluginManager:</div>
+<div class="dyncontent">
+ <div class="center">
+  <img src="classpluma_1_1PluginManager.png" usemap="#pluma::PluginManager_map" alt=""/>
+  <map id="pluma::PluginManager_map" name="pluma::PluginManager_map">
+<area href="classpluma_1_1Pluma.htm" title="Pluma plugins management. " alt="pluma::Pluma" shape="rect" coords="0,56,137,80"/>
+</map>
+ </div></div>
+<table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
+Public Member Functions</h2></td></tr>
+<tr class="memitem:a4d7a0e1151b75300350834a59db5748b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#a4d7a0e1151b75300350834a59db5748b">~PluginManager</a> ()</td></tr>
+<tr class="memdesc:a4d7a0e1151b75300350834a59db5748b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a4d7a0e1151b75300350834a59db5748b">More...</a><br/></td></tr>
+<tr class="separator:a4d7a0e1151b75300350834a59db5748b"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:aa00400d23efa8a8f94e44dd1c5bf54e6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">load</a> (const std::string &amp;path)</td></tr>
+<tr class="memdesc:aa00400d23efa8a8f94e44dd1c5bf54e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load a plugin given it's path.  <a href="#aa00400d23efa8a8f94e44dd1c5bf54e6">More...</a><br/></td></tr>
+<tr class="separator:aa00400d23efa8a8f94e44dd1c5bf54e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a866127044950094bb789260bc15a2874"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#a866127044950094bb789260bc15a2874">load</a> (const std::string &amp;folder, const std::string &amp;pluginName)</td></tr>
+<tr class="memdesc:a866127044950094bb789260bc15a2874"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load a plugin from a given folder.  <a href="#a866127044950094bb789260bc15a2874">More...</a><br/></td></tr>
+<tr class="separator:a866127044950094bb789260bc15a2874"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a4d892e345288c26dea091d62ee2b03eb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb">loadFromFolder</a> (const std::string &amp;folder, bool recursive=false)</td></tr>
+<tr class="memdesc:a4d892e345288c26dea091d62ee2b03eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load all plugins from a given folder.  <a href="#a4d892e345288c26dea091d62ee2b03eb">More...</a><br/></td></tr>
+<tr class="separator:a4d892e345288c26dea091d62ee2b03eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a52f6408d4cf95c6f36b518ab2d3a7745"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745">unload</a> (const std::string &amp;pluginName)</td></tr>
+<tr class="memdesc:a52f6408d4cf95c6f36b518ab2d3a7745"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unload a plugin.  <a href="#a52f6408d4cf95c6f36b518ab2d3a7745">More...</a><br/></td></tr>
+<tr class="separator:a52f6408d4cf95c6f36b518ab2d3a7745"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a697a20dc97957e0c2a5dad33f39d93db"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db">unloadAll</a> ()</td></tr>
+<tr class="memdesc:a697a20dc97957e0c2a5dad33f39d93db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unload all loaded plugins.  <a href="#a697a20dc97957e0c2a5dad33f39d93db">More...</a><br/></td></tr>
+<tr class="separator:a697a20dc97957e0c2a5dad33f39d93db"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:af27f8e89b8e29359495b6398464ebf02"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#af27f8e89b8e29359495b6398464ebf02">addProvider</a> (<a class="el" href="classpluma_1_1Provider.htm">Provider</a> *provider)</td></tr>
+<tr class="memdesc:af27f8e89b8e29359495b6398464ebf02"><td class="mdescLeft">&#160;</td><td class="mdescRight">Directly add a new provider.  <a href="#af27f8e89b8e29359495b6398464ebf02">More...</a><br/></td></tr>
+<tr class="separator:af27f8e89b8e29359495b6398464ebf02"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a187e60d3fe7524774c08eb58ebcb843f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#a187e60d3fe7524774c08eb58ebcb843f">getLoadedPlugins</a> (std::vector&lt; const std::string * &gt; &amp;pluginNames) const </td></tr>
+<tr class="memdesc:a187e60d3fe7524774c08eb58ebcb843f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the name of all loaded plugins.  <a href="#a187e60d3fe7524774c08eb58ebcb843f">More...</a><br/></td></tr>
+<tr class="separator:a187e60d3fe7524774c08eb58ebcb843f"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:adbd75738cd4d8969608c9da8b58a03c3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#adbd75738cd4d8969608c9da8b58a03c3">isLoaded</a> (const std::string &amp;pluginName) const </td></tr>
+<tr class="memdesc:adbd75738cd4d8969608c9da8b58a03c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if a plug-in is loaded.  <a href="#adbd75738cd4d8969608c9da8b58a03c3">More...</a><br/></td></tr>
+<tr class="separator:adbd75738cd4d8969608c9da8b58a03c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table><table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
+Protected Member Functions</h2></td></tr>
+<tr class="memitem:a8378a698812f8f079ff8aea7c1474d67"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#a8378a698812f8f079ff8aea7c1474d67">PluginManager</a> ()</td></tr>
+<tr class="memdesc:a8378a698812f8f079ff8aea7c1474d67"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a8378a698812f8f079ff8aea7c1474d67">More...</a><br/></td></tr>
+<tr class="separator:a8378a698812f8f079ff8aea7c1474d67"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ab70b5b6b719bdbd64c27ae2dcb12a64d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#ab70b5b6b719bdbd64c27ae2dcb12a64d">registerType</a> (const std::string &amp;type, unsigned int version, unsigned int lowestVersion)</td></tr>
+<tr class="memdesc:ab70b5b6b719bdbd64c27ae2dcb12a64d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a provider type.  <a href="#ab70b5b6b719bdbd64c27ae2dcb12a64d">More...</a><br/></td></tr>
+<tr class="separator:ab70b5b6b719bdbd64c27ae2dcb12a64d"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ad5eab1dcae10122fdfb8d94d7b391e9e"><td class="memItemLeft" align="right" valign="top">const std::list&lt; <a class="el" href="classpluma_1_1Provider.htm">Provider</a> * &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#ad5eab1dcae10122fdfb8d94d7b391e9e">getProviders</a> (const std::string &amp;type) const </td></tr>
+<tr class="memdesc:ad5eab1dcae10122fdfb8d94d7b391e9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get providers of a certain type.  <a href="#ad5eab1dcae10122fdfb8d94d7b391e9e">More...</a><br/></td></tr>
+<tr class="separator:ad5eab1dcae10122fdfb8d94d7b391e9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table>
+<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
+<div class="textblock"><p>Manages loaded plugins. </p>
+
+<p>Definition at line <a class="el" href="PluginManager_8hpp_source.htm#l00044">44</a> of file <a class="el" href="PluginManager_8hpp_source.htm">PluginManager.hpp</a>.</p>
+</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" id="a4d7a0e1151b75300350834a59db5748b"></a>
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">pluma::PluginManager::~PluginManager </td>
+          <td>(</td>
+          <td class="paramname"></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Destructor. </p>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00043">43</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a8378a698812f8f079ff8aea7c1474d67"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">pluma::PluginManager::PluginManager </td>
+          <td>(</td>
+          <td class="paramname"></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Default constructor. </p>
+<p><a class="el" href="classpluma_1_1PluginManager.htm" title="Manages loaded plugins. ">PluginManager</a> cannot be publicly instantiated. </p>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00037">37</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<h2 class="groupheader">Member Function Documentation</h2>
+<a class="anchor" id="af27f8e89b8e29359495b6398464ebf02"></a>
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">bool pluma::PluginManager::addProvider </td>
+          <td>(</td>
+          <td class="paramtype"><a class="el" href="classpluma_1_1Provider.htm">Provider</a> *&#160;</td>
+          <td class="paramname"><em>provider</em></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Directly add a new provider. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">provider</td><td><a class="el" href="classpluma_1_1Provider.htm" title="Interface to provide applications with objects from plugins. ">Provider</a>. </td></tr>
+  </table>
+  </dd>
+</dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00168">168</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a187e60d3fe7524774c08eb58ebcb843f"></a>
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">void pluma::PluginManager::getLoadedPlugins </td>
+          <td>(</td>
+          <td class="paramtype">std::vector&lt; const std::string * &gt; &amp;&#160;</td>
+          <td class="paramname"><em>pluginNames</em></td><td>)</td>
+          <td> const</td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Get the name of all loaded plugins. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">pluginNames</td><td>A vector to fill with the plugins names. </td></tr>
+  </table>
+  </dd>
+</dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00178">178</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="ad5eab1dcae10122fdfb8d94d7b391e9e"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">const std::list&lt; <a class="el" href="classpluma_1_1Provider.htm">Provider</a> * &gt; * pluma::PluginManager::getProviders </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>type</em></td><td>)</td>
+          <td> const</td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Get providers of a certain type. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">type</td><td><a class="el" href="classpluma_1_1Provider.htm" title="Interface to provide applications with objects from plugins. ">Provider</a> type.</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>Pointer to the list of providers of that <em>type</em>, or NULL if <em>type</em> is not registered.</dd></dl>
+<dl class="section see"><dt>See Also</dt><dd>Host::getProviders </dd></dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00194">194</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="adbd75738cd4d8969608c9da8b58a03c3"></a>
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">bool pluma::PluginManager::isLoaded </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>pluginName</em></td><td>)</td>
+          <td> const</td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Check if a plug-in is loaded. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">pluginName</td><td>the plug-in tname o check. </td></tr>
+  </table>
+  </dd>
+</dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00188">188</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="aa00400d23efa8a8f94e44dd1c5bf54e6"></a>
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">bool pluma::PluginManager::load </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>path</em></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Load a plugin given it's path. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">path</td><td>Path for the plugin, including plugin name. File extension may be included, but is discouraged for better cross platform code. If file extension isn't present on the path, <a class="el" href="classpluma_1_1Pluma.htm" title="Pluma plugins management. ">Pluma</a> will deduce it from the operating system.</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>True if the plugin is successfully loaded.</dd></dl>
+<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classpluma_1_1PluginManager.htm#a866127044950094bb789260bc15a2874" title="Load a plugin from a given folder. ">load(const std::string&amp;, const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb" title="Load all plugins from a given folder. ">loadFromFolder</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745" title="Unload a plugin. ">unload</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db" title="Unload all loaded plugins. ">unloadAll</a> </dd></dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00049">49</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a866127044950094bb789260bc15a2874"></a>
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">bool pluma::PluginManager::load </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>folder</em>, </td>
+        </tr>
+        <tr>
+          <td class="paramkey"></td>
+          <td></td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>pluginName</em>&#160;</td>
+        </tr>
+        <tr>
+          <td></td>
+          <td>)</td>
+          <td></td><td></td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Load a plugin from a given folder. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">folder</td><td>The folder path. </td></tr>
+    <tr><td class="paramname">pluginName</td><td>Name of the plugin. File extension may be included, but is discouraged for better cross platform code. If file extension is omitted, <a class="el" href="classpluma_1_1Pluma.htm" title="Pluma plugins management. ">Pluma</a> will deduce it from the operating system.</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>True if the plugin is successfully loaded.</dd></dl>
+<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6" title="Load a plugin given it&#39;s path. ">load(const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb" title="Load all plugins from a given folder. ">loadFromFolder</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745" title="Unload a plugin. ">unload</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db" title="Unload all loaded plugins. ">unloadAll</a> </dd></dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00085">85</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a4d892e345288c26dea091d62ee2b03eb"></a>
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">int pluma::PluginManager::loadFromFolder </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>folder</em>, </td>
+        </tr>
+        <tr>
+          <td class="paramkey"></td>
+          <td></td>
+          <td class="paramtype">bool&#160;</td>
+          <td class="paramname"><em>recursive</em> = <code>false</code>&#160;</td>
+        </tr>
+        <tr>
+          <td></td>
+          <td>)</td>
+          <td></td><td></td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Load all plugins from a given folder. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">folder</td><td>Path for the folder where the plug-ins are. </td></tr>
+    <tr><td class="paramname">recursive</td><td>If true it will search on sub-folders as well</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>Number of successfully loaded plug-ins.</dd></dl>
+<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classpluma_1_1PluginManager.htm#a866127044950094bb789260bc15a2874" title="Load a plugin from a given folder. ">load(const std::string&amp;, const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6" title="Load a plugin given it&#39;s path. ">load(const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745" title="Unload a plugin. ">unload</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db" title="Unload all loaded plugins. ">unloadAll</a> </dd></dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00095">95</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="ab70b5b6b719bdbd64c27ae2dcb12a64d"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">void pluma::PluginManager::registerType </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>type</em>, </td>
+        </tr>
+        <tr>
+          <td class="paramkey"></td>
+          <td></td>
+          <td class="paramtype">unsigned int&#160;</td>
+          <td class="paramname"><em>version</em>, </td>
+        </tr>
+        <tr>
+          <td class="paramkey"></td>
+          <td></td>
+          <td class="paramtype">unsigned int&#160;</td>
+          <td class="paramname"><em>lowestVersion</em>&#160;</td>
+        </tr>
+        <tr>
+          <td></td>
+          <td>)</td>
+          <td></td><td></td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Register a provider type. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">type</td><td><a class="el" href="classpluma_1_1Provider.htm" title="Interface to provide applications with objects from plugins. ">Provider</a> type. </td></tr>
+    <tr><td class="paramname">version</td><td>Current version of that provider type. </td></tr>
+    <tr><td class="paramname">lowestVersion</td><td>Lowest compatible version of that provider type.</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section see"><dt>See Also</dt><dd>Host::registerType </dd></dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00162">162</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a52f6408d4cf95c6f36b518ab2d3a7745"></a>
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">bool pluma::PluginManager::unload </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>pluginName</em></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Unload a plugin. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">pluginName</td><td>Name or path of the plugin.</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>True if the plugin is successfully unloaded, false if no such plugin exists on the manager.</dd></dl>
+<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classpluma_1_1PluginManager.htm#a866127044950094bb789260bc15a2874" title="Load a plugin from a given folder. ">load(const std::string&amp;, const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6" title="Load a plugin given it&#39;s path. ">load(const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb" title="Load all plugins from a given folder. ">loadFromFolder</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db" title="Unload all loaded plugins. ">unloadAll</a> </dd></dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00109">109</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a697a20dc97957e0c2a5dad33f39d93db"></a>
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">void pluma::PluginManager::unloadAll </td>
+          <td>(</td>
+          <td class="paramname"></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Unload all loaded plugins. </p>
+<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classpluma_1_1PluginManager.htm#a866127044950094bb789260bc15a2874" title="Load a plugin from a given folder. ">load(const std::string&amp;, const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6" title="Load a plugin given it&#39;s path. ">load(const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb" title="Load all plugins from a given folder. ">loadFromFolder</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745" title="Unload a plugin. ">unload</a> </dd></dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00122">122</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<hr/>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="PluginManager_8hpp_source.htm">PluginManager.hpp</a></li>
+<li><a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a></li>
+</ul>
+</div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/classpluma_1_1PluginManager.png b/doc/third_party/Pluma/html/classpluma_1_1PluginManager.png
new file mode 100644 (file)
index 0000000..a5fc17e
Binary files /dev/null and b/doc/third_party/Pluma/html/classpluma_1_1PluginManager.png differ
diff --git a/doc/third_party/Pluma/html/classpluma_1_1Pluma-members.htm b/doc/third_party/Pluma/html/classpluma_1_1Pluma-members.htm
new file mode 100644 (file)
index 0000000..074fc71
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+<div id="nav-path" class="navpath">
+  <ul>
+<li class="navelem"><b>pluma</b></li><li class="navelem"><a class="el" href="classpluma_1_1Pluma.htm">Pluma</a></li>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">pluma::Pluma Member List</div>  </div>
+</div><!--header-->
+<div class="contents">
+
+<p>This is the complete list of members for <a class="el" href="classpluma_1_1Pluma.htm">pluma::Pluma</a>, including all inherited members.</p>
+<table class="directory">
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1Pluma.htm#a200c59b0983c7ca53d11b03cf8220bc7">acceptProviderType</a>()</td><td class="entry"><a class="el" href="classpluma_1_1Pluma.htm">pluma::Pluma</a></td><td class="entry"></td></tr>
+  <tr bgcolor="#f0f0f0"><td class="entry"><b>acceptProviderType</b>() (defined in <a class="el" href="classpluma_1_1Pluma.htm">pluma::Pluma</a>)</td><td class="entry"><a class="el" href="classpluma_1_1Pluma.htm">pluma::Pluma</a></td><td class="entry"></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#af27f8e89b8e29359495b6398464ebf02">addProvider</a>(Provider *provider)</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#a187e60d3fe7524774c08eb58ebcb843f">getLoadedPlugins</a>(std::vector&lt; const std::string * &gt; &amp;pluginNames) const </td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1Pluma.htm#a49fa0b2b4497885c4e978259be0a7abe">getProviders</a>(std::vector&lt; ProviderType * &gt; &amp;providers)</td><td class="entry"><a class="el" href="classpluma_1_1Pluma.htm">pluma::Pluma</a></td><td class="entry"></td></tr>
+  <tr bgcolor="#f0f0f0"><td class="entry"><b>getProviders</b>(std::vector&lt; ProviderType * &gt; &amp;providers) (defined in <a class="el" href="classpluma_1_1Pluma.htm">pluma::Pluma</a>)</td><td class="entry"><a class="el" href="classpluma_1_1Pluma.htm">pluma::Pluma</a></td><td class="entry"></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#ad5eab1dcae10122fdfb8d94d7b391e9e">pluma::PluginManager::getProviders</a>(const std::string &amp;type) const </td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
+  <tr><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#adbd75738cd4d8969608c9da8b58a03c3">isLoaded</a>(const std::string &amp;pluginName) const </td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">load</a>(const std::string &amp;path)</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#a866127044950094bb789260bc15a2874">load</a>(const std::string &amp;folder, const std::string &amp;pluginName)</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb">loadFromFolder</a>(const std::string &amp;folder, bool recursive=false)</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#a8378a698812f8f079ff8aea7c1474d67">PluginManager</a>()</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1Pluma.htm#adf4e065f5169931f6290f3828b49e7bb">Pluma</a>()</td><td class="entry"><a class="el" href="classpluma_1_1Pluma.htm">pluma::Pluma</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
+  <tr><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#ab70b5b6b719bdbd64c27ae2dcb12a64d">registerType</a>(const std::string &amp;type, unsigned int version, unsigned int lowestVersion)</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745">unload</a>(const std::string &amp;pluginName)</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db">unloadAll</a>()</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm#a4d7a0e1151b75300350834a59db5748b">~PluginManager</a>()</td><td class="entry"><a class="el" href="classpluma_1_1PluginManager.htm">pluma::PluginManager</a></td><td class="entry"></td></tr>
+</table></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/classpluma_1_1Pluma.htm b/doc/third_party/Pluma/html/classpluma_1_1Pluma.htm
new file mode 100644 (file)
index 0000000..95fc1bd
--- /dev/null
@@ -0,0 +1,650 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+<div id="nav-path" class="navpath">
+  <ul>
+<li class="navelem"><b>pluma</b></li><li class="navelem"><a class="el" href="classpluma_1_1Pluma.htm">Pluma</a></li>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="summary">
+<a href="#pub-methods">Public Member Functions</a> &#124;
+<a href="#pro-methods">Protected Member Functions</a> &#124;
+<a href="classpluma_1_1Pluma-members.htm">List of all members</a>  </div>
+  <div class="headertitle">
+<div class="title">pluma::Pluma Class Reference</div>  </div>
+</div><!--header-->
+<div class="contents">
+
+<p><a class="el" href="classpluma_1_1Pluma.htm" title="Pluma plugins management. ">Pluma</a> plugins management.  
+ <a href="classpluma_1_1Pluma.htm#details">More...</a></p>
+
+<p><code>#include &lt;<a class="el" href="Pluma_8hpp_source.htm">Pluma.hpp</a>&gt;</code></p>
+<div class="dynheader">
+Inheritance diagram for pluma::Pluma:</div>
+<div class="dyncontent">
+ <div class="center">
+  <img src="classpluma_1_1Pluma.png" usemap="#pluma::Pluma_map" alt=""/>
+  <map id="pluma::Pluma_map" name="pluma::Pluma_map">
+<area href="classpluma_1_1PluginManager.htm" title="Manages loaded plugins. " alt="pluma::PluginManager" shape="rect" coords="0,0,137,24"/>
+</map>
+ </div></div>
+<table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
+Public Member Functions</h2></td></tr>
+<tr class="memitem:adf4e065f5169931f6290f3828b49e7bb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1Pluma.htm#adf4e065f5169931f6290f3828b49e7bb">Pluma</a> ()</td></tr>
+<tr class="memdesc:adf4e065f5169931f6290f3828b49e7bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default Constructor.  <a href="#adf4e065f5169931f6290f3828b49e7bb">More...</a><br/></td></tr>
+<tr class="separator:adf4e065f5169931f6290f3828b49e7bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a200c59b0983c7ca53d11b03cf8220bc7"><td class="memTemplParams" colspan="2">template&lt;typename ProviderType &gt; </td></tr>
+<tr class="memitem:a200c59b0983c7ca53d11b03cf8220bc7"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpluma_1_1Pluma.htm#a200c59b0983c7ca53d11b03cf8220bc7">acceptProviderType</a> ()</td></tr>
+<tr class="memdesc:a200c59b0983c7ca53d11b03cf8220bc7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tell <a class="el" href="classpluma_1_1Pluma.htm" title="Pluma plugins management. ">Pluma</a> to accept a certain type of providers.  <a href="#a200c59b0983c7ca53d11b03cf8220bc7">More...</a><br/></td></tr>
+<tr class="separator:a200c59b0983c7ca53d11b03cf8220bc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a49fa0b2b4497885c4e978259be0a7abe"><td class="memTemplParams" colspan="2">template&lt;typename ProviderType &gt; </td></tr>
+<tr class="memitem:a49fa0b2b4497885c4e978259be0a7abe"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpluma_1_1Pluma.htm#a49fa0b2b4497885c4e978259be0a7abe">getProviders</a> (std::vector&lt; ProviderType * &gt; &amp;providers)</td></tr>
+<tr class="memdesc:a49fa0b2b4497885c4e978259be0a7abe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the stored providers of a certain type.  <a href="#a49fa0b2b4497885c4e978259be0a7abe">More...</a><br/></td></tr>
+<tr class="separator:a49fa0b2b4497885c4e978259be0a7abe"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a200c59b0983c7ca53d11b03cf8220bc7"><td class="memTemplParams" colspan="2"><a class="anchor" id="a200c59b0983c7ca53d11b03cf8220bc7"></a>
+template&lt;typename ProviderType &gt; </td></tr>
+<tr class="memitem:a200c59b0983c7ca53d11b03cf8220bc7"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><b>acceptProviderType</b> ()</td></tr>
+<tr class="separator:a200c59b0983c7ca53d11b03cf8220bc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a49fa0b2b4497885c4e978259be0a7abe"><td class="memTemplParams" colspan="2"><a class="anchor" id="a49fa0b2b4497885c4e978259be0a7abe"></a>
+template&lt;typename ProviderType &gt; </td></tr>
+<tr class="memitem:a49fa0b2b4497885c4e978259be0a7abe"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><b>getProviders</b> (std::vector&lt; ProviderType * &gt; &amp;providers)</td></tr>
+<tr class="separator:a49fa0b2b4497885c4e978259be0a7abe"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:aa00400d23efa8a8f94e44dd1c5bf54e6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">load</a> (const std::string &amp;path)</td></tr>
+<tr class="memdesc:aa00400d23efa8a8f94e44dd1c5bf54e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load a plugin given it's path.  <a href="#aa00400d23efa8a8f94e44dd1c5bf54e6">More...</a><br/></td></tr>
+<tr class="separator:aa00400d23efa8a8f94e44dd1c5bf54e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a866127044950094bb789260bc15a2874"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#a866127044950094bb789260bc15a2874">load</a> (const std::string &amp;folder, const std::string &amp;pluginName)</td></tr>
+<tr class="memdesc:a866127044950094bb789260bc15a2874"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load a plugin from a given folder.  <a href="#a866127044950094bb789260bc15a2874">More...</a><br/></td></tr>
+<tr class="separator:a866127044950094bb789260bc15a2874"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a4d892e345288c26dea091d62ee2b03eb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb">loadFromFolder</a> (const std::string &amp;folder, bool recursive=false)</td></tr>
+<tr class="memdesc:a4d892e345288c26dea091d62ee2b03eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load all plugins from a given folder.  <a href="#a4d892e345288c26dea091d62ee2b03eb">More...</a><br/></td></tr>
+<tr class="separator:a4d892e345288c26dea091d62ee2b03eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a52f6408d4cf95c6f36b518ab2d3a7745"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745">unload</a> (const std::string &amp;pluginName)</td></tr>
+<tr class="memdesc:a52f6408d4cf95c6f36b518ab2d3a7745"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unload a plugin.  <a href="#a52f6408d4cf95c6f36b518ab2d3a7745">More...</a><br/></td></tr>
+<tr class="separator:a52f6408d4cf95c6f36b518ab2d3a7745"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a697a20dc97957e0c2a5dad33f39d93db"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db">unloadAll</a> ()</td></tr>
+<tr class="memdesc:a697a20dc97957e0c2a5dad33f39d93db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unload all loaded plugins.  <a href="#a697a20dc97957e0c2a5dad33f39d93db">More...</a><br/></td></tr>
+<tr class="separator:a697a20dc97957e0c2a5dad33f39d93db"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:af27f8e89b8e29359495b6398464ebf02"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#af27f8e89b8e29359495b6398464ebf02">addProvider</a> (<a class="el" href="classpluma_1_1Provider.htm">Provider</a> *provider)</td></tr>
+<tr class="memdesc:af27f8e89b8e29359495b6398464ebf02"><td class="mdescLeft">&#160;</td><td class="mdescRight">Directly add a new provider.  <a href="#af27f8e89b8e29359495b6398464ebf02">More...</a><br/></td></tr>
+<tr class="separator:af27f8e89b8e29359495b6398464ebf02"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a187e60d3fe7524774c08eb58ebcb843f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#a187e60d3fe7524774c08eb58ebcb843f">getLoadedPlugins</a> (std::vector&lt; const std::string * &gt; &amp;pluginNames) const </td></tr>
+<tr class="memdesc:a187e60d3fe7524774c08eb58ebcb843f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the name of all loaded plugins.  <a href="#a187e60d3fe7524774c08eb58ebcb843f">More...</a><br/></td></tr>
+<tr class="separator:a187e60d3fe7524774c08eb58ebcb843f"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:adbd75738cd4d8969608c9da8b58a03c3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#adbd75738cd4d8969608c9da8b58a03c3">isLoaded</a> (const std::string &amp;pluginName) const </td></tr>
+<tr class="memdesc:adbd75738cd4d8969608c9da8b58a03c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if a plug-in is loaded.  <a href="#adbd75738cd4d8969608c9da8b58a03c3">More...</a><br/></td></tr>
+<tr class="separator:adbd75738cd4d8969608c9da8b58a03c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table><table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
+Protected Member Functions</h2></td></tr>
+<tr class="memitem:ab70b5b6b719bdbd64c27ae2dcb12a64d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#ab70b5b6b719bdbd64c27ae2dcb12a64d">registerType</a> (const std::string &amp;type, unsigned int version, unsigned int lowestVersion)</td></tr>
+<tr class="memdesc:ab70b5b6b719bdbd64c27ae2dcb12a64d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a provider type.  <a href="#ab70b5b6b719bdbd64c27ae2dcb12a64d">More...</a><br/></td></tr>
+<tr class="separator:ab70b5b6b719bdbd64c27ae2dcb12a64d"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ad5eab1dcae10122fdfb8d94d7b391e9e"><td class="memItemLeft" align="right" valign="top">const std::list&lt; <a class="el" href="classpluma_1_1Provider.htm">Provider</a> * &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1PluginManager.htm#ad5eab1dcae10122fdfb8d94d7b391e9e">getProviders</a> (const std::string &amp;type) const </td></tr>
+<tr class="memdesc:ad5eab1dcae10122fdfb8d94d7b391e9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get providers of a certain type.  <a href="#ad5eab1dcae10122fdfb8d94d7b391e9e">More...</a><br/></td></tr>
+<tr class="separator:ad5eab1dcae10122fdfb8d94d7b391e9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table>
+<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
+<div class="textblock"><p><a class="el" href="classpluma_1_1Pluma.htm" title="Pluma plugins management. ">Pluma</a> plugins management. </p>
+<p><a class="el" href="classpluma_1_1Pluma.htm" title="Pluma plugins management. ">Pluma</a> is the main class of <a class="el" href="classpluma_1_1Pluma.htm" title="Pluma plugins management. ">Pluma</a> library. Allows hosting applications to load/unload dlls in runtime (plugins), and to get providers of shared interface objects.</p>
+<p>Example: </p>
+<div class="fragment"><div class="line"><a class="code" href="classpluma_1_1Pluma.htm">pluma::Pluma</a> pluma;</div>
+<div class="line"><span class="comment">// Tell it to accept providers of the type DeviceProvider</span></div>
+<div class="line">pluma.<a class="code" href="classpluma_1_1Pluma.htm#a200c59b0983c7ca53d11b03cf8220bc7">acceptProviderType</a>&lt;DeviceProvider&gt;();</div>
+<div class="line"><span class="comment">// Load some dll</span></div>
+<div class="line">pluma.<a class="code" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">load</a>(<span class="stringliteral">&quot;plugins/standard_devices&quot;</span>);</div>
+<div class="line"><span class="comment">// Get device providers into a vector</span></div>
+<div class="line">std::vector&lt;DeviceProvider*&gt; providers;</div>
+<div class="line">pluma.<a class="code" href="classpluma_1_1Pluma.htm#a49fa0b2b4497885c4e978259be0a7abe">getProviders</a>(providers);</div>
+<div class="line"><span class="comment">// create a Device from the first provider</span></div>
+<div class="line"><span class="keywordflow">if</span> (!providers.empty()){</div>
+<div class="line">    Device* myDevice = providers.first()-&gt;create();</div>
+<div class="line">    <span class="comment">// do something with myDevice</span></div>
+<div class="line">    std::cout &lt;&lt; device-&gt;getDescription() &lt;&lt; std::endl;</div>
+<div class="line">    <span class="comment">// (...)</span></div>
+<div class="line">    <span class="keyword">delete</span> myDevice;</div>
+<div class="line">}</div>
+</div><!-- fragment --><p>It is also possible to add local providers, providers that are defined directly on the host application. That can be useful to provide and use default implementations of certain interfaces, along with plugin implementations. </p>
+
+<p>Definition at line <a class="el" href="Pluma_8hpp_source.htm#l00094">94</a> of file <a class="el" href="Pluma_8hpp_source.htm">Pluma.hpp</a>.</p>
+</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" id="adf4e065f5169931f6290f3828b49e7bb"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">Pluma::Pluma </td>
+          <td>(</td>
+          <td class="paramname"></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Default Constructor. </p>
+
+<p>Definition at line <a class="el" href="Pluma_8inl_source.htm#l00027">27</a> of file <a class="el" href="Pluma_8inl_source.htm">Pluma.inl</a>.</p>
+
+</div>
+</div>
+<h2 class="groupheader">Member Function Documentation</h2>
+<a class="anchor" id="a200c59b0983c7ca53d11b03cf8220bc7"></a>
+<div class="memitem">
+<div class="memproto">
+<div class="memtemplate">
+template&lt;typename ProviderType &gt; </div>
+      <table class="memname">
+        <tr>
+          <td class="memname">void pluma::Pluma::acceptProviderType </td>
+          <td>(</td>
+          <td class="paramname"></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Tell <a class="el" href="classpluma_1_1Pluma.htm" title="Pluma plugins management. ">Pluma</a> to accept a certain type of providers. </p>
+<p>A <a class="el" href="classpluma_1_1Pluma.htm" title="Pluma plugins management. ">Pluma</a> object is able to accept multiple types of providers. When a plugin is loaded, it tries to register it's providers implementations. Those are only accepted by the host application if it's accepting providers of that kind.</p>
+<dl class="tparams"><dt>Template Parameters</dt><dd>
+  <table class="tparams">
+    <tr><td class="paramname">ProviderType</td><td>type of provider. </td></tr>
+  </table>
+  </dd>
+</dl>
+
+</div>
+</div>
+<a class="anchor" id="af27f8e89b8e29359495b6398464ebf02"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">bool pluma::PluginManager::addProvider </td>
+          <td>(</td>
+          <td class="paramtype"><a class="el" href="classpluma_1_1Provider.htm">Provider</a> *&#160;</td>
+          <td class="paramname"><em>provider</em></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">inherited</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Directly add a new provider. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">provider</td><td><a class="el" href="classpluma_1_1Provider.htm" title="Interface to provide applications with objects from plugins. ">Provider</a>. </td></tr>
+  </table>
+  </dd>
+</dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00168">168</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a187e60d3fe7524774c08eb58ebcb843f"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">void pluma::PluginManager::getLoadedPlugins </td>
+          <td>(</td>
+          <td class="paramtype">std::vector&lt; const std::string * &gt; &amp;&#160;</td>
+          <td class="paramname"><em>pluginNames</em></td><td>)</td>
+          <td> const</td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">inherited</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Get the name of all loaded plugins. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">pluginNames</td><td>A vector to fill with the plugins names. </td></tr>
+  </table>
+  </dd>
+</dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00178">178</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a49fa0b2b4497885c4e978259be0a7abe"></a>
+<div class="memitem">
+<div class="memproto">
+<div class="memtemplate">
+template&lt;typename ProviderType &gt; </div>
+      <table class="memname">
+        <tr>
+          <td class="memname">void pluma::Pluma::getProviders </td>
+          <td>(</td>
+          <td class="paramtype">std::vector&lt; ProviderType * &gt; &amp;&#160;</td>
+          <td class="paramname"><em>providers</em></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Get the stored providers of a certain type. </p>
+<p>Providers are added at the end of the <em>providers</em> vector.</p>
+<dl class="tparams"><dt>Template Parameters</dt><dd>
+  <table class="tparams">
+    <tr><td class="paramname">ProviderType</td><td>type of provider to be returned. </td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramdir">[out]</td><td class="paramname">providers</td><td>Vector to fill with the existing providers. </td></tr>
+  </table>
+  </dd>
+</dl>
+
+</div>
+</div>
+<a class="anchor" id="ad5eab1dcae10122fdfb8d94d7b391e9e"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">const std::list&lt; <a class="el" href="classpluma_1_1Provider.htm">Provider</a> * &gt; * pluma::PluginManager::getProviders </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>type</em></td><td>)</td>
+          <td> const</td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Get providers of a certain type. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">type</td><td><a class="el" href="classpluma_1_1Provider.htm" title="Interface to provide applications with objects from plugins. ">Provider</a> type.</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>Pointer to the list of providers of that <em>type</em>, or NULL if <em>type</em> is not registered.</dd></dl>
+<dl class="section see"><dt>See Also</dt><dd>Host::getProviders </dd></dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00194">194</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="adbd75738cd4d8969608c9da8b58a03c3"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">bool pluma::PluginManager::isLoaded </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>pluginName</em></td><td>)</td>
+          <td> const</td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">inherited</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Check if a plug-in is loaded. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">pluginName</td><td>the plug-in tname o check. </td></tr>
+  </table>
+  </dd>
+</dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00188">188</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="aa00400d23efa8a8f94e44dd1c5bf54e6"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">bool pluma::PluginManager::load </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>path</em></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">inherited</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Load a plugin given it's path. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">path</td><td>Path for the plugin, including plugin name. File extension may be included, but is discouraged for better cross platform code. If file extension isn't present on the path, <a class="el" href="classpluma_1_1Pluma.htm" title="Pluma plugins management. ">Pluma</a> will deduce it from the operating system.</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>True if the plugin is successfully loaded.</dd></dl>
+<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classpluma_1_1PluginManager.htm#a866127044950094bb789260bc15a2874" title="Load a plugin from a given folder. ">load(const std::string&amp;, const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb" title="Load all plugins from a given folder. ">loadFromFolder</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745" title="Unload a plugin. ">unload</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db" title="Unload all loaded plugins. ">unloadAll</a> </dd></dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00049">49</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a866127044950094bb789260bc15a2874"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">bool pluma::PluginManager::load </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>folder</em>, </td>
+        </tr>
+        <tr>
+          <td class="paramkey"></td>
+          <td></td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>pluginName</em>&#160;</td>
+        </tr>
+        <tr>
+          <td></td>
+          <td>)</td>
+          <td></td><td></td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">inherited</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Load a plugin from a given folder. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">folder</td><td>The folder path. </td></tr>
+    <tr><td class="paramname">pluginName</td><td>Name of the plugin. File extension may be included, but is discouraged for better cross platform code. If file extension is omitted, <a class="el" href="classpluma_1_1Pluma.htm" title="Pluma plugins management. ">Pluma</a> will deduce it from the operating system.</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>True if the plugin is successfully loaded.</dd></dl>
+<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6" title="Load a plugin given it&#39;s path. ">load(const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb" title="Load all plugins from a given folder. ">loadFromFolder</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745" title="Unload a plugin. ">unload</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db" title="Unload all loaded plugins. ">unloadAll</a> </dd></dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00085">85</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a4d892e345288c26dea091d62ee2b03eb"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">int pluma::PluginManager::loadFromFolder </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>folder</em>, </td>
+        </tr>
+        <tr>
+          <td class="paramkey"></td>
+          <td></td>
+          <td class="paramtype">bool&#160;</td>
+          <td class="paramname"><em>recursive</em> = <code>false</code>&#160;</td>
+        </tr>
+        <tr>
+          <td></td>
+          <td>)</td>
+          <td></td><td></td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">inherited</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Load all plugins from a given folder. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">folder</td><td>Path for the folder where the plug-ins are. </td></tr>
+    <tr><td class="paramname">recursive</td><td>If true it will search on sub-folders as well</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>Number of successfully loaded plug-ins.</dd></dl>
+<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classpluma_1_1PluginManager.htm#a866127044950094bb789260bc15a2874" title="Load a plugin from a given folder. ">load(const std::string&amp;, const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6" title="Load a plugin given it&#39;s path. ">load(const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745" title="Unload a plugin. ">unload</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db" title="Unload all loaded plugins. ">unloadAll</a> </dd></dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00095">95</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="ab70b5b6b719bdbd64c27ae2dcb12a64d"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">void pluma::PluginManager::registerType </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>type</em>, </td>
+        </tr>
+        <tr>
+          <td class="paramkey"></td>
+          <td></td>
+          <td class="paramtype">unsigned int&#160;</td>
+          <td class="paramname"><em>version</em>, </td>
+        </tr>
+        <tr>
+          <td class="paramkey"></td>
+          <td></td>
+          <td class="paramtype">unsigned int&#160;</td>
+          <td class="paramname"><em>lowestVersion</em>&#160;</td>
+        </tr>
+        <tr>
+          <td></td>
+          <td>)</td>
+          <td></td><td></td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">inherited</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Register a provider type. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">type</td><td><a class="el" href="classpluma_1_1Provider.htm" title="Interface to provide applications with objects from plugins. ">Provider</a> type. </td></tr>
+    <tr><td class="paramname">version</td><td>Current version of that provider type. </td></tr>
+    <tr><td class="paramname">lowestVersion</td><td>Lowest compatible version of that provider type.</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section see"><dt>See Also</dt><dd>Host::registerType </dd></dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00162">162</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a52f6408d4cf95c6f36b518ab2d3a7745"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">bool pluma::PluginManager::unload </td>
+          <td>(</td>
+          <td class="paramtype">const std::string &amp;&#160;</td>
+          <td class="paramname"><em>pluginName</em></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">inherited</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Unload a plugin. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">pluginName</td><td>Name or path of the plugin.</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>True if the plugin is successfully unloaded, false if no such plugin exists on the manager.</dd></dl>
+<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classpluma_1_1PluginManager.htm#a866127044950094bb789260bc15a2874" title="Load a plugin from a given folder. ">load(const std::string&amp;, const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6" title="Load a plugin given it&#39;s path. ">load(const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb" title="Load all plugins from a given folder. ">loadFromFolder</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db" title="Unload all loaded plugins. ">unloadAll</a> </dd></dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00109">109</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a697a20dc97957e0c2a5dad33f39d93db"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">void pluma::PluginManager::unloadAll </td>
+          <td>(</td>
+          <td class="paramname"></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">inherited</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Unload all loaded plugins. </p>
+<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classpluma_1_1PluginManager.htm#a866127044950094bb789260bc15a2874" title="Load a plugin from a given folder. ">load(const std::string&amp;, const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6" title="Load a plugin given it&#39;s path. ">load(const std::string&amp;)</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb" title="Load all plugins from a given folder. ">loadFromFolder</a> </dd>
+<dd>
+<a class="el" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745" title="Unload a plugin. ">unload</a> </dd></dl>
+
+<p>Definition at line <a class="el" href="PluginManager_8cpp_source.htm#l00122">122</a> of file <a class="el" href="PluginManager_8cpp_source.htm">PluginManager.cpp</a>.</p>
+
+</div>
+</div>
+<hr/>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="Pluma_8hpp_source.htm">Pluma.hpp</a></li>
+<li><a class="el" href="Pluma_8inl_source.htm">Pluma.inl</a></li>
+</ul>
+</div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/classpluma_1_1Pluma.png b/doc/third_party/Pluma/html/classpluma_1_1Pluma.png
new file mode 100644 (file)
index 0000000..29983ad
Binary files /dev/null and b/doc/third_party/Pluma/html/classpluma_1_1Pluma.png differ
diff --git a/doc/third_party/Pluma/html/classpluma_1_1Provider-members.htm b/doc/third_party/Pluma/html/classpluma_1_1Provider-members.htm
new file mode 100644 (file)
index 0000000..7dfdf91
--- /dev/null
@@ -0,0 +1,53 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+<div id="nav-path" class="navpath">
+  <ul>
+<li class="navelem"><b>pluma</b></li><li class="navelem"><a class="el" href="classpluma_1_1Provider.htm">Provider</a></li>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">pluma::Provider Member List</div>  </div>
+</div><!--header-->
+<div class="contents">
+
+<p>This is the complete list of members for <a class="el" href="classpluma_1_1Provider.htm">pluma::Provider</a>, including all inherited members.</p>
+<table class="directory">
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1Provider.htm#af8643b65e111e010edff6e7a489265e6">getVersion</a>() const =0</td><td class="entry"><a class="el" href="classpluma_1_1Provider.htm">pluma::Provider</a></td><td class="entry"><span class="mlabel">pure virtual</span></td></tr>
+  <tr bgcolor="#f0f0f0"><td class="entry"><b>Host</b> (defined in <a class="el" href="classpluma_1_1Provider.htm">pluma::Provider</a>)</td><td class="entry"><a class="el" href="classpluma_1_1Provider.htm">pluma::Provider</a></td><td class="entry"><span class="mlabel">friend</span></td></tr>
+  <tr class="even"><td class="entry"><a class="el" href="classpluma_1_1Provider.htm#a192ea5a17a8fe9de1f3ba6572f44f266">isCompatible</a>(const Host &amp;host) const </td><td class="entry"><a class="el" href="classpluma_1_1Provider.htm">pluma::Provider</a></td><td class="entry"></td></tr>
+  <tr><td class="entry"><a class="el" href="classpluma_1_1Provider.htm#a111a1db902d6372282f8407c9d845c21">~Provider</a>()</td><td class="entry"><a class="el" href="classpluma_1_1Provider.htm">pluma::Provider</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
+</table></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/classpluma_1_1Provider.htm b/doc/third_party/Pluma/html/classpluma_1_1Provider.htm
new file mode 100644 (file)
index 0000000..ea7b0ee
--- /dev/null
@@ -0,0 +1,233 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+<div id="nav-path" class="navpath">
+  <ul>
+<li class="navelem"><b>pluma</b></li><li class="navelem"><a class="el" href="classpluma_1_1Provider.htm">Provider</a></li>  </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+  <div class="summary">
+<a href="#pub-methods">Public Member Functions</a> &#124;
+<a href="#friends">Friends</a> &#124;
+<a href="classpluma_1_1Provider-members.htm">List of all members</a>  </div>
+  <div class="headertitle">
+<div class="title">pluma::Provider Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
+</div><!--header-->
+<div class="contents">
+
+<p>Interface to provide applications with objects from plugins.  
+ <a href="classpluma_1_1Provider.htm#details">More...</a></p>
+
+<p><code>#include &lt;<a class="el" href="Provider_8hpp_source.htm">Provider.hpp</a>&gt;</code></p>
+<table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
+Public Member Functions</h2></td></tr>
+<tr class="memitem:a111a1db902d6372282f8407c9d845c21"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1Provider.htm#a111a1db902d6372282f8407c9d845c21">~Provider</a> ()</td></tr>
+<tr class="memdesc:a111a1db902d6372282f8407c9d845c21"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a111a1db902d6372282f8407c9d845c21">More...</a><br/></td></tr>
+<tr class="separator:a111a1db902d6372282f8407c9d845c21"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:af8643b65e111e010edff6e7a489265e6"><td class="memItemLeft" align="right" valign="top">virtual unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1Provider.htm#af8643b65e111e010edff6e7a489265e6">getVersion</a> () const =0</td></tr>
+<tr class="memdesc:af8643b65e111e010edff6e7a489265e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get provider version.  <a href="#af8643b65e111e010edff6e7a489265e6">More...</a><br/></td></tr>
+<tr class="separator:af8643b65e111e010edff6e7a489265e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:a192ea5a17a8fe9de1f3ba6572f44f266"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpluma_1_1Provider.htm#a192ea5a17a8fe9de1f3ba6572f44f266">isCompatible</a> (const <a class="el" href="classpluma_1_1Host.htm">Host</a> &amp;host) const </td></tr>
+<tr class="memdesc:a192ea5a17a8fe9de1f3ba6572f44f266"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check compatibility with host.  <a href="#a192ea5a17a8fe9de1f3ba6572f44f266">More...</a><br/></td></tr>
+<tr class="separator:a192ea5a17a8fe9de1f3ba6572f44f266"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table><table class="memberdecls">
+<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
+Friends</h2></td></tr>
+<tr class="memitem:a912b690126957a1ad90d0c373a4ad4d0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a912b690126957a1ad90d0c373a4ad4d0"></a>
+class&#160;</td><td class="memItemRight" valign="bottom"><b>Host</b></td></tr>
+<tr class="separator:a912b690126957a1ad90d0c373a4ad4d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
+</table>
+<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
+<div class="textblock"><p>Interface to provide applications with objects from plugins. </p>
+<p>The plugin specific implementations are unknown at the host side, only their shared interfaces are known. Then, host app needs a generic way of create interface objects. That's what provider classes are for. It is the factory design pattern (<a href="http://www.oodesign.com/factory-pattern.html">http://www.oodesign.com/factory-pattern.html</a>)</p>
+<p>Shared interfaces define their provider types (by inheriting from <a class="el" href="classpluma_1_1Provider.htm" title="Interface to provide applications with objects from plugins. ">pluma::Provider</a>). Hosts then use those tipes to get objects from the plugins. Plugins derive the shared interface providers so that they can provide host with specific implementations of the shared interface. Those specific providers are given to the host through a connect function.</p>
+<p>Example: A host app uses objects of type Device. A certain plugin defines a Keyboard, witch is a Device. The <a class="el" href="classpluma_1_1Host.htm" title="Manages providers. ">Host</a> will use DeviceProviders to create objects of type Device. The plugin will provide host specifically with a KeyboardProvider. Other plugins may provide host with other derived DeviceProvider types.</p>
+<p>Device hpp (shared): </p>
+<div class="fragment"><div class="line"><span class="preprocessor">#include &lt;Pluma/Pluma.hpp&gt;</span></div>
+<div class="line"><span class="keyword">class </span>Device{</div>
+<div class="line"><span class="keyword">public</span>:</div>
+<div class="line">    <span class="keyword">virtual</span> std::string getDescription() <span class="keyword">const</span> = 0;</div>
+<div class="line">};</div>
+<div class="line"><span class="comment">// create DevicedProvider class</span></div>
+<div class="line">PLUMA_PROVIDER_HEADER(Device);</div>
+</div><!-- fragment --><p>Device cpp (shared): </p>
+<div class="fragment"><div class="line"><span class="preprocessor">#include &quot;Device.hpp&quot;</span></div>
+<div class="line">generate DevicedProvider with version 6, and compatible with at least v.3</div>
+<div class="line">PLUMA_PROVIDER_SOURCE(Device, 6, 3);</div>
+</div><!-- fragment --><p><br/>
+ Keyboard code on the plugin side: </p>
+<div class="fragment"><div class="line"><span class="preprocessor">#include &lt;Pluma/Pluma.hpp&gt;</span></div>
+<div class="line"><span class="preprocessor">#include &quot;Device.hpp&quot;</span></div>
+<div class="line"></div>
+<div class="line"><span class="keyword">class </span>Keyboard: <span class="keyword">public</span> Device{</div>
+<div class="line"><span class="keyword">public</span>:</div>
+<div class="line">    std::string getDescription()<span class="keyword"> const</span>{</div>
+<div class="line">        <span class="keywordflow">return</span> <span class="stringliteral">&quot;keyboard&quot;</span>;</div>
+<div class="line">    }</div>
+<div class="line">};</div>
+<div class="line"></div>
+<div class="line"><span class="comment">// create KeyboardProvider, it implements DeviceProvider</span></div>
+<div class="line">PLUMA_INHERIT_PROVIDER(Keyboard, Device);</div>
+</div><!-- fragment --><p>plugin connector: </p>
+<div class="fragment"><div class="line"><span class="preprocessor">#include &lt;Pluma/Connector.hpp&gt;</span></div>
+<div class="line"><span class="preprocessor">#include &quot;Keyboard.hpp&quot;</span></div>
+<div class="line"></div>
+<div class="line">PLUMA_CONNECTOR</div>
+<div class="line"><span class="keywordtype">bool</span> connect(<a class="code" href="classpluma_1_1Host.htm">pluma::Host</a>&amp; host){</div>
+<div class="line">    <span class="comment">// add a keyboard provider to host</span></div>
+<div class="line">    host.<a class="code" href="classpluma_1_1Host.htm#ab673ba94ff56a12cdf2a7a25ebb8cc36">add</a>( <span class="keyword">new</span> KeyboardProvider() );</div>
+<div class="line">    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line">}</div>
+</div><!-- fragment --><p><a class="el" href="classpluma_1_1Host.htm" title="Manages providers. ">Host</a> application code: </p>
+<div class="fragment"><div class="line"><span class="preprocessor">#include &lt;Pluma/Pluma.hpp&gt;</span></div>
+<div class="line"></div>
+<div class="line"><span class="preprocessor">#include &quot;Device.hpp&quot;</span></div>
+<div class="line"><span class="preprocessor">#include &lt;iostream&gt;</span></div>
+<div class="line"><span class="preprocessor">#include &lt;vector&gt;</span></div>
+<div class="line"></div>
+<div class="line"><span class="keywordtype">int</span> main(){</div>
+<div class="line"></div>
+<div class="line">    <a class="code" href="classpluma_1_1Pluma.htm">pluma::Pluma</a> plugins;</div>
+<div class="line">    <span class="comment">// Tell plugins manager to accept providers of the type DeviceProvider</span></div>
+<div class="line">    plugins.<a class="code" href="classpluma_1_1Pluma.htm#a200c59b0983c7ca53d11b03cf8220bc7">acceptProviderType</a>&lt;DeviceProvider&gt;();</div>
+<div class="line">    <span class="comment">// Load library &quot;standard_devices&quot; from folder &quot;plugins&quot;</span></div>
+<div class="line">    plugins.<a class="code" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">load</a>(<span class="stringliteral">&quot;plugins&quot;</span>, <span class="stringliteral">&quot;standard_devices&quot;</span>);</div>
+<div class="line"></div>
+<div class="line">    <span class="comment">// Get device providers into a vector</span></div>
+<div class="line">    std::vector&lt;DeviceProvider*&gt; providers;</div>
+<div class="line">    plugins.<a class="code" href="classpluma_1_1Pluma.htm#a49fa0b2b4497885c4e978259be0a7abe">getProviders</a>(providers);</div>
+<div class="line"></div>
+<div class="line">    <span class="comment">// create a Device from the first provider</span></div>
+<div class="line">    <span class="keywordflow">if</span> (!providers.empty()){</div>
+<div class="line">        Device* myDevice = providers.first()-&gt;create();</div>
+<div class="line">        <span class="comment">// do something with myDevice</span></div>
+<div class="line">        std::cout &lt;&lt; device-&gt;getDescription() &lt;&lt; std::endl;</div>
+<div class="line">        <span class="comment">// and delete it in the end</span></div>
+<div class="line">        <span class="keyword">delete</span> myDevice;</div>
+<div class="line">    }</div>
+<div class="line">    <span class="keywordflow">return</span> 0;</div>
+<div class="line">}</div>
+</div><!-- fragment --> 
+<p>Definition at line <a class="el" href="Provider_8hpp_source.htm#l00042">42</a> of file <a class="el" href="Provider_8hpp_source.htm">Provider.hpp</a>.</p>
+</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" id="a111a1db902d6372282f8407c9d845c21"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">pluma::Provider::~Provider </td>
+          <td>(</td>
+          <td class="paramname"></td><td>)</td>
+          <td></td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Destructor. </p>
+
+<p>Definition at line <a class="el" href="Provider_8cpp_source.htm#l00036">36</a> of file <a class="el" href="Provider_8cpp_source.htm">Provider.cpp</a>.</p>
+
+</div>
+</div>
+<h2 class="groupheader">Member Function Documentation</h2>
+<a class="anchor" id="af8643b65e111e010edff6e7a489265e6"></a>
+<div class="memitem">
+<div class="memproto">
+<table class="mlabels">
+  <tr>
+  <td class="mlabels-left">
+      <table class="memname">
+        <tr>
+          <td class="memname">virtual unsigned int pluma::Provider::getVersion </td>
+          <td>(</td>
+          <td class="paramname"></td><td>)</td>
+          <td> const</td>
+        </tr>
+      </table>
+  </td>
+  <td class="mlabels-right">
+<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
+  </tr>
+</table>
+</div><div class="memdoc">
+
+<p>Get provider version. </p>
+<dl class="section return"><dt>Returns</dt><dd>Version number. </dd></dl>
+
+</div>
+</div>
+<a class="anchor" id="a192ea5a17a8fe9de1f3ba6572f44f266"></a>
+<div class="memitem">
+<div class="memproto">
+      <table class="memname">
+        <tr>
+          <td class="memname">bool pluma::Provider::isCompatible </td>
+          <td>(</td>
+          <td class="paramtype">const <a class="el" href="classpluma_1_1Host.htm">Host</a> &amp;&#160;</td>
+          <td class="paramname"><em>host</em></td><td>)</td>
+          <td> const</td>
+        </tr>
+      </table>
+</div><div class="memdoc">
+
+<p>Check compatibility with host. </p>
+<p>The same provider may be compiled with different versions on host side and on plugins side. This function checks if a plugin provider is compatible with the current version of the same provider type on the host side.</p>
+<dl class="params"><dt>Parameters</dt><dd>
+  <table class="params">
+    <tr><td class="paramname">host</td><td><a class="el" href="classpluma_1_1Host.htm" title="Manages providers. ">Host</a>, proxy of host application.</td></tr>
+  </table>
+  </dd>
+</dl>
+<dl class="section return"><dt>Returns</dt><dd>True if it's compatible with <em>host</em>. </dd></dl>
+
+<p>Definition at line <a class="el" href="Provider_8cpp_source.htm#l00042">42</a> of file <a class="el" href="Provider_8cpp_source.htm">Provider.cpp</a>.</p>
+
+</div>
+</div>
+<hr/>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="Provider_8hpp_source.htm">Provider.hpp</a></li>
+<li><a class="el" href="Provider_8cpp_source.htm">Provider.cpp</a></li>
+</ul>
+</div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/closed.png b/doc/third_party/Pluma/html/closed.png
new file mode 100644 (file)
index 0000000..98cc2c9
Binary files /dev/null and b/doc/third_party/Pluma/html/closed.png differ
diff --git a/doc/third_party/Pluma/html/doxygen.css b/doc/third_party/Pluma/html/doxygen.css
new file mode 100644 (file)
index 0000000..3f2e69f
--- /dev/null
@@ -0,0 +1,384 @@
+div#logo
+{
+    margin-bottom : 1em;
+    background    : url("./logo-bg.jpg") repeat-x;
+}
+
+div#logo a
+{
+    display : block;
+}
+
+p#footer
+{
+    text-decoration : overline;
+    color           : #606060;
+    padding-top     : 1em;
+    text-align      : center;
+    font-size       : smaller;
+}
+
+p#footer a
+{
+    color           : #007298;
+    text-decoration : none;
+}
+
+BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV {
+       font-family: Geneva, Arial, Helvetica, sans-serif;
+}
+BODY,TD {
+       font-size: 90%;
+}
+H1 {
+    text-align    : center;
+    margin-top    : 0px;
+    color         : #2090B0;
+    font-size     : 160%;
+}
+H2 {
+       font-size: 120%;
+}
+H3 {
+       font-size: 100%;
+}
+CAPTION { font-weight: bold }
+DIV.qindex {
+       width: 100%;
+       background-color: #E0FFE0;
+       border: 1px dotted #808080;
+       text-align: center;
+       margin: 2px;
+       padding: 2px;
+       line-height: 140%;
+}
+DIV.nav {
+       width: 100%;
+       background-color: #e8eef2;
+       border: 1px solid #84b0c7;
+       text-align: center;
+       margin: 2px;
+       padding: 2px;
+       line-height: 140%;
+}
+DIV.navtab {
+       background-color: #e8eef2;
+       border: 1px solid #84b0c7;
+       text-align: center;
+       margin: 2px;
+       margin-right: 15px;
+       padding: 2px;
+}
+TD.navtab {
+       font-size: 70%;
+}
+A.qindex {
+       text-decoration: none;
+       font-weight: bold;
+}
+A.qindex:visited {
+       text-decoration: none;
+       font-weight: bold;
+}
+A.qindex:hover {
+       text-decoration: none;
+       background-color: #ddddff;
+}
+A.qindexHL {
+       text-decoration: none;
+       font-weight: bold;
+       background-color: #6666cc;
+       color: #ffffff;
+       border: 1px double #9295C2;
+}
+A.qindexHL:hover {
+       text-decoration: none;
+       background-color: #6666cc;
+       color: #ffffff;
+}
+A.qindexHL:visited { text-decoration: none; background-color: #6666cc; color: #ffffff }
+A.el { text-decoration: none; font-weight: bold }
+A.elRef { font-weight: bold }
+A.code:link { text-decoration: none; font-weight: normal; border-bottom : 1px dotted #808080; color: black;}
+A.code:visited { text-decoration: none; font-weight: normal; border-bottom : 1px dotted #808080; color: black;}
+A.codeRef:link { font-weight: normal; color: #0000FF}
+A.codeRef:visited { font-weight: normal; color: #0000FF}
+/*A:hover { text-decoration: none; background-color: #f2f2ff }*/
+DL.el { margin-left: -1cm }
+.fragment {
+       font-family: monospace, fixed;
+       font-size: 95%;
+}
+PRE.fragment {
+       border: 1px solid #CCCCCC;
+       background-color: #f5f5f5;
+       margin-top: 4px;
+       margin-bottom: 4px;
+       margin-left: 2px;
+       margin-right: 8px;
+       padding-left: 6px;
+       padding-right: 6px;
+       padding-top: 4px;
+       padding-bottom: 4px;
+}
+DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px }
+
+DIV.groupHeader {
+       margin-left: 16px;
+       margin-top: 12px;
+       margin-bottom: 6px;
+       font-weight: bold;
+}
+DIV.groupText { margin-left: 16px; font-style: italic; font-size: 90% }
+BODY {
+       background: white;
+       color: black;
+       margin-right: 20px;
+       margin-left: 20px;
+}
+TD.indexkey {
+       background-color: #e8eef2;
+       font-weight: bold;
+       padding-right  : 10px;
+       padding-top    : 2px;
+       padding-left   : 10px;
+       padding-bottom : 2px;
+       margin-left    : 0px;
+       margin-right   : 0px;
+       margin-top     : 2px;
+       margin-bottom  : 2px;
+       border: 1px solid #CCCCCC;
+}
+TD.indexvalue {
+       background-color: #e8eef2;
+       font-style: italic;
+       padding-right  : 10px;
+       padding-top    : 2px;
+       padding-left   : 10px;
+       padding-bottom : 2px;
+       margin-left    : 0px;
+       margin-right   : 0px;
+       margin-top     : 2px;
+       margin-bottom  : 2px;
+       border: 1px solid #CCCCCC;
+}
+TR.memlist {
+   background-color: #f0f0f0; 
+}
+P.formulaDsp { text-align: center; }
+IMG.formulaDsp { }
+IMG.formulaInl { vertical-align: middle; }
+SPAN.keyword       { color: #0000FF }
+SPAN.keywordtype   { color: #0000FF }
+SPAN.keywordflow   { color: #0000FF }
+SPAN.comment       { color: #008000 }
+SPAN.preprocessor  { color: #008080 }
+SPAN.stringliteral { color: #008080 }
+SPAN.charliteral   { color: #008080 }
+.mdescLeft {
+       padding: 0px 8px 4px 8px;
+       font-size: 80%;
+       font-style: italic;
+       background-color: #FAFAFA;
+       border-top: 1px none #E0E0E0;
+       border-right: 1px none #E0E0E0;
+       border-bottom: 1px none #E0E0E0;
+       border-left: 1px none #E0E0E0;
+       margin: 0px;
+}
+.mdescRight {
+       padding: 0px 8px 4px 8px;
+       font-size: 80%;
+       font-style: italic;
+       background-color: #FAFAFA;
+       border-top: 1px none #E0E0E0;
+       border-right: 1px none #E0E0E0;
+       border-bottom: 1px none #E0E0E0;
+       border-left: 1px none #E0E0E0;
+       margin: 0px;
+}
+.memItemLeft {
+       padding: 1px 0px 0px 8px;
+       margin: 4px;
+       border-top-width: 1px;
+       border-right-width: 1px;
+       border-bottom-width: 1px;
+       border-left-width: 1px;
+       border-top-color: #E0E0E0;
+       border-right-color: #E0E0E0;
+       border-bottom-color: #E0E0E0;
+       border-left-color: #E0E0E0;
+       border-top-style: solid;
+       border-right-style: none;
+       border-bottom-style: none;
+       border-left-style: none;
+       background-color: #FAFAFA;
+       font-size: 80%;
+}
+.memItemRight {
+       padding: 1px 8px 0px 8px;
+       margin: 4px;
+       border-top-width: 1px;
+       border-right-width: 1px;
+       border-bottom-width: 1px;
+       border-left-width: 1px;
+       border-top-color: #E0E0E0;
+       border-right-color: #E0E0E0;
+       border-bottom-color: #E0E0E0;
+       border-left-color: #E0E0E0;
+       border-top-style: solid;
+       border-right-style: none;
+       border-bottom-style: none;
+       border-left-style: none;
+       background-color: #FAFAFA;
+       font-size: 80%;
+}
+.memTemplItemLeft {
+       padding: 1px 0px 0px 8px;
+       margin: 4px;
+       border-top-width: 1px;
+       border-right-width: 1px;
+       border-bottom-width: 1px;
+       border-left-width: 1px;
+       border-top-color: #E0E0E0;
+       border-right-color: #E0E0E0;
+       border-bottom-color: #E0E0E0;
+       border-left-color: #E0E0E0;
+       border-top-style: none;
+       border-right-style: none;
+       border-bottom-style: none;
+       border-left-style: none;
+       background-color: #FAFAFA;
+       font-size: 80%;
+}
+.memTemplItemRight {
+       padding: 1px 8px 0px 8px;
+       margin: 4px;
+       border-top-width: 1px;
+       border-right-width: 1px;
+       border-bottom-width: 1px;
+       border-left-width: 1px;
+       border-top-color: #E0E0E0;
+       border-right-color: #E0E0E0;
+       border-bottom-color: #E0E0E0;
+       border-left-color: #E0E0E0;
+       border-top-style: none;
+       border-right-style: none;
+       border-bottom-style: none;
+       border-left-style: none;
+       background-color: #FAFAFA;
+       font-size: 80%;
+}
+.memTemplParams {
+       padding: 1px 0px 0px 8px;
+       margin: 4px;
+       border-top-width: 1px;
+       border-right-width: 1px;
+       border-bottom-width: 1px;
+       border-left-width: 1px;
+       border-top-color: #E0E0E0;
+       border-right-color: #E0E0E0;
+       border-bottom-color: #E0E0E0;
+       border-left-color: #E0E0E0;
+       border-top-style: solid;
+       border-right-style: none;
+       border-bottom-style: none;
+       border-left-style: none;
+       color: #606060;
+       background-color: #FAFAFA;
+       font-size: 80%;
+}
+.search     { color: #003399;
+              font-weight: bold;
+}
+FORM.search {
+              margin-bottom: 0px;
+              margin-top: 0px;
+}
+INPUT.search { font-size: 75%;
+               color: #000080;
+               font-weight: normal;
+               background-color: #e8eef2;
+}
+TD.tiny      { font-size: 75%;
+}
+a {
+       color: #2090B0;
+}
+a:visited {
+       color: #2090B0;
+}
+.dirtab { padding: 4px;
+          border-collapse: collapse;
+          border: 1px solid #84b0c7;
+}
+TH.dirtab { background: #e8eef2;
+            font-weight: bold;
+}
+HR { height: 1px;
+     border: none;
+     border-top: 1px solid black;
+}
+
+/* Style for detailed member documentation */
+.memtemplate {
+  font-size: 80%;
+  color: #606060;
+  font-weight: normal;
+} 
+.memnav { 
+  background-color: #e8eef2;
+  border: 1px solid #84b0c7;
+  text-align: center;
+  margin: 2px;
+  margin-right: 15px;
+  padding: 2px;
+}
+.memitem {
+  /*padding: 4px;*/
+  background-color: #F0FFF0;
+  border-width: 1px;
+  border-style: solid;
+  border-color: #808080;
+  /*-moz-border-radius: 8px 8px 8px 8px;*/
+}
+.memname {
+  white-space: nowrap;
+  font-weight: bold;
+}
+.memdoc{
+  padding-left: 10px;
+}
+.memproto {
+  background-color: #D0FFD0;
+  width: 100%;
+  border-bottom-width: 1px;
+  border-bottom-style: dotted;
+  border-bottom-color: #808080;
+  font-weight: bold;
+  /*-moz-border-radius: 8px 8px 8px 8px;*/
+}
+.paramkey {
+  text-align: right;
+}
+.paramtype {
+  white-space: nowrap;
+}
+.paramname {
+  color: #602020;
+  font-style: italic;
+  white-space: nowrap;
+}
+/* End Styling for detailed member documentation */
+
+/* for the tree view */
+.ftvtree {
+       font-family: sans-serif;
+       margin:0.5em;
+}
+.directory { font-size: 9pt; font-weight: bold; }
+.directory h3 { margin: 0px; margin-top: 1em; font-size: 11pt; }
+.directory > h3 { margin-top: 0; }
+.directory p { margin: 0px; white-space: nowrap; }
+.directory div { display: none; margin: 0px; }
+.directory img { vertical-align: -30%; }
diff --git a/doc/third_party/Pluma/html/doxygen.png b/doc/third_party/Pluma/html/doxygen.png
new file mode 100644 (file)
index 0000000..3ff17d8
Binary files /dev/null and b/doc/third_party/Pluma/html/doxygen.png differ
diff --git a/doc/third_party/Pluma/html/dynsections.js b/doc/third_party/Pluma/html/dynsections.js
new file mode 100644 (file)
index 0000000..2f15470
--- /dev/null
@@ -0,0 +1,104 @@
+function toggleVisibility(linkObj)
+{
+ var base = $(linkObj).attr('id');
+ var summary = $('#'+base+'-summary');
+ var content = $('#'+base+'-content');
+ var trigger = $('#'+base+'-trigger');
+ var src=$(trigger).attr('src');
+ if (content.is(':visible')===true) {
+   content.hide();
+   summary.show();
+   $(linkObj).addClass('closed').removeClass('opened');
+   $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png');
+ } else {
+   content.show();
+   summary.hide();
+   $(linkObj).removeClass('closed').addClass('opened');
+   $(trigger).attr('src',src.substring(0,src.length-10)+'open.png');
+ } 
+ return false;
+}
+
+function updateStripes()
+{
+  $('table.directory tr').
+       removeClass('even').filter(':visible:even').addClass('even');
+}
+function toggleLevel(level)
+{
+  $('table.directory tr').each(function(){ 
+    var l = this.id.split('_').length-1;
+    var i = $('#img'+this.id.substring(3));
+    var a = $('#arr'+this.id.substring(3));
+    if (l<level+1) {
+      i.attr('src','ftv2folderopen.png');
+      a.attr('src','ftv2mnode.png');
+      $(this).show();
+    } else if (l==level+1) {
+      i.attr('src','ftv2folderclosed.png');
+      a.attr('src','ftv2pnode.png');
+      $(this).show();
+    } else {
+      $(this).hide();
+    }
+  });
+  updateStripes();
+}
+
+function toggleFolder(id)
+{
+  //The clicked row
+  var currentRow = $('#row_'+id);
+  var currentRowImages = currentRow.find("img");
+
+  //All rows after the clicked row
+  var rows = currentRow.nextAll("tr");
+
+  //Only match elements AFTER this one (can't hide elements before)
+  var childRows = rows.filter(function() {
+    var re = new RegExp('^row_'+id+'\\d+_$', "i"); //only one sub
+    return this.id.match(re);
+  });
+
+  //First row is visible we are HIDING
+  if (childRows.filter(':first').is(':visible')===true) {
+    currentRowImages.filter("[id^=arr]").attr('src', 'ftv2pnode.png');
+    currentRowImages.filter("[id^=img]").attr('src', 'ftv2folderclosed.png');
+    rows.filter("[id^=row_"+id+"]").hide();
+  } else { //We are SHOWING
+    //All sub images
+    var childImages = childRows.find("img");
+    var childImg = childImages.filter("[id^=img]");
+    var childArr = childImages.filter("[id^=arr]");
+
+    currentRow.find("[id^=arr]").attr('src', 'ftv2mnode.png'); //open row
+    currentRow.find("[id^=img]").attr('src', 'ftv2folderopen.png'); //open row
+    childImg.attr('src','ftv2folderclosed.png'); //children closed
+    childArr.attr('src','ftv2pnode.png'); //children closed
+    childRows.show(); //show all children
+  }
+  updateStripes();
+}
+
+
+function toggleInherit(id)
+{
+  var rows = $('tr.inherit.'+id);
+  var img = $('tr.inherit_header.'+id+' img');
+  var src = $(img).attr('src');
+  if (rows.filter(':first').is(':visible')===true) {
+    rows.css('display','none');
+    $(img).attr('src',src.substring(0,src.length-8)+'closed.png');
+  } else {
+    rows.css('display','table-row'); // using show() causes jump in firefox
+    $(img).attr('src',src.substring(0,src.length-10)+'open.png');
+  }
+}
+
+
+$(document).ready(function() {
+  $('.code,.codeRef').each(function() {
+    $(this).data('powertip',$('#'+$(this).attr('href').replace(/.*\//,'').replace(/[^a-z_A-Z0-9]/g,'_')).html());
+    $(this).powerTip({ placement: 's', smartPlacement: true, mouseOnToPopup: true });
+  });
+});
diff --git a/doc/third_party/Pluma/html/files.htm b/doc/third_party/Pluma/html/files.htm
new file mode 100644 (file)
index 0000000..e614b0b
--- /dev/null
@@ -0,0 +1,58 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li class="current"><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li class="current"><a href="files.htm"><span>File&#160;List</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">File List</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="textblock">Here is a list of all documented files with brief descriptions:</div><div class="directory">
+<table class="directory">
+<tr id="row_0_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="Config_8hpp_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>Config.hpp</b></td><td class="desc"></td></tr>
+<tr id="row_1_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="Connector_8hpp_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>Connector.hpp</b></td><td class="desc"></td></tr>
+<tr id="row_2_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="Dir_8cpp_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>Dir.cpp</b></td><td class="desc"></td></tr>
+<tr id="row_3_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="Dir_8hpp_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>Dir.hpp</b></td><td class="desc"></td></tr>
+<tr id="row_4_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="DLibrary_8cpp_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>DLibrary.cpp</b></td><td class="desc"></td></tr>
+<tr id="row_5_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="DLibrary_8hpp_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>DLibrary.hpp</b></td><td class="desc"></td></tr>
+<tr id="row_6_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="Doxygen_8hpp_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>Doxygen.hpp</b></td><td class="desc"></td></tr>
+<tr id="row_7_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="Host_8cpp_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>Host.cpp</b></td><td class="desc"></td></tr>
+<tr id="row_8_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="Host_8hpp_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>Host.hpp</b></td><td class="desc"></td></tr>
+<tr id="row_9_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="PluginManager_8cpp_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>PluginManager.cpp</b></td><td class="desc"></td></tr>
+<tr id="row_10_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="PluginManager_8hpp_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>PluginManager.hpp</b></td><td class="desc"></td></tr>
+<tr id="row_11_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="Pluma_8hpp_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>Pluma.hpp</b></td><td class="desc"></td></tr>
+<tr id="row_12_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="Pluma_8inl_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>Pluma.inl</b></td><td class="desc"></td></tr>
+<tr id="row_13_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><a href="Provider_8cpp_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>Provider.cpp</b></td><td class="desc"></td></tr>
+<tr id="row_14_" class="even"><td class="entry"><img src="ftv2lastnode.png" alt="\" width="16" height="22" /><a href="Provider_8hpp_source.htm"><img src="ftv2doc.png" alt="*" width="24" height="22" /></a><b>Provider.hpp</b></td><td class="desc"></td></tr>
+</table>
+</div><!-- directory -->
+</div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/ftv2blank.png b/doc/third_party/Pluma/html/ftv2blank.png
new file mode 100644 (file)
index 0000000..63c605b
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2blank.png differ
diff --git a/doc/third_party/Pluma/html/ftv2cl.png b/doc/third_party/Pluma/html/ftv2cl.png
new file mode 100644 (file)
index 0000000..132f657
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2cl.png differ
diff --git a/doc/third_party/Pluma/html/ftv2doc.png b/doc/third_party/Pluma/html/ftv2doc.png
new file mode 100644 (file)
index 0000000..17edabf
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2doc.png differ
diff --git a/doc/third_party/Pluma/html/ftv2folderclosed.png b/doc/third_party/Pluma/html/ftv2folderclosed.png
new file mode 100644 (file)
index 0000000..bb8ab35
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2folderclosed.png differ
diff --git a/doc/third_party/Pluma/html/ftv2folderopen.png b/doc/third_party/Pluma/html/ftv2folderopen.png
new file mode 100644 (file)
index 0000000..d6c7f67
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2folderopen.png differ
diff --git a/doc/third_party/Pluma/html/ftv2lastnode.png b/doc/third_party/Pluma/html/ftv2lastnode.png
new file mode 100644 (file)
index 0000000..63c605b
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2lastnode.png differ
diff --git a/doc/third_party/Pluma/html/ftv2link.png b/doc/third_party/Pluma/html/ftv2link.png
new file mode 100644 (file)
index 0000000..17edabf
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2link.png differ
diff --git a/doc/third_party/Pluma/html/ftv2mlastnode.png b/doc/third_party/Pluma/html/ftv2mlastnode.png
new file mode 100644 (file)
index 0000000..0b63f6d
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2mlastnode.png differ
diff --git a/doc/third_party/Pluma/html/ftv2mnode.png b/doc/third_party/Pluma/html/ftv2mnode.png
new file mode 100644 (file)
index 0000000..0b63f6d
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2mnode.png differ
diff --git a/doc/third_party/Pluma/html/ftv2mo.png b/doc/third_party/Pluma/html/ftv2mo.png
new file mode 100644 (file)
index 0000000..4bfb80f
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2mo.png differ
diff --git a/doc/third_party/Pluma/html/ftv2node.png b/doc/third_party/Pluma/html/ftv2node.png
new file mode 100644 (file)
index 0000000..63c605b
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2node.png differ
diff --git a/doc/third_party/Pluma/html/ftv2ns.png b/doc/third_party/Pluma/html/ftv2ns.png
new file mode 100644 (file)
index 0000000..72e3d71
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2ns.png differ
diff --git a/doc/third_party/Pluma/html/ftv2plastnode.png b/doc/third_party/Pluma/html/ftv2plastnode.png
new file mode 100644 (file)
index 0000000..c6ee22f
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2plastnode.png differ
diff --git a/doc/third_party/Pluma/html/ftv2pnode.png b/doc/third_party/Pluma/html/ftv2pnode.png
new file mode 100644 (file)
index 0000000..c6ee22f
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2pnode.png differ
diff --git a/doc/third_party/Pluma/html/ftv2splitbar.png b/doc/third_party/Pluma/html/ftv2splitbar.png
new file mode 100644 (file)
index 0000000..fe895f2
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2splitbar.png differ
diff --git a/doc/third_party/Pluma/html/ftv2vertline.png b/doc/third_party/Pluma/html/ftv2vertline.png
new file mode 100644 (file)
index 0000000..63c605b
Binary files /dev/null and b/doc/third_party/Pluma/html/ftv2vertline.png differ
diff --git a/doc/third_party/Pluma/html/functions.htm b/doc/third_party/Pluma/html/functions.htm
new file mode 100644 (file)
index 0000000..cdc44a7
--- /dev/null
@@ -0,0 +1,105 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li class="current"><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow3" class="tabs2">
+    <ul class="tablist">
+      <li class="current"><a href="functions.htm"><span>All</span></a></li>
+      <li><a href="functions_func.htm"><span>Functions</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="contents">
+<div class="textblock">Here is a list of all documented class members with links to the class documentation for each member:</div><ul>
+<li>acceptProviderType()
+: <a class="el" href="classpluma_1_1Pluma.htm#a200c59b0983c7ca53d11b03cf8220bc7">pluma::Pluma</a>
+</li>
+<li>add()
+: <a class="el" href="classpluma_1_1Host.htm#ab673ba94ff56a12cdf2a7a25ebb8cc36">pluma::Host</a>
+</li>
+<li>addProvider()
+: <a class="el" href="classpluma_1_1PluginManager.htm#af27f8e89b8e29359495b6398464ebf02">pluma::PluginManager</a>
+</li>
+<li>getLoadedPlugins()
+: <a class="el" href="classpluma_1_1PluginManager.htm#a187e60d3fe7524774c08eb58ebcb843f">pluma::PluginManager</a>
+</li>
+<li>getProviders()
+: <a class="el" href="classpluma_1_1PluginManager.htm#ad5eab1dcae10122fdfb8d94d7b391e9e">pluma::PluginManager</a>
+, <a class="el" href="classpluma_1_1Pluma.htm#a49fa0b2b4497885c4e978259be0a7abe">pluma::Pluma</a>
+</li>
+<li>getSymbol()
+: <a class="el" href="classpluma_1_1DLibrary.htm#a57dd3726140cce08957e40cb5b001d84">pluma::DLibrary</a>
+</li>
+<li>getVersion()
+: <a class="el" href="classpluma_1_1Provider.htm#af8643b65e111e010edff6e7a489265e6">pluma::Provider</a>
+</li>
+<li>isCompatible()
+: <a class="el" href="classpluma_1_1Provider.htm#a192ea5a17a8fe9de1f3ba6572f44f266">pluma::Provider</a>
+</li>
+<li>isLoaded()
+: <a class="el" href="classpluma_1_1PluginManager.htm#adbd75738cd4d8969608c9da8b58a03c3">pluma::PluginManager</a>
+</li>
+<li>load()
+: <a class="el" href="classpluma_1_1DLibrary.htm#a32400d8e50c0f03cb525ca7500b4516e">pluma::DLibrary</a>
+, <a class="el" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">pluma::PluginManager</a>
+</li>
+<li>loadFromFolder()
+: <a class="el" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb">pluma::PluginManager</a>
+</li>
+<li>PluginManager()
+: <a class="el" href="classpluma_1_1PluginManager.htm#a8378a698812f8f079ff8aea7c1474d67">pluma::PluginManager</a>
+</li>
+<li>Pluma()
+: <a class="el" href="classpluma_1_1Pluma.htm#adf4e065f5169931f6290f3828b49e7bb">pluma::Pluma</a>
+</li>
+<li>registerType()
+: <a class="el" href="classpluma_1_1PluginManager.htm#ab70b5b6b719bdbd64c27ae2dcb12a64d">pluma::PluginManager</a>
+</li>
+<li>unload()
+: <a class="el" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745">pluma::PluginManager</a>
+</li>
+<li>unloadAll()
+: <a class="el" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db">pluma::PluginManager</a>
+</li>
+<li>~DLibrary()
+: <a class="el" href="classpluma_1_1DLibrary.htm#a3fa679bc824b36ce61b67716bedd15c7">pluma::DLibrary</a>
+</li>
+<li>~PluginManager()
+: <a class="el" href="classpluma_1_1PluginManager.htm#a4d7a0e1151b75300350834a59db5748b">pluma::PluginManager</a>
+</li>
+<li>~Provider()
+: <a class="el" href="classpluma_1_1Provider.htm#a111a1db902d6372282f8407c9d845c21">pluma::Provider</a>
+</li>
+</ul>
+</div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/functions_func.htm b/doc/third_party/Pluma/html/functions_func.htm
new file mode 100644 (file)
index 0000000..64622da
--- /dev/null
@@ -0,0 +1,105 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li class="current"><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow3" class="tabs2">
+    <ul class="tablist">
+      <li><a href="functions.htm"><span>All</span></a></li>
+      <li class="current"><a href="functions_func.htm"><span>Functions</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="contents">
+&#160;<ul>
+<li>acceptProviderType()
+: <a class="el" href="classpluma_1_1Pluma.htm#a200c59b0983c7ca53d11b03cf8220bc7">pluma::Pluma</a>
+</li>
+<li>add()
+: <a class="el" href="classpluma_1_1Host.htm#ab673ba94ff56a12cdf2a7a25ebb8cc36">pluma::Host</a>
+</li>
+<li>addProvider()
+: <a class="el" href="classpluma_1_1PluginManager.htm#af27f8e89b8e29359495b6398464ebf02">pluma::PluginManager</a>
+</li>
+<li>getLoadedPlugins()
+: <a class="el" href="classpluma_1_1PluginManager.htm#a187e60d3fe7524774c08eb58ebcb843f">pluma::PluginManager</a>
+</li>
+<li>getProviders()
+: <a class="el" href="classpluma_1_1PluginManager.htm#ad5eab1dcae10122fdfb8d94d7b391e9e">pluma::PluginManager</a>
+, <a class="el" href="classpluma_1_1Pluma.htm#a49fa0b2b4497885c4e978259be0a7abe">pluma::Pluma</a>
+</li>
+<li>getSymbol()
+: <a class="el" href="classpluma_1_1DLibrary.htm#a57dd3726140cce08957e40cb5b001d84">pluma::DLibrary</a>
+</li>
+<li>getVersion()
+: <a class="el" href="classpluma_1_1Provider.htm#af8643b65e111e010edff6e7a489265e6">pluma::Provider</a>
+</li>
+<li>isCompatible()
+: <a class="el" href="classpluma_1_1Provider.htm#a192ea5a17a8fe9de1f3ba6572f44f266">pluma::Provider</a>
+</li>
+<li>isLoaded()
+: <a class="el" href="classpluma_1_1PluginManager.htm#adbd75738cd4d8969608c9da8b58a03c3">pluma::PluginManager</a>
+</li>
+<li>load()
+: <a class="el" href="classpluma_1_1DLibrary.htm#a32400d8e50c0f03cb525ca7500b4516e">pluma::DLibrary</a>
+, <a class="el" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">pluma::PluginManager</a>
+</li>
+<li>loadFromFolder()
+: <a class="el" href="classpluma_1_1PluginManager.htm#a4d892e345288c26dea091d62ee2b03eb">pluma::PluginManager</a>
+</li>
+<li>PluginManager()
+: <a class="el" href="classpluma_1_1PluginManager.htm#a8378a698812f8f079ff8aea7c1474d67">pluma::PluginManager</a>
+</li>
+<li>Pluma()
+: <a class="el" href="classpluma_1_1Pluma.htm#adf4e065f5169931f6290f3828b49e7bb">pluma::Pluma</a>
+</li>
+<li>registerType()
+: <a class="el" href="classpluma_1_1PluginManager.htm#ab70b5b6b719bdbd64c27ae2dcb12a64d">pluma::PluginManager</a>
+</li>
+<li>unload()
+: <a class="el" href="classpluma_1_1PluginManager.htm#a52f6408d4cf95c6f36b518ab2d3a7745">pluma::PluginManager</a>
+</li>
+<li>unloadAll()
+: <a class="el" href="classpluma_1_1PluginManager.htm#a697a20dc97957e0c2a5dad33f39d93db">pluma::PluginManager</a>
+</li>
+<li>~DLibrary()
+: <a class="el" href="classpluma_1_1DLibrary.htm#a3fa679bc824b36ce61b67716bedd15c7">pluma::DLibrary</a>
+</li>
+<li>~PluginManager()
+: <a class="el" href="classpluma_1_1PluginManager.htm#a4d7a0e1151b75300350834a59db5748b">pluma::PluginManager</a>
+</li>
+<li>~Provider()
+: <a class="el" href="classpluma_1_1Provider.htm#a111a1db902d6372282f8407c9d845c21">pluma::Provider</a>
+</li>
+</ul>
+</div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/hierarchy.htm b/doc/third_party/Pluma/html/hierarchy.htm
new file mode 100644 (file)
index 0000000..297a965
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+  <div id="navrow2" class="tabs2">
+    <ul class="tablist">
+      <li><a href="annotated.htm"><span>Class&#160;List</span></a></li>
+      <li><a href="classes.htm"><span>Class&#160;Index</span></a></li>
+      <li class="current"><a href="hierarchy.htm"><span>Class&#160;Hierarchy</span></a></li>
+      <li><a href="functions.htm"><span>Class&#160;Members</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Class Hierarchy</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="textblock">This inheritance list is sorted roughly, but not completely, alphabetically:</div><div class="directory">
+<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span>]</div><table class="directory">
+<tr id="row_0_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="classpluma_1_1DLibrary.htm" target="_self">pluma::DLibrary</a></td><td class="desc">Manages a Dynamic Linking Library </td></tr>
+<tr id="row_1_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="classpluma_1_1Host.htm" target="_self">pluma::Host</a></td><td class="desc">Manages providers </td></tr>
+<tr id="row_2_" class="even"><td class="entry"><img id="arr_2_" src="ftv2mnode.png" alt="o" width="16" height="22" onclick="toggleFolder('2_')"/><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="classpluma_1_1PluginManager.htm" target="_self">pluma::PluginManager</a></td><td class="desc">Manages loaded plugins </td></tr>
+<tr id="row_2_0_"><td class="entry"><img src="ftv2vertline.png" alt="|" width="16" height="22" /><img src="ftv2lastnode.png" alt="\" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="classpluma_1_1Pluma.htm" target="_self">pluma::Pluma</a></td><td class="desc"><a class="el" href="classpluma_1_1Pluma.htm" title="Pluma plugins management. ">Pluma</a> plugins management </td></tr>
+<tr id="row_3_" class="even"><td class="entry"><img src="ftv2lastnode.png" alt="\" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="classpluma_1_1Provider.htm" target="_self">pluma::Provider</a></td><td class="desc">Interface to provide applications with objects from plugins </td></tr>
+</table>
+</div><!-- directory -->
+</div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/index.htm b/doc/third_party/Pluma/html/index.htm
new file mode 100644 (file)
index 0000000..df4076e
--- /dev/null
@@ -0,0 +1,112 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+    <head>
+        <title>Pluma - Plug-in Management Framework</title>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
+        <link href="doxygen.css" rel="stylesheet" type="text/css" />
+        <link href="tabs.css" rel="stylesheet" type="text/css" />
+    </head>
+    <body>
+        <div id="logo">
+            <img src="./logo.png" title="Pluma home" alt="Pluma logo" />
+        </div>
+<!-- Generated by Doxygen 1.8.6 -->
+  <div id="navrow1" class="tabs">
+    <ul class="tablist">
+      <li class="current"><a href="index.htm"><span>Main&#160;Page</span></a></li>
+      <li><a href="annotated.htm"><span>Classes</span></a></li>
+      <li><a href="files.htm"><span>Files</span></a></li>
+    </ul>
+  </div>
+</div><!-- top -->
+<div class="header">
+  <div class="headertitle">
+<div class="title">Pluma Documentation</div>  </div>
+</div><!--header-->
+<div class="contents">
+<div class="textblock"><h1><a class="anchor" id="welcome"></a>
+Welcome</h1>
+<p>Welcome to Pluma documentation. Here you will find a detailed view of all Pluma <a href="./annotated.htm">classes</a>.<br/>
+ If you are looking for support, you can visit the official website at <a href="http://pluma-framework.sourceforge.net/">http://pluma-framework.sourceforge.net/</a>.<br/>
+<br/>
+</p>
+<p>CSS based on <a href="http://www.sfml-dev.org/documentation/1.6/">SFML1.6 documentation</a><br/>
+</p>
+<h1><a class="anchor" id="example"></a>
+Short Example</h1>
+<p>A short example to demonstrate Pluma usage:<br/>
+ A host application define a Device interface. A certain plugin defines a Keyboard, witch is a Device. The host will use DeviceProviders to create objects of type Device. The plugin will provide host specifically with a KeyboardProvider.<br/>
+</p>
+<p>Device hpp (shared): </p>
+<div class="fragment"><div class="line"><span class="preprocessor">#include &lt;Pluma/Pluma.hpp&gt;</span></div>
+<div class="line"><span class="keyword">class </span>Device{</div>
+<div class="line"><span class="keyword">public</span>:</div>
+<div class="line">    <span class="keyword">virtual</span> std::string getDescription() <span class="keyword">const</span> = 0;</div>
+<div class="line">};</div>
+<div class="line"><span class="comment">// create DevicedProvider class</span></div>
+<div class="line">PLUMA_PROVIDER_HEADER(Device);</div>
+</div><!-- fragment --><p>Device cpp (shared): </p>
+<div class="fragment"><div class="line"><span class="preprocessor">#include &quot;Device.hpp&quot;</span></div>
+<div class="line">generate DevicedProvider with version 6, and compatible with at least v.3</div>
+<div class="line">PLUMA_PROVIDER_SOURCE(Device, 6, 3);</div>
+</div><!-- fragment --><p><br/>
+ Keyboard code on the plugin side: </p>
+<div class="fragment"><div class="line"><span class="preprocessor">#include &lt;Pluma/Pluma.hpp&gt;</span></div>
+<div class="line"><span class="preprocessor">#include &quot;Device.hpp&quot;</span></div>
+<div class="line"></div>
+<div class="line"><span class="keyword">class </span>Keyboard: <span class="keyword">public</span> Device{</div>
+<div class="line"><span class="keyword">public</span>:</div>
+<div class="line">    std::string getDescription()<span class="keyword"> const</span>{</div>
+<div class="line">        <span class="keywordflow">return</span> <span class="stringliteral">&quot;keyboard&quot;</span>;</div>
+<div class="line">    }</div>
+<div class="line">};</div>
+<div class="line"></div>
+<div class="line"><span class="comment">// create KeyboardProvider, it implements DeviceProvider</span></div>
+<div class="line">PLUMA_INHERIT_PROVIDER(Keyboard, Device);</div>
+</div><!-- fragment --><p>plugin connector: </p>
+<div class="fragment"><div class="line"><span class="preprocessor">#include &lt;Pluma/Connector.hpp&gt;</span></div>
+<div class="line"><span class="preprocessor">#include &quot;Keyboard.hpp&quot;</span></div>
+<div class="line"></div>
+<div class="line">PLUMA_CONNECTOR</div>
+<div class="line"><span class="keywordtype">bool</span> connect(<a class="code" href="classpluma_1_1Host.htm">pluma::Host</a>&amp; host){</div>
+<div class="line">    <span class="comment">// add a keyboard provider to host</span></div>
+<div class="line">    host.<a class="code" href="classpluma_1_1Host.htm#ab673ba94ff56a12cdf2a7a25ebb8cc36">add</a>( <span class="keyword">new</span> KeyboardProvider() );</div>
+<div class="line">    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
+<div class="line">}</div>
+</div><!-- fragment --><p>Host application code: </p>
+<div class="fragment"><div class="line"><span class="preprocessor">#include &lt;Pluma/Pluma.hpp&gt;</span></div>
+<div class="line"></div>
+<div class="line"><span class="preprocessor">#include &quot;Device.hpp&quot;</span></div>
+<div class="line"><span class="preprocessor">#include &lt;iostream&gt;</span></div>
+<div class="line"><span class="preprocessor">#include &lt;vector&gt;</span></div>
+<div class="line"></div>
+<div class="line"><span class="keywordtype">int</span> main(){</div>
+<div class="line"></div>
+<div class="line">    <a class="code" href="classpluma_1_1Pluma.htm">pluma::Pluma</a> plugins;</div>
+<div class="line">    <span class="comment">// Tell plugins manager to accept providers of the type DeviceProvider</span></div>
+<div class="line">    plugins.<a class="code" href="classpluma_1_1Pluma.htm#a200c59b0983c7ca53d11b03cf8220bc7">acceptProviderType</a>&lt;DeviceProvider&gt;();</div>
+<div class="line">    <span class="comment">// Load library &quot;standard_devices&quot; from folder &quot;plugins&quot;</span></div>
+<div class="line">    plugins.<a class="code" href="classpluma_1_1PluginManager.htm#aa00400d23efa8a8f94e44dd1c5bf54e6">load</a>(<span class="stringliteral">&quot;plugins&quot;</span>, <span class="stringliteral">&quot;standard_devices&quot;</span>);</div>
+<div class="line"></div>
+<div class="line">    <span class="comment">// Get device providers into a vector</span></div>
+<div class="line">    std::vector&lt;DeviceProvider*&gt; providers;</div>
+<div class="line">    plugins.<a class="code" href="classpluma_1_1Pluma.htm#a49fa0b2b4497885c4e978259be0a7abe">getProviders</a>(providers);</div>
+<div class="line"></div>
+<div class="line">    <span class="comment">// create a Device from the first provider</span></div>
+<div class="line">    <span class="keywordflow">if</span> (!providers.empty()){</div>
+<div class="line">        Device* myDevice = providers.first()-&gt;create();</div>
+<div class="line">        <span class="comment">// do something with myDevice</span></div>
+<div class="line">        std::cout &lt;&lt; device-&gt;getDescription() &lt;&lt; std::endl;</div>
+<div class="line">        <span class="comment">// and delete it in the end</span></div>
+<div class="line">        <span class="keyword">delete</span> myDevice;</div>
+<div class="line">    }</div>
+<div class="line">    <span class="keywordflow">return</span> 0;</div>
+<div class="line">}</div>
+</div><!-- fragment --> </div></div><!-- contents -->
+
+        <p id="footer">
+            &nbsp;::&nbsp; Copyright &copy; 2011 Gil Costa, all rights reserved &nbsp;::&nbsp;
+            Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen 1.7.4</a> &nbsp;::&nbsp;
+        </p>
+    </body>
+</html>
diff --git a/doc/third_party/Pluma/html/logo.png b/doc/third_party/Pluma/html/logo.png
new file mode 100644 (file)
index 0000000..f3d74cd
Binary files /dev/null and b/doc/third_party/Pluma/html/logo.png differ
diff --git a/doc/third_party/Pluma/html/nav_f.png b/doc/third_party/Pluma/html/nav_f.png
new file mode 100644 (file)
index 0000000..72a58a5
Binary files /dev/null and b/doc/third_party/Pluma/html/nav_f.png differ
diff --git a/doc/third_party/Pluma/html/nav_g.png b/doc/third_party/Pluma/html/nav_g.png
new file mode 100644 (file)
index 0000000..2093a23
Binary files /dev/null and b/doc/third_party/Pluma/html/nav_g.png differ
diff --git a/doc/third_party/Pluma/html/nav_h.png b/doc/third_party/Pluma/html/nav_h.png
new file mode 100644 (file)
index 0000000..33389b1
Binary files /dev/null and b/doc/third_party/Pluma/html/nav_h.png differ
diff --git a/doc/third_party/Pluma/html/open.png b/doc/third_party/Pluma/html/open.png
new file mode 100644 (file)
index 0000000..30f75c7
Binary files /dev/null and b/doc/third_party/Pluma/html/open.png differ
diff --git a/doc/third_party/Pluma/html/sync_off.png b/doc/third_party/Pluma/html/sync_off.png
new file mode 100644 (file)
index 0000000..3b443fc
Binary files /dev/null and b/doc/third_party/Pluma/html/sync_off.png differ
diff --git a/doc/third_party/Pluma/html/sync_on.png b/doc/third_party/Pluma/html/sync_on.png
new file mode 100644 (file)
index 0000000..e08320f
Binary files /dev/null and b/doc/third_party/Pluma/html/sync_on.png differ
diff --git a/doc/third_party/Pluma/html/tab_a.png b/doc/third_party/Pluma/html/tab_a.png
new file mode 100644 (file)
index 0000000..3b725c4
Binary files /dev/null and b/doc/third_party/Pluma/html/tab_a.png differ
diff --git a/doc/third_party/Pluma/html/tab_b.png b/doc/third_party/Pluma/html/tab_b.png
new file mode 100644 (file)
index 0000000..e2b4a86
Binary files /dev/null and b/doc/third_party/Pluma/html/tab_b.png differ
diff --git a/doc/third_party/Pluma/html/tab_h.png b/doc/third_party/Pluma/html/tab_h.png
new file mode 100644 (file)
index 0000000..fd5cb70
Binary files /dev/null and b/doc/third_party/Pluma/html/tab_h.png differ
diff --git a/doc/third_party/Pluma/html/tab_s.png b/doc/third_party/Pluma/html/tab_s.png
new file mode 100644 (file)
index 0000000..ab478c9
Binary files /dev/null and b/doc/third_party/Pluma/html/tab_s.png differ
diff --git a/doc/third_party/Pluma/html/tabs.css b/doc/third_party/Pluma/html/tabs.css
new file mode 100644 (file)
index 0000000..9cf578f
--- /dev/null
@@ -0,0 +1,60 @@
+.tabs, .tabs2, .tabs3 {
+    background-image: url('tab_b.png');
+    width: 100%;
+    z-index: 101;
+    font-size: 13px;
+    font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif;
+}
+
+.tabs2 {
+    font-size: 10px;
+}
+.tabs3 {
+    font-size: 9px;
+}
+
+.tablist {
+    margin: 0;
+    padding: 0;
+    display: table;
+}
+
+.tablist li {
+    float: left;
+    display: table-cell;
+    background-image: url('tab_b.png');
+    line-height: 36px;
+    list-style: none;
+}
+
+.tablist a {
+    display: block;
+    padding: 0 20px;
+    font-weight: bold;
+    background-image:url('tab_s.png');
+    background-repeat:no-repeat;
+    background-position:right;
+    color: #283A5D;
+    text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9);
+    text-decoration: none;
+    outline: none;
+}
+
+.tabs3 .tablist a {
+    padding: 0 10px;
+}
+
+.tablist a:hover {
+    background-image: url('tab_h.png');
+    background-repeat:repeat-x;
+    color: #fff;
+    text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0);
+    text-decoration: none;
+}
+
+.tablist li.current a {
+    background-image: url('tab_a.png');
+    background-repeat:repeat-x;
+    color: #fff;
+    text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0);
+}
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ef245aa
--- /dev/null
@@ -0,0 +1,6 @@
+SUBDIRS(
+  cpPlugins
+  third_party
+  )
+
+## eof - $RCSfile$
diff --git a/lib/cpPlugins/CMakeLists.txt b/lib/cpPlugins/CMakeLists.txt
new file mode 100644 (file)
index 0000000..fe78cf1
--- /dev/null
@@ -0,0 +1,6 @@
+SUBDIRS(
+  Interface
+  Plugins
+  )
+
+## eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/CMakeLists.txt b/lib/cpPlugins/Interface/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8daa761
--- /dev/null
@@ -0,0 +1,30 @@
+SET(LIBRARY_NAME cpPlugins_Interface)
+
+## ===============
+## = Source code =
+## ===============
+
+FILE(GLOB LIB_HEADERS_H   "*.h")
+FILE(GLOB LIB_HEADERS_HPP "*.hpp")
+FILE(GLOB LIB_HEADERS_HXX "*.hxx")
+FILE(GLOB LIB_SOURCES_C   "*.c")
+FILE(GLOB LIB_SOURCES_CPP "*.cpp")
+FILE(GLOB LIB_SOURCES_CXX "*.cxx")
+
+## =====================
+## = Compilation rules =
+## =====================
+
+ADD_LIBRARY(
+  ${LIBRARY_NAME}
+  SHARED
+  ${LIB_SOURCES_C}
+  ${LIB_SOURCES_CPP}
+  ${LIB_SOURCES_CXX}
+  )
+TARGET_LINK_LIBRARIES(
+  ${LIBRARY_NAME}
+  cpPlugins_Pluma
+  )
+
+## eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/DataObject.cxx b/lib/cpPlugins/Interface/DataObject.cxx
new file mode 100644 (file)
index 0000000..0b64bec
--- /dev/null
@@ -0,0 +1,40 @@
+#include <cpPlugins/Interface/DataObject.h>
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::DataObject::
+DataObject( )
+  : Superclass( ),
+    m_Source( NULL )
+{
+}
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::DataObject::
+~DataObject( )
+{
+}
+
+// -------------------------------------------------------------------------
+std::string cpPlugins::Interface::DataObject::
+GetClassName( ) const
+{
+  return( "cpPlugins::Interface::DataObject" );
+}
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::ProcessObject* cpPlugins::Interface::DataObject::
+GetSource( ProcessObject* src ) const
+{
+  return( this->m_Source );
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Interface::DataObject::
+SetSource( cpPlugins::Interface::ProcessObject* src )
+{
+  this->m_Source = src;
+}
+
+#endif // __CPPLUGINS__INTERFACE__DATAOBJECT__H__
+
+// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/DataObject.h b/lib/cpPlugins/Interface/DataObject.h
new file mode 100644 (file)
index 0000000..359b2b4
--- /dev/null
@@ -0,0 +1,47 @@
+#ifndef __CPPLUGINS__INTERFACE__DATAOBJECT__H__
+#define __CPPLUGINS__INTERFACE__DATAOBJECT__H__
+
+#include <map>
+#include <string>
+#include <itkDataObject.h>
+#include <cpPlugins/Interface/Object.h>
+
+namespace cpPlugins
+{
+  namespace Interface
+  {
+    class ProcessObject;
+
+    /**
+     */
+    class DataObject
+      : public Object
+    {
+    public:
+      typedef DataObject Self;
+      typedef Object     Superclass;
+
+    public:
+      DataObject( );
+      virtual ~DataObject( );
+
+      virtual std::string GetClassName( ) const;
+
+      itk::DataObject* GetDataObject( ) const;
+      void SetDataObject( itk::DataObject* src );
+
+      ProcessObject* GetSource( ) const;
+      void SetSource( ProcessObject* src );
+
+    protected:
+      itk::DataObject::Pointer m_DataObject;
+      ProcessObject*           m_Source;
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __CPPLUGINS__INTERFACE__DATAOBJECT__H__
+
+// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/FilterObject.h b/lib/cpPlugins/Interface/FilterObject.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/lib/cpPlugins/Interface/Image.h b/lib/cpPlugins/Interface/Image.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/lib/cpPlugins/Interface/ImageToImageFilter.h b/lib/cpPlugins/Interface/ImageToImageFilter.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/lib/cpPlugins/Interface/ImageToMeshFilter.h b/lib/cpPlugins/Interface/ImageToMeshFilter.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/lib/cpPlugins/Interface/Interface.cxx b/lib/cpPlugins/Interface/Interface.cxx
new file mode 100644 (file)
index 0000000..332ace5
--- /dev/null
@@ -0,0 +1,144 @@
+#include <cpPlugins/Interface/Interface.h>
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::Interface::
+Interface( )
+{
+  this->m_Pluma.acceptProviderType< ObjectProvider >( );
+}
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::Interface::
+~Interface( )
+{
+  this->UnloadAll( );
+}
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::Interface::
+TClasses& cpPlugins::Interface::Interface::
+GetClasses( )
+{
+  return( this->m_Classes );
+}
+
+// -------------------------------------------------------------------------
+const cpPlugins::Interface::Interface::
+TClasses& cpPlugins::Interface::Interface::
+GetClasses( ) const
+{
+  return( this->m_Classes );
+}
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::Object* cpPlugins::Interface::Interface::
+CreateObject( const std::string& name ) const
+{
+  TClassesIterator cIt = this->m_Classes.find( name );
+  if( cIt != this->m_Classes.end( ) )
+  {
+    ObjectProvider* provider =
+      dynamic_cast< ObjectProvider* >( this->m_Providers[ cIt->second ] );
+    if( provider != NULL )
+      return( dynamic_cast< Object* >( provider->create( ) ) );
+
+  } // fi
+  return( NULL );
+}
+
+// -------------------------------------------------------------------------
+bool cpPlugins::Interface::Interface::
+Load( const std::string& path )
+{
+  if( this->m_Pluma.load( path ) )
+  {
+    this->_LoadClasses( );
+    return( true );
+  }
+  else
+    return( false );
+}
+
+// -------------------------------------------------------------------------
+bool cpPlugins::Interface::Interface::
+Load( const std::string& folder, const std::string& name )
+{
+  if( this->m_Pluma.load( folder, name ) )
+  {
+    this->_LoadClasses( );
+    return( true );
+  }
+  else
+    return( false );
+}
+
+// -------------------------------------------------------------------------
+int cpPlugins::Interface::Interface::
+LoadFromFolder( const std::string& folder, bool r )
+{
+  if( this->m_Pluma.loadFromFolder( folder, r ) )
+  {
+    this->_LoadClasses( );
+    return( true );
+  }
+  else
+    return( false );
+}
+
+// -------------------------------------------------------------------------
+bool cpPlugins::Interface::Interface::
+Unload( const std::string& name )
+{
+  if( this->m_Pluma.unload( name ) )
+  {
+    this->m_Providers.clear( );
+    this->m_Classes.clear( );
+    this->_LoadClasses( );
+    return( true );
+  }
+  else
+    return( false );
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Interface::Interface::
+UnloadAll( )
+{
+  this->m_Pluma.unloadAll( );
+  this->m_Providers.clear( );
+  this->m_Classes.clear( );
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Interface::Interface::
+GetLoadedPlugins( std::vector< const std::string* >& names ) const
+{
+  this->m_Pluma.getLoadedPlugins( names );
+}
+
+// -------------------------------------------------------------------------
+bool cpPlugins::Interface::Interface::
+IsLoaded( const std::string& name ) const
+{
+  return( this->m_Pluma.isLoaded( name ) );
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Interface::Interface::
+_LoadClasses( )
+{
+  this->m_Providers.clear( );
+  this->m_Classes.clear( );
+  this->m_Pluma.getProviders( this->m_Providers );
+
+  // Get reader provider
+  for( unsigned int i = 0; i < this->m_Providers.size( ); ++i )
+  {
+    Object* dummy = this->m_Providers[ i ]->create( );
+    this->m_Classes[ dummy->GetClassName( ) ] = i;
+    delete dummy;
+
+  } // rof
+}
+
+// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Interface.h b/lib/cpPlugins/Interface/Interface.h
new file mode 100644 (file)
index 0000000..1db73b9
--- /dev/null
@@ -0,0 +1,59 @@
+#ifndef __CPPLUGINS__INTERFACE__INTERFACE__H__
+#define __CPPLUGINS__INTERFACE__INTERFACE__H__
+
+#include <map>
+#include <string>
+#include <vector>
+#include <Pluma/Pluma.hpp>
+
+#include <cpPlugins/Interface/Object.h>
+
+namespace cpPlugins
+{
+  namespace Interface
+  {
+    /**
+     */
+    class Interface
+    {
+    public:
+      typedef std::vector< ObjectProvider* >        TProviders;
+      typedef std::map< std::string, unsigned int > TClasses;
+
+      typedef TProviders::const_iterator TProvidersIterator;
+      typedef TClasses::const_iterator   TClassesIterator;
+
+    public:
+      Interface( );
+      virtual ~Interface( );
+
+      /// Plugin access
+      TClasses& GetClasses( );
+      const TClasses& GetClasses( ) const;
+      Object* CreateObject( const std::string& name ) const;
+
+      /// Interface to PLUMA
+      bool Load( const std::string& path );
+      bool Load( const std::string& folder, const std::string& name );
+      int LoadFromFolder( const std::string& folder, bool r = false );
+      bool Unload( const std::string& name );
+      void UnloadAll( );
+      void GetLoadedPlugins( std::vector< const std::string* >& names ) const;
+      bool IsLoaded( const std::string& name ) const;
+
+    protected:
+      void _LoadClasses( );
+
+    protected:
+      pluma::Pluma m_Pluma;
+      TProviders   m_Providers;
+      TClasses     m_Classes;
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __CPPLUGINS__INTERFACE__INTERFACE__H__
+
+// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Mesh.h b/lib/cpPlugins/Interface/Mesh.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/lib/cpPlugins/Interface/MeshToImageFilter.h b/lib/cpPlugins/Interface/MeshToImageFilter.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/lib/cpPlugins/Interface/MeshToMeshFilter.h b/lib/cpPlugins/Interface/MeshToMeshFilter.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/lib/cpPlugins/Interface/Object.cxx b/lib/cpPlugins/Interface/Object.cxx
new file mode 100644 (file)
index 0000000..c0418d3
--- /dev/null
@@ -0,0 +1,25 @@
+#include <cpPlugins/Interface/Object.h>
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::Object::
+Object( )
+{
+}
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::Object::
+~Object( )
+{
+}
+
+// -------------------------------------------------------------------------
+std::string cpPlugins::Interface::Object::
+GetClassName( ) const
+{
+  return( "cpPlugins::Interface::Object" );
+}
+
+// -------------------------------------------------------------------------
+PLUMA_PROVIDER_SOURCE( cpPlugins::Interface::Object, 1, 1 );
+
+// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/Object.h b/lib/cpPlugins/Interface/Object.h
new file mode 100644 (file)
index 0000000..d64ece2
--- /dev/null
@@ -0,0 +1,31 @@
+#ifndef __CPPLUGINS__INTERFACE__OBJECT__H__
+#define __CPPLUGINS__INTERFACE__OBJECT__H__
+
+#include <string>
+#include <Pluma/Pluma.hpp>
+
+namespace cpPlugins
+{
+  namespace Interface
+  {
+    /**
+     */
+    class Object
+    {
+    public:
+      Object( );
+      virtual ~Object( );
+
+      virtual std::string GetClassName( ) const;
+    };
+
+    // TODO: doc
+    PLUMA_PROVIDER_HEADER( Object );
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __CPPLUGINS__INTERFACE__OBJECT__H__
+
+// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ProcessObject.cxx b/lib/cpPlugins/Interface/ProcessObject.cxx
new file mode 100644 (file)
index 0000000..cd88ea6
--- /dev/null
@@ -0,0 +1,91 @@
+#include <cpPlugins/Interface/ProcessObject.h>
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::ProcessObject::
+ProcessObject( )
+  : Superclass( )
+{
+}
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::ProcessObject::
+~ProcessObject( )
+{
+}
+
+// -------------------------------------------------------------------------
+std::string cpPlugins::Interface::ProcessObject::
+GetClassName( ) const
+{
+  return( "cpPlugins::Interface::ProcessObject" );
+}
+
+// -------------------------------------------------------------------------
+const cpPlugins::Interface::ProcessObject::
+TParameters& cpPlugins::Interface::ProcessObject::
+GetDefaultParameters( ) const
+{
+  return( this->m_DefaultParameters );
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Interface::ProcessObject::
+SetParameters( const TParameters& params )
+{
+  this->m_Parameters = params;
+}
+
+// -------------------------------------------------------------------------
+unsigned int cpPlugins::Interface::ProcessObject::
+GetNumberOfInputs( ) const
+{
+  return( this->m_Inputs.size( ) );
+}
+
+// -------------------------------------------------------------------------
+unsigned int cpPlugins::Interface::ProcessObject::
+GetNumberOfOutputs( ) const
+{
+  return( this->m_Outputs.size( ) );
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins::Interface::ProcessObject::
+SetInput(
+  unsigned int idx, const cpPlugins::Interface::DataObject* dobj
+  )
+{
+  if( idx < this->m_Inputs.size( ) )
+    this->m_Inputs[ idx ] = dobj;
+}
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::DataObject* cpPlugins::Interface::ProcessObject::
+GetOutput( unsigned int idx ) const
+{
+  if( idx < this->m_Outputs.size( ) )
+    return( this->m_Outputs[ idx ] );
+  else
+    return( NULL );
+}
+
+// -------------------------------------------------------------------------
+std::string cpPlugins::Interface::ProcessObject::
+Update( )
+{
+  // Force upstream updates
+  for( unsigned int idx = 0; idx < this->m_Inputs.size( ); ++idx )
+    this->m_Inputs->GetSource( )->Update( );
+
+  // Current update
+  std::string ret = this->_GenerateData( );
+
+  // Sync outputs
+  for( unsigned int odx = 0; odx < this->m_Outputs.size( ); ++odx )
+    this->m_Outputs->SetSource( this );
+
+  return( ret );
+}
+
+
+// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/ProcessObject.h b/lib/cpPlugins/Interface/ProcessObject.h
new file mode 100644 (file)
index 0000000..3137913
--- /dev/null
@@ -0,0 +1,59 @@
+#ifndef __CPPLUGINS__INTERFACE__PROCESSOBJECT__H__
+#define __CPPLUGINS__INTERFACE__PROCESSOBJECT__H__
+
+#include <map>
+#include <string>
+#include <cpPlugins/Interface/Object.h>
+
+namespace cpPlugins
+{
+  namespace Interface
+  {
+    class DataObject;
+
+    /**
+     */
+    class ProcessObject
+      : public Object
+    {
+    public:
+      typedef ProcessObject Self;
+      typedef Object        Superclass;
+
+      typedef std::pair< std::string, std::string > TParameter;
+      typedef std::map< std::string, TParameter >   TParameters;
+
+    public:
+      ProcessObject( );
+      virtual ~ProcessObject( );
+
+      virtual std::string GetClassName( ) const;
+      virtual const TParameters& GetDefaultParameters( ) const;
+      virtual void SetParameters( const TParameters& params );
+
+      virtual unsigned int GetNumberOfInputs( ) const;
+      virtual unsigned int GetNumberOfOutputs( ) const;
+
+      virtual void SetInput( unsigned int idx, const DataObject* dobj );
+      virtual DataObject* GetOutput( unsigned int idx ) const;
+
+      virtual std::string Update( );
+
+    protected:
+      virtual std::string _GenerateData( ) = 0;
+
+    protected:
+      TParameters m_DefaultParameters;
+      TParameters m_Parameters;
+
+      std::vector< const DataObject* > m_Inputs;
+      std::vector< DataObject* > m_Outputs;
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __CPPLUGINS__INTERFACE__PROCESSOBJECT__H__
+
+// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/SinkObject.h b/lib/cpPlugins/Interface/SinkObject.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/lib/cpPlugins/Interface/SourceObject.cxx b/lib/cpPlugins/Interface/SourceObject.cxx
new file mode 100644 (file)
index 0000000..b798def
--- /dev/null
@@ -0,0 +1,23 @@
+#include <cpPlugins/Interface/SourceObject.h>
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::SourceObject::
+SourceObject( )
+  : Superclass( )
+{
+}
+
+// -------------------------------------------------------------------------
+cpPlugins::Interface::SourceObject::
+~SourceObject( )
+{
+}
+
+// -------------------------------------------------------------------------
+std::string cpPlugins::Interface::SourceObject::
+GetClassName( ) const
+{
+  return( "cpPlugins::Interface::SourceObject" );
+}
+
+// eof - $RCSfile$
diff --git a/lib/cpPlugins/Interface/SourceObject.h b/lib/cpPlugins/Interface/SourceObject.h
new file mode 100644 (file)
index 0000000..89a5a6b
--- /dev/null
@@ -0,0 +1,35 @@
+#ifndef __CPPLUGINS__INTERFACE__SOURCEOBJECT__H__
+#define __CPPLUGINS__INTERFACE__SOURCEOBJECT__H__
+
+#include <cpPlugins/Interface/ProcessObject.h>
+
+namespace cpPlugins
+{
+  namespace Interface
+  {
+    /**
+     */
+    class SourceObject
+      : public ProcessObject
+    {
+    public:
+      typedef SourceObject  Self;
+      typedef ProcessObject Superclass;
+
+      typedef Superclass::TParameter  TParameter;
+      typedef Superclass::TParameters TParameters;
+
+    public:
+      SourceObject( );
+      virtual ~SourceObject( );
+
+      virtual std::string GetClassName( ) const;
+    };
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __CPPLUGINS__INTERFACE__SOURCEOBJECT__H__
+
+// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/CMakeLists.txt b/lib/cpPlugins/Plugins/CMakeLists.txt
new file mode 100644 (file)
index 0000000..4ac902a
--- /dev/null
@@ -0,0 +1,31 @@
+SET(LIBRARY_NAME cpPlugins)
+
+## ===============
+## = Source code =
+## ===============
+
+FILE(GLOB LIB_HEADERS_H   "*.h")
+FILE(GLOB LIB_HEADERS_HPP "*.hpp")
+FILE(GLOB LIB_HEADERS_HXX "*.hxx")
+FILE(GLOB LIB_SOURCES_C   "*.c")
+FILE(GLOB LIB_SOURCES_CPP "*.cpp")
+FILE(GLOB LIB_SOURCES_CXX "*.cxx")
+
+## =====================
+## = Compilation rules =
+## =====================
+
+ADD_LIBRARY(
+  ${LIBRARY_NAME}
+  SHARED
+  ${LIB_SOURCES_C}
+  ${LIB_SOURCES_CPP}
+  ${LIB_SOURCES_CXX}
+  )
+TARGET_LINK_LIBRARIES(
+  ${LIBRARY_NAME}
+  cpPlugins_Interface
+  ${ITK_LIBRARIES}
+  )
+
+## eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/Host.cxx b/lib/cpPlugins/Plugins/Host.cxx
new file mode 100644 (file)
index 0000000..b4cd940
--- /dev/null
@@ -0,0 +1,14 @@
+#include <Pluma/Connector.hpp>
+#include <cpPlugins/Plugins/ImageReader.h>
+#include <cpPlugins/Plugins/ImageWriter.h>
+
+/// TODO: doc
+PLUMA_CONNECTOR
+bool connect( pluma::Host& host )
+{
+  host.add( new cpPlugins::Plugins::ImageReaderProvider( ) );
+  host.add( new cpPlugins::Plugins::ImageWriterProvider( ) );
+  return( true );
+}
+
+// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/ImageReader.cxx b/lib/cpPlugins/Plugins/ImageReader.cxx
new file mode 100644 (file)
index 0000000..5bc182e
--- /dev/null
@@ -0,0 +1,154 @@
+#include <cpPlugins/Plugins/ImageReader.h>
+
+// TODO: interesting... #define ITK_MANUAL_INSTANTIATION
+#include <itkImage.h>
+#include <itkImageFileReader.h>
+#include <itkRGBPixel.h>
+
+// -------------------------------------------------------------------------
+cpPlugins::Plugins::ImageReader::
+ImageReader( )
+  : Superclass( )
+{
+  this->m_DefaultParameters[ "FileName" ] =
+    TParameter( "string", "no_file_name" );
+  this->m_DefaultParameters[ "PixelType" ] = TParameter( "type", "uchar" );
+  this->m_DefaultParameters[ "ImageDimension" ] = TParameter( "int", "2" );
+  this->m_DefaultParameters[ "IsColorImage" ] = TParameter( "bool", "0" );
+}
+
+// -------------------------------------------------------------------------
+cpPlugins::Plugins::ImageReader::
+~ImageReader( )
+{
+}
+
+// -------------------------------------------------------------------------
+std::string cpPlugins::Plugins::ImageReader::
+GetClassName( ) const
+{
+  return( "cpPlugins::Plugins::ImageReader" );
+}
+
+// -------------------------------------------------------------------------
+bool cpPlugins::Plugins::ImageReader::
+Update( )
+{
+  TParameters::const_iterator dIt;
+
+  // Get image dimension
+  dIt = this->m_Parameters.find( "ImageDimension" );
+  if( dIt == this->m_Parameters.end( ) )
+    dIt = this->m_DefaultParameters.find( "ImageDimension" );
+
+  bool ret = false;
+  if     ( dIt->second.second == "1" ) ret = this->_Update0< 1 >( );
+  else if( dIt->second.second == "2" ) ret = this->_Update0< 2 >( );
+  else if( dIt->second.second == "3" ) ret = this->_Update0< 3 >( );
+  else if( dIt->second.second == "4" ) ret = this->_Update0< 4 >( );
+
+  return( ret );
+}
+
+// -------------------------------------------------------------------------
+template< unsigned int D >
+bool cpPlugins::Plugins::ImageReader::
+_Update0( )
+{
+  TParameters::const_iterator tIt, cIt;
+
+  // Get image pixelType
+  tIt = this->m_Parameters.find( "PixelType" );
+  if( tIt == this->m_Parameters.end( ) )
+    tIt = this->m_DefaultParameters.find( "PixelType" );
+  cIt = this->m_Parameters.find( "IsColorImage" );
+  if( cIt == this->m_Parameters.end( ) )
+    cIt = this->m_DefaultParameters.find( "IsColorImage" );
+
+  bool ret = false;
+  if( cIt->second.second == "0" )
+  {
+    if( tIt->second.second == "char" )
+      ret = this->_Update1< char, D >( );
+    else if( tIt->second.second == "short" )
+      ret = this->_Update1< short, D >( );
+    else if( tIt->second.second == "int" )
+      ret = this->_Update1< int, D >( );
+    else if( tIt->second.second == "long" )
+      ret = this->_Update1< long, D >( );
+    else if( tIt->second.second == "uchar" )
+      ret = this->_Update1< unsigned char, D >( );
+    else if( tIt->second.second == "ushort" )
+      ret = this->_Update1< unsigned short, D >( );
+    else if( tIt->second.second == "uint" )
+      ret = this->_Update1< unsigned int, D >( );
+    else if( tIt->second.second == "ulong" )
+      ret = this->_Update1< unsigned long, D >( );
+    else if( tIt->second.second == "float" )
+      ret = this->_Update1< float, D >( );
+    else if( tIt->second.second == "double" )
+      ret = this->_Update1< double, D >( );
+  }
+  else if( cIt->second.second == "1" )
+  {
+    if( tIt->second.second == "char" )
+      ret = this->_Update1< itk::RGBPixel< char >, D >( );
+    else if( tIt->second.second == "short" )
+      ret = this->_Update1< itk::RGBPixel< short >, D >( );
+    else if( tIt->second.second == "int" )
+      ret = this->_Update1< itk::RGBPixel< int >, D >( );
+    else if( tIt->second.second == "long" )
+      ret = this->_Update1< itk::RGBPixel< long >, D >( );
+    else if( tIt->second.second == "uchar" )
+      ret = this->_Update1< itk::RGBPixel< unsigned char >, D >( );
+    else if( tIt->second.second == "ushort" )
+      ret = this->_Update1< itk::RGBPixel< unsigned short >, D >( );
+    else if( tIt->second.second == "uint" )
+      ret = this->_Update1< itk::RGBPixel< unsigned int >, D >( );
+    else if( tIt->second.second == "ulong" )
+      ret = this->_Update1< itk::RGBPixel< unsigned long >, D >( );
+    else if( tIt->second.second == "float" )
+      ret = this->_Update1< itk::RGBPixel< float >, D >( );
+    else if( tIt->second.second == "double" )
+      ret = this->_Update1< itk::RGBPixel< double >, D >( );
+  } // fi
+  return( ret );
+}
+
+// -------------------------------------------------------------------------
+template< class P, unsigned int D >
+bool cpPlugins::Plugins::ImageReader::
+_Update1( )
+{
+  TParameters::const_iterator fIt;
+
+  // Get image pixelType
+  fIt = this->m_Parameters.find( "FileName" );
+  if( fIt == this->m_Parameters.end( ) )
+    fIt = this->m_DefaultParameters.find( "FileName" );
+
+  typedef itk::Image< P, D > _TImage;
+  typedef itk::ImageFileReader< _TImage > _TImageReader;
+
+  _TImageReader* reader =
+    dynamic_cast< _TImageReader* >( this->m_Reader.GetPointer( ) );
+  if( reader == NULL )
+  {
+    this->m_Reader = _TImageReader::New( );
+    reader = dynamic_cast< _TImageReader* >( this->m_Reader.GetPointer( ) );
+
+  } // fi
+  reader->SetFileName( fIt->second.second );
+  try
+  {
+    reader->Update( );
+  }
+  catch( itk::ExceptionObject& err )
+  {
+    return( false );
+
+  } // yrt
+  return( true );
+}
+
+// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/ImageReader.h b/lib/cpPlugins/Plugins/ImageReader.h
new file mode 100644 (file)
index 0000000..6110c92
--- /dev/null
@@ -0,0 +1,52 @@
+#ifndef __CPPLUGINS__PLUGINS__IMAGEREADER__H__
+#define __CPPLUGINS__PLUGINS__IMAGEREADER__H__
+
+#include <cpPlugins/Interface/SourceObject.h>
+#include <itkProcessObject.h>
+
+namespace cpPlugins
+{
+  namespace Plugins
+  {
+    /**
+     */
+    class ImageReader
+      : public cpPlugins::Interface::SourceObject
+    {
+    public:
+      typedef ImageReader                        Self;
+      typedef cpPlugins::Interface::SourceObject Superclass;
+
+      typedef Superclass::TParameter  TParameter;
+      typedef Superclass::TParameters TParameters;
+
+    public:
+      ImageReader( );
+      virtual ~ImageReader( );
+
+      virtual std::string GetClassName( ) const;
+
+    protected:
+
+      virtual bool _GenerateData( );
+
+      template< unsigned int D >
+      bool _GenerateData0( );
+
+      template< class P, unsigned int D >
+      bool _GenerateData1( );
+
+    protected:
+      itk::ProcessObject::Pointer m_Reader;
+    };
+
+    // ---------------------------------------------------------------------
+    PLUMA_INHERIT_PROVIDER( ImageReader, cpPlugins::Interface::Object );
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __CPPLUGINS__PLUGINS__IMAGEREADER__H__
+
+// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/ImageWriter.cxx b/lib/cpPlugins/Plugins/ImageWriter.cxx
new file mode 100644 (file)
index 0000000..3dd319a
--- /dev/null
@@ -0,0 +1,30 @@
+#include <cpPlugins/Plugins/ImageWriter.h>
+
+// -------------------------------------------------------------------------
+cpPlugins::Plugins::ImageWriter::
+ImageWriter( )
+  : Superclass( )
+{
+}
+
+// -------------------------------------------------------------------------
+cpPlugins::Plugins::ImageWriter::
+~ImageWriter( )
+{
+}
+
+// -------------------------------------------------------------------------
+std::string cpPlugins::Plugins::ImageWriter::
+GetClassName( ) const
+{
+  return( "cpPlugins::Plugins::ImageWriter" );
+}
+
+// -------------------------------------------------------------------------
+bool cpPlugins::Plugins::ImageWriter::
+Update( )
+{
+  return( false );
+}
+
+// eof - $RCSfile$
diff --git a/lib/cpPlugins/Plugins/ImageWriter.h b/lib/cpPlugins/Plugins/ImageWriter.h
new file mode 100644 (file)
index 0000000..af80058
--- /dev/null
@@ -0,0 +1,39 @@
+#ifndef __CPPLUGINS__PLUGINS__IMAGEWRITER__H__
+#define __CPPLUGINS__PLUGINS__IMAGEWRITER__H__
+
+#include <cpPlugins/Interface/SourceObject.h>
+
+namespace cpPlugins
+{
+  namespace Plugins
+  {
+    /**
+     */
+    class ImageWriter
+      : public cpPlugins::Interface::SourceObject
+    {
+    public:
+      typedef ImageWriter                        Self;
+      typedef cpPlugins::Interface::SourceObject Superclass;
+
+      typedef Superclass::TParameter  TParameter;
+      typedef Superclass::TParameters TParameters;
+
+    public:
+      ImageWriter( );
+      virtual ~ImageWriter( );
+
+      virtual std::string GetClassName( ) const;
+      virtual bool Update( );
+    };
+
+    // ---------------------------------------------------------------------
+    PLUMA_INHERIT_PROVIDER( ImageWriter, cpPlugins::Interface::Object );
+
+  } // ecapseman
+
+} // ecapseman
+
+#endif // __CPPLUGINS__PLUGINS__IMAGEWRITER__H__
+
+// eof - $RCSfile$
diff --git a/lib/third_party/CMakeLists.txt b/lib/third_party/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1dd3f14
--- /dev/null
@@ -0,0 +1,5 @@
+SUBDIRS(
+  Pluma
+  )
+
+## eof - $RCSfile$
diff --git a/lib/third_party/Pluma/CMakeLists.txt b/lib/third_party/Pluma/CMakeLists.txt
new file mode 100644 (file)
index 0000000..9f936e1
--- /dev/null
@@ -0,0 +1,30 @@
+SET(LIBRARY_NAME cpPlugins_Pluma)
+
+## ===============
+## = Source code =
+## ===============
+
+FILE(GLOB LIB_HEADERS_H   "*.h")
+FILE(GLOB LIB_HEADERS_HPP "*.hpp")
+FILE(GLOB LIB_HEADERS_HXX "*.hxx")
+FILE(GLOB LIB_SOURCES_C   "*.c")
+FILE(GLOB LIB_SOURCES_CPP "*.cpp")
+FILE(GLOB LIB_SOURCES_CXX "*.cxx")
+
+## =====================
+## = Compilation rules =
+## =====================
+
+ADD_LIBRARY(
+  ${LIBRARY_NAME}
+  SHARED
+  ${LIB_SOURCES_C}
+  ${LIB_SOURCES_CPP}
+  ${LIB_SOURCES_CXX}
+  )
+TARGET_LINK_LIBRARIES(
+  ${LIBRARY_NAME}
+  dl
+  )
+
+## eof - $RCSfile$
diff --git a/lib/third_party/Pluma/Config.hpp b/lib/third_party/Pluma/Config.hpp
new file mode 100644 (file)
index 0000000..efd98c9
--- /dev/null
@@ -0,0 +1,141 @@
+////////////////////////////////////////////////////////////\r
+//\r
+// Pluma - Plug-in Management Framework\r
+// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+//\r
+// This software is provided 'as-is', without any express or implied warranty.\r
+// In no event will the authors be held liable for any damages arising from the use of this software.\r
+//\r
+// Permission is granted to anyone to use this software for any purpose,\r
+// including commercial applications, and to alter it and redistribute it freely,\r
+// subject to the following restrictions:\r
+//\r
+// 1. The origin of this software must not be misrepresented;\r
+//    you must not claim that you wrote the original software.\r
+//    If you use this software in a product, an acknowledgment\r
+//    in the product documentation would be appreciated but is not required.\r
+//\r
+// 2. Altered source versions must be plainly marked as such,\r
+//    and must not be misrepresented as being the original software.\r
+//\r
+// 3. This notice may not be removed or altered from any source distribution.\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+//\r
+// Based on SFML configuration header\r
+// SFML Config.hpp:\r
+// http://www.sfml-dev.org/documentation/2.0/Config_8hpp-source.htm\r
+//\r
+// Acknowledgements to Simple and Fast Multimedia Library\r
+// http://www.sfml-dev.org/\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+\r
+#ifndef PLUMA_CONFIG_HPP\r
+#define PLUMA_CONFIG_HPP\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+// Identify the operating system\r
+////////////////////////////////////////////////////////////\r
+#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)\r
+\r
+    // Windows\r
+    #define PLUMA_SYS_WINDOWS\r
+    #ifndef WIN32_LEAN_AND_MEAN\r
+        #define WIN32_LEAN_AND_MEAN\r
+    #endif\r
+    #ifndef NOMINMAX\r
+        #define NOMINMAX\r
+    #endif\r
+\r
+#elif defined(linux) || defined(__linux)\r
+\r
+    // Linux\r
+    #define PLUMA_SYS_LINUX\r
+\r
+#elif defined(__APPLE__) || defined(MACOSX) || defined(macintosh) || defined(Macintosh)\r
+\r
+    // MacOS\r
+    #define PLUMA_SYS_MACOS\r
+\r
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)\r
+\r
+    // FreeBSD\r
+    #define PLUMA_SYS_FREEBSD\r
+\r
+#else\r
+\r
+    // Unsupported system\r
+    #error This operating system is not supported by this library\r
+\r
+#endif\r
+\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+// Define library file extension based on OS\r
+////////////////////////////////////////////////////////////\r
+#ifdef PLUMA_SYS_WINDOWS\r
+     #define PLUMA_LIB_EXTENSION "dll"\r
+#elif defined(PLUMA_SYS_MACOS)\r
+     #define PLUMA_LIB_EXTENSION "dylib"\r
+#elif defined(PLUMA_SYS_LINUX) || defined(PLUMA_SYS_FREEBSD)\r
+     #define PLUMA_LIB_EXTENSION "so"\r
+#else\r
+   // unknown library file type\r
+    #error Unknown library file extension for this operating system\r
+#endif\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+// Define portable import / export macros\r
+////////////////////////////////////////////////////////////\r
+#if defined(PLUMA_SYS_WINDOWS)\r
+\r
+    #ifndef PLUMA_STATIC\r
+\r
+        // Windows platforms\r
+        #ifdef PLUMA_EXPORTS\r
+\r
+            // From DLL side, we must export\r
+            #define PLUMA_API __declspec(dllexport)\r
+\r
+        #else\r
+\r
+            // From client application side, we must import\r
+            #define PLUMA_API __declspec(dllimport)\r
+\r
+        #endif\r
+\r
+        // For Visual C++ compilers, we also need to turn off this annoying C4251 warning.\r
+        // You can read lots ot different things about it, but the point is the code will\r
+        // just work fine, and so the simplest way to get rid of this warning is to disable it\r
+        #ifdef _MSC_VER\r
+\r
+            #pragma warning(disable : 4251)\r
+\r
+        #endif\r
+\r
+    #else\r
+\r
+        // No specific directive needed for static build\r
+        #define PLUMA_API\r
+\r
+    #endif\r
+\r
+#else\r
+\r
+    // Other platforms don't need to define anything\r
+    #define PLUMA_API\r
+\r
+#endif\r
+\r
+\r
+\r
+\r
+#endif // PLUMA_CONFIG_HPP\r
diff --git a/lib/third_party/Pluma/Connector.hpp b/lib/third_party/Pluma/Connector.hpp
new file mode 100644 (file)
index 0000000..3c227e7
--- /dev/null
@@ -0,0 +1,86 @@
+////////////////////////////////////////////////////////////\r
+//\r
+// Pluma - Plug-in Management Framework\r
+// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+//\r
+// This software is provided 'as-is', without any express or implied warranty.\r
+// In no event will the authors be held liable for any damages arising from the use of this software.\r
+//\r
+// Permission is granted to anyone to use this software for any purpose,\r
+// including commercial applications, and to alter it and redistribute it freely,\r
+// subject to the following restrictions:\r
+//\r
+// 1. The origin of this software must not be misrepresented;\r
+//    you must not claim that you wrote the original software.\r
+//    If you use this software in a product, an acknowledgment\r
+//    in the product documentation would be appreciated but is not required.\r
+//\r
+// 2. Altered source versions must be plainly marked as such,\r
+//    and must not be misrepresented as being the original software.\r
+//\r
+// 3. This notice may not be removed or altered from any source distribution.\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+#ifndef PLUMA_CONNECTOR_HPP\r
+#define PLUMA_CONNECTOR_HPP\r
+\r
+////////////////////////////////////////////////////////////\r
+// Headers\r
+////////////////////////////////////////////////////////////\r
+#include <Pluma/Config.hpp>\r
+#include <Pluma/Pluma.hpp>\r
+\r
+\r
+/////////////////////////////////////////////////////////////////\r
+// Define portable import/export macros for Plugin registration\r
+/////////////////////////////////////////////////////////////////\r
+#if defined(PLUMA_SYS_WINDOWS)\r
+\r
+    #ifndef PLUMA_STATIC_PLUGIN\r
+\r
+         // Windows platforms\r
+        #ifndef PLUGIN_IMPORTS\r
+\r
+            // From DLL side, we must export\r
+            #ifdef __cplusplus\r
+               #define PLUMA_CONNECTOR extern "C" __declspec(dllexport)\r
+            #else\r
+               #define PLUMA_CONNECTOR __declspec(dllexport)\r
+            #endif\r
+\r
+        #else\r
+\r
+            // From client application side, we must import\r
+            #ifdef __cplusplus\r
+               #define PLUMA_CONNECTOR extern "C" __declspec(dllimport)\r
+            #else\r
+               #define PLUMA_CONNECTOR __declspec(dllimport)\r
+            #endif\r
+\r
+        #endif\r
+\r
+    #else\r
+\r
+        // Only define the extern "C" for static build\r
+        #ifdef __cplusplus\r
+           #define PLUMA_CONNECTOR extern "C"\r
+        #else\r
+           #define PLUMA_CONNECTOR\r
+        #endif\r
+\r
+    #endif\r
+\r
+#else\r
+\r
+    // Only define the extern "C" for other platforms\r
+    #ifdef __cplusplus\r
+       #define PLUMA_CONNECTOR extern "C"\r
+    #else\r
+       #define PLUMA_CONNECTOR\r
+    #endif\r
+\r
+#endif\r
+\r
+\r
+#endif // PLUMA_CONNECTOR_HPP\r
diff --git a/lib/third_party/Pluma/DLibrary.cpp b/lib/third_party/Pluma/DLibrary.cpp
new file mode 100644 (file)
index 0000000..9b617db
--- /dev/null
@@ -0,0 +1,106 @@
+////////////////////////////////////////////////////////////\r
+//\r
+// Pluma - Plug-in Management Framework\r
+// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+//\r
+// This software is provided 'as-is', without any express or implied warranty.\r
+// In no event will the authors be held liable for any damages arising from the use of this software.\r
+//\r
+// Permission is granted to anyone to use this software for any purpose,\r
+// including commercial applications, and to alter it and redistribute it freely,\r
+// subject to the following restrictions:\r
+//\r
+// 1. The origin of this software must not be misrepresented;\r
+//    you must not claim that you wrote the original software.\r
+//    If you use this software in a product, an acknowledgment\r
+//    in the product documentation would be appreciated but is not required.\r
+//\r
+// 2. Altered source versions must be plainly marked as such,\r
+//    and must not be misrepresented as being the original software.\r
+//\r
+// 3. This notice may not be removed or altered from any source distribution.\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+// Headers\r
+////////////////////////////////////////////////////////////\r
+#include <Pluma/DLibrary.hpp>\r
+#include <cstdio>\r
+#include <string>\r
+\r
+\r
+namespace pluma{\r
+\r
+////////////////////////////////////////////////////////////\r
+DLibrary* DLibrary::load(const std::string& path){\r
+    if ( path.empty() ){\r
+        fprintf(stderr, "Failed to load library: Empty path\n");\r
+        return NULL;\r
+    }\r
+    void* handle = NULL;\r
+\r
+    // load library - OS dependent operation\r
+    #ifdef PLUMA_SYS_WINDOWS\r
+        handle = ::LoadLibraryA(path.c_str());\r
+        if (!handle){\r
+            fprintf(stderr, "Failed to load library \"%s\".\n", path.c_str());\r
+            return NULL;\r
+        }\r
+    #else\r
+        handle = ::dlopen(path.c_str(), RTLD_NOW);\r
+        if (!handle){\r
+            const char* errorString = ::dlerror();\r
+            fprintf(stderr, "Failed to load library \"%s\".", path.c_str());\r
+            if(errorString) fprintf(stderr, " OS returned error: \"%s\".", errorString);\r
+            fprintf(stderr, "\n");\r
+            return NULL;\r
+        }\r
+    #endif\r
+    // return a DLibrary with the DLL handle\r
+    return new DLibrary(handle);\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+DLibrary::~DLibrary(){\r
+    if (handle){\r
+        #ifdef PLUMA_SYS_WINDOWS\r
+            ::FreeLibrary( (HMODULE)handle );\r
+        #else\r
+            ::dlclose(handle);\r
+        #endif\r
+    }\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+void* DLibrary::getSymbol(const std::string& symbol){\r
+    if (!handle){\r
+        fprintf(stderr, "Cannot inspect library symbols, library isn't loaded.\n");\r
+        return NULL;\r
+    }\r
+    void* res;\r
+    #ifdef PLUMA_SYS_WINDOWS\r
+        res = (void*)(::GetProcAddress((HMODULE)handle, symbol.c_str()));\r
+    #else\r
+        res = (void*)(::dlsym(handle, symbol.c_str()));\r
+    #endif\r
+    if (!res){\r
+        fprintf(stderr, "Library symbol \"%s\" not found.\n", symbol.c_str());\r
+        return NULL;\r
+    }\r
+    return res;\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+DLibrary::DLibrary(void* handle):\r
+    handle(handle)\r
+{\r
+    // Nothing to do\r
+}\r
+\r
+}   // namespace pluma\r
+\r
diff --git a/lib/third_party/Pluma/DLibrary.hpp b/lib/third_party/Pluma/DLibrary.hpp
new file mode 100644 (file)
index 0000000..1bb9bac
--- /dev/null
@@ -0,0 +1,123 @@
+////////////////////////////////////////////////////////////\r
+//\r
+// Pluma - Plug-in Management Framework\r
+// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+//\r
+// This software is provided 'as-is', without any express or implied warranty.\r
+// In no event will the authors be held liable for any damages arising from the use of this software.\r
+//\r
+// Permission is granted to anyone to use this software for any purpose,\r
+// including commercial applications, and to alter it and redistribute it freely,\r
+// subject to the following restrictions:\r
+//\r
+// 1. The origin of this software must not be misrepresented;\r
+//    you must not claim that you wrote the original software.\r
+//    If you use this software in a product, an acknowledgment\r
+//    in the product documentation would be appreciated but is not required.\r
+//\r
+// 2. Altered source versions must be plainly marked as such,\r
+//    and must not be misrepresented as being the original software.\r
+//\r
+// 3. This notice may not be removed or altered from any source distribution.\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+#ifndef PLUMA_DYNAMIC_LIBRARY_HPP\r
+#define PLUMA_DYNAMIC_LIBRARY_HPP\r
+\r
+////////////////////////////////////////////////////////////\r
+// Headers\r
+////////////////////////////////////////////////////////////\r
+#include <Pluma/Config.hpp>\r
+#include <string>\r
+\r
+// include OS dependent support for DLL\r
+#ifdef PLUMA_SYS_WINDOWS\r
+    #include <Windows.h>\r
+#else\r
+    #include <dlfcn.h>\r
+#endif\r
+\r
+\r
+\r
+namespace pluma{\r
+\r
+////////////////////////////////////////////////////////////\r
+/// \brief Manages a Dynamic Linking Library.\r
+///\r
+////////////////////////////////////////////////////////////\r
+class DLibrary{\r
+\r
+\r
+public:\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Load a library.\r
+    ///\r
+    /// \param path Path to the library.\r
+    ///\r
+    /// \return Pointer to the loaded library, or NULL if failed.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    static DLibrary* load(const std::string& path);\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Destructor.\r
+    ///\r
+    /// Close and free the opened library (if any).\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    ~DLibrary();\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Get a symbol from the library.\r
+    ///\r
+    /// \param symbol Symbol that we're looking for.\r
+    ///\r
+    /// \return Pointer to what the symbol refers to, or NULL if\r
+    /// the symbol is not found.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    void* getSymbol(const std::string& symbol);\r
+\r
+\r
+private:\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Default constructor.\r
+    ///\r
+    /// Library instances cannot be created, use load instead.\r
+    ///\r
+    /// \see load\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    DLibrary();\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Constructor via library handle.\r
+    ///\r
+    /// Used on load function.\r
+    ///\r
+    /// \see load\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    DLibrary(void* handle);\r
+\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+// Member data\r
+////////////////////////////////////////////////////////////\r
+\r
+\r
+private:\r
+\r
+    void* handle; ///< Library handle.\r
+\r
+};\r
+\r
+\r
+}   // namespace pluma\r
+\r
+\r
+#endif // PLUMA_DYNAMIC_LIBRARY_HPP\r
diff --git a/lib/third_party/Pluma/Dir.cpp b/lib/third_party/Pluma/Dir.cpp
new file mode 100644 (file)
index 0000000..860220e
--- /dev/null
@@ -0,0 +1,103 @@
+////////////////////////////////////////////////////////////\r
+//\r
+// Pluma - Plug-in Management Framework\r
+// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+//\r
+// This software is provided 'as-is', without any express or implied warranty.\r
+// In no event will the authors be held liable for any damages arising from the use of this software.\r
+//\r
+// Permission is granted to anyone to use this software for any purpose,\r
+// including commercial applications, and to alter it and redistribute it freely,\r
+// subject to the following restrictions:\r
+//\r
+// 1. The origin of this software must not be misrepresented;\r
+//    you must not claim that you wrote the original software.\r
+//    If you use this software in a product, an acknowledgment\r
+//    in the product documentation would be appreciated but is not required.\r
+//\r
+// 2. Altered source versions must be plainly marked as such,\r
+//    and must not be misrepresented as being the original software.\r
+//\r
+// 3. This notice may not be removed or altered from any source distribution.\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+// Headers\r
+////////////////////////////////////////////////////////////\r
+#include <Pluma/Dir.hpp>\r
+#include <Pluma/uce-dirent.h>\r
+#include <cstdio>\r
+#include <queue>\r
+\r
+\r
+namespace pluma{\r
+\r
+namespace dir{\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+void listFiles(std::list<std::string>& list, const std::string& folder, const std::string& extension, bool recursive){\r
+    DIR* dir;\r
+    DIR* subDir;\r
+    struct dirent *ent;\r
+    // try to open top folder\r
+    dir = opendir(folder.c_str());\r
+    if (dir == NULL){\r
+        // could not open directory\r
+      fprintf(stderr, "Could not open \"%s\" directory.\n", folder.c_str());\r
+      return;\r
+    }else{\r
+        // close, we'll process it next\r
+        closedir(dir);\r
+    }\r
+    // enqueue top folder\r
+    std::queue<std::string> folders;\r
+    folders.push(folder);\r
+\r
+    // run while has queued folders\r
+    while (!folders.empty()){\r
+        std::string currFolder = folders.front();\r
+        folders.pop();\r
+        dir = opendir(currFolder.c_str());\r
+        if (dir == NULL) continue;\r
+        // iterate through all the files and directories\r
+        while ((ent = readdir (dir)) != NULL) {\r
+            std::string name(ent->d_name);\r
+            // ignore "." and ".." directories\r
+            if ( name.compare(".") == 0 || name.compare("..") == 0) continue;\r
+            // add path to the file name\r
+            std::string path = currFolder;\r
+            path.append("/");\r
+            path.append(name);\r
+            // check if it's a folder by trying to open it\r
+            subDir = opendir(path.c_str());\r
+            if (subDir != NULL){\r
+                // it's a folder: close, we can process it later\r
+                closedir(subDir);\r
+                if (recursive) folders.push(path);\r
+            }else{\r
+                // it's a file\r
+                if (extension.empty()){\r
+                    list.push_back(path);\r
+                }else{\r
+                    // check file extension\r
+                    size_t lastDot = name.find_last_of('.');\r
+                    std::string ext = name.substr(lastDot+1);\r
+                    if (ext.compare(extension) == 0){\r
+                        // match\r
+                        list.push_back(path);\r
+                    }\r
+                } // endif (extension test)\r
+            } // endif (folder test)\r
+        } // endwhile (nextFile)\r
+        closedir(dir);\r
+    } // endwhile (queued folders)\r
+\r
+} // end listFiles\r
+\r
+\r
+}   // namespace dir\r
+\r
+}   // namespace pluma\r
diff --git a/lib/third_party/Pluma/Dir.hpp b/lib/third_party/Pluma/Dir.hpp
new file mode 100644 (file)
index 0000000..a94c477
--- /dev/null
@@ -0,0 +1,64 @@
+////////////////////////////////////////////////////////////\r
+//\r
+// Pluma - Plug-in Management Framework\r
+// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+//\r
+// This software is provided 'as-is', without any express or implied warranty.\r
+// In no event will the authors be held liable for any damages arising from the use of this software.\r
+//\r
+// Permission is granted to anyone to use this software for any purpose,\r
+// including commercial applications, and to alter it and redistribute it freely,\r
+// subject to the following restrictions:\r
+//\r
+// 1. The origin of this software must not be misrepresented;\r
+//    you must not claim that you wrote the original software.\r
+//    If you use this software in a product, an acknowledgment\r
+//    in the product documentation would be appreciated but is not required.\r
+//\r
+// 2. Altered source versions must be plainly marked as such,\r
+//    and must not be misrepresented as being the original software.\r
+//\r
+// 3. This notice may not be removed or altered from any source distribution.\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+#ifndef PLUMA_DIRECTORY_HPP\r
+#define PLUMA_DIRECTORY_HPP\r
+\r
+////////////////////////////////////////////////////////////\r
+// Headers\r
+////////////////////////////////////////////////////////////\r
+#include <Pluma/Config.hpp>\r
+#include <string>\r
+#include <list>\r
+\r
+\r
+namespace pluma{\r
+\r
+namespace dir{\r
+\r
+////////////////////////////////////////////////////////////\r
+/// \brief List files of a directory.\r
+///\r
+/// \param list The output files list.\r
+/// \param folder The folder where to search in\r
+/// \param extension A file extension filter,\r
+/// empty extension will match all files.\r
+/// \param recursive If true it will list files in\r
+/// sub directories as well.\r
+///\r
+////////////////////////////////////////////////////////////\r
+void listFiles(\r
+    std::list<std::string>& list,\r
+    const std::string& folder,\r
+    const std::string& extension = "",\r
+    bool recursive = false\r
+);\r
+\r
+\r
+}   // namespace dir\r
+\r
+}   // namespace pluma\r
+\r
+\r
+#endif // PLUMA_DIRECTORY_HPP\r
diff --git a/lib/third_party/Pluma/Host.cpp b/lib/third_party/Pluma/Host.cpp
new file mode 100644 (file)
index 0000000..eb37c33
--- /dev/null
@@ -0,0 +1,179 @@
+////////////////////////////////////////////////////////////\r
+//\r
+// Pluma - Plug-in Management Framework\r
+// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+//\r
+// This software is provided 'as-is', without any express or implied warranty.\r
+// In no event will the authors be held liable for any damages arising from the use of this software.\r
+//\r
+// Permission is granted to anyone to use this software for any purpose,\r
+// including commercial applications, and to alter it and redistribute it freely,\r
+// subject to the following restrictions:\r
+//\r
+// 1. The origin of this software must not be misrepresented;\r
+//    you must not claim that you wrote the original software.\r
+//    If you use this software in a product, an acknowledgment\r
+//    in the product documentation would be appreciated but is not required.\r
+//\r
+// 2. Altered source versions must be plainly marked as such,\r
+//    and must not be misrepresented as being the original software.\r
+//\r
+// 3. This notice may not be removed or altered from any source distribution.\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+// Headers\r
+////////////////////////////////////////////////////////////\r
+#include <Pluma/Host.hpp>\r
+#include <cstdio>\r
+\r
+\r
+namespace pluma{\r
+\r
+////////////////////////////////////////////////////////////\r
+Host::Host(){\r
+    // Nothing to do\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+bool Host::add(Provider* provider){\r
+    if (provider == NULL){\r
+        fprintf(stderr, "Trying to add a null provider.\n");\r
+        return false;\r
+    }\r
+    if (!validateProvider(provider)){\r
+        delete provider;\r
+        return false;\r
+    }\r
+    addRequests[ provider->plumaGetType() ].push_back(provider);\r
+    return true;\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+Host::~Host(){\r
+    clearProviders();\r
+    // map frees itself\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+void Host::clearProviders(){\r
+    ProvidersMap::iterator it;\r
+    for (it = knownTypes.begin() ; it != knownTypes.end() ; ++it){\r
+        std::list<Provider*>& providers = it->second.providers;\r
+        std::list<Provider*>::iterator provIt;\r
+        for (provIt = providers.begin() ; provIt != providers.end() ; ++provIt){\r
+            delete *provIt;\r
+        }\r
+        std::list<Provider*>().swap(providers);\r
+    }\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+bool Host::knows(const std::string& type) const{\r
+    return knownTypes.find(type) != knownTypes.end();\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+unsigned int Host::getVersion(const std::string& type) const{\r
+    ProvidersMap::const_iterator it = knownTypes.find(type);\r
+    if (it != knownTypes.end())\r
+        return it->second.version;\r
+    return 0;\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+unsigned int Host::getLowestVersion(const std::string& type) const{\r
+    ProvidersMap::const_iterator it = knownTypes.find(type);\r
+    if (it != knownTypes.end())\r
+        return it->second.lowestVersion;\r
+    return 0;\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+void Host::registerType(const std::string& type, unsigned int version, unsigned int lowestVersion){\r
+    if (!knows(type)){\r
+        ProviderInfo pi;\r
+        pi.version = version;\r
+        pi.lowestVersion = lowestVersion;\r
+        knownTypes[type] = pi;\r
+    }\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+const std::list<Provider*>* Host::getProviders(const std::string& type) const{\r
+    ProvidersMap::const_iterator it = knownTypes.find(type);\r
+    if (it != knownTypes.end())\r
+        return &it->second.providers;\r
+    return NULL;\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+bool Host::validateProvider(Provider* provider) const{\r
+    const std::string& type = provider->plumaGetType();\r
+    if ( !knows(type) ){\r
+        fprintf(stderr, "%s provider type isn't registered.\n", type.c_str());\r
+        return false;\r
+    }\r
+    if (!provider->isCompatible(*this)){\r
+        fprintf(stderr, "Incompatible %s provider version.\n", type.c_str());\r
+        return false;\r
+    }\r
+    return true;\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+bool Host::registerProvider(Provider* provider){\r
+    if (!validateProvider(provider)){\r
+        delete provider;\r
+        return false;\r
+    }\r
+    knownTypes[ provider->plumaGetType() ].providers.push_back(provider);\r
+    return true;\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+void Host::cancelAddictions(){\r
+    TempProvidersMap::iterator it;\r
+    for( it = addRequests.begin() ; it != addRequests.end() ; ++it){\r
+        std::list<Provider*> lst = it->second;\r
+        std::list<Provider*>::iterator providerIt;\r
+        for (providerIt = lst.begin() ; providerIt != lst.end() ; ++providerIt){\r
+            delete *providerIt;\r
+        }\r
+    }\r
+    // clear map\r
+    TempProvidersMap().swap(addRequests);\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+bool Host::confirmAddictions(){\r
+    if (addRequests.empty()) return false;\r
+    TempProvidersMap::iterator it;\r
+    for( it = addRequests.begin() ; it != addRequests.end() ; ++it){\r
+        std::list<Provider*> lst = it->second;\r
+        std::list<Provider*>::iterator providerIt;\r
+        for (providerIt = lst.begin() ; providerIt != lst.end() ; ++providerIt){\r
+            knownTypes[it->first].providers.push_back(*providerIt);\r
+        }\r
+    }\r
+    // clear map\r
+    TempProvidersMap().swap(addRequests);\r
+    return true;\r
+}\r
+\r
+\r
+} //namespace pluma\r
diff --git a/lib/third_party/Pluma/Host.hpp b/lib/third_party/Pluma/Host.hpp
new file mode 100644 (file)
index 0000000..cf049f5
--- /dev/null
@@ -0,0 +1,212 @@
+////////////////////////////////////////////////////////////\r
+//\r
+// Pluma - Plug-in Management Framework\r
+// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+//\r
+// This software is provided 'as-is', without any express or implied warranty.\r
+// In no event will the authors be held liable for any damages arising from the use of this software.\r
+//\r
+// Permission is granted to anyone to use this software for any purpose,\r
+// including commercial applications, and to alter it and redistribute it freely,\r
+// subject to the following restrictions:\r
+//\r
+// 1. The origin of this software must not be misrepresented;\r
+//    you must not claim that you wrote the original software.\r
+//    If you use this software in a product, an acknowledgment\r
+//    in the product documentation would be appreciated but is not required.\r
+//\r
+// 2. Altered source versions must be plainly marked as such,\r
+//    and must not be misrepresented as being the original software.\r
+//\r
+// 3. This notice may not be removed or altered from any source distribution.\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+#ifndef PLUMA_HOST_HPP\r
+#define PLUMA_HOST_HPP\r
+\r
+////////////////////////////////////////////////////////////\r
+// Headers\r
+////////////////////////////////////////////////////////////\r
+#include <Pluma/Config.hpp>\r
+#include <Pluma/Provider.hpp>\r
+\r
+#include <vector>\r
+#include <list>\r
+#include <map>\r
+\r
+namespace pluma{\r
+\r
+////////////////////////////////////////////////////////////\r
+/// \brief Manages providers.\r
+///\r
+////////////////////////////////////////////////////////////\r
+class PLUMA_API Host{\r
+friend class PluginManager;\r
+friend class Provider;\r
+\r
+\r
+public:\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Add provider.\r
+    ///\r
+    /// Provider type and version are checked. Only known and\r
+    /// valid provider types are accepted.\r
+    ///\r
+    /// \param provider Provider to be added.\r
+    ///\r
+    /// \return True if the provider is accepted.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    bool add(Provider* provider);\r
+\r
+\r
+private:\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Default constructor.\r
+    ///\r
+    /// New Host instances are not publicly allowed.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    Host();\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Destructor.\r
+    ///\r
+    /// Clears all hosted providers\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    ~Host();\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Ckeck if a provider type is registered.\r
+    ///\r
+    /// \param type Provider type id.\r
+    ///\r
+    /// \return True if the type is registered\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    bool knows(const std::string& type) const;\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Get version of a type of providers.\r
+    ///\r
+    /// \param type Provider type.\r
+    ///\r
+    /// \return The version of the provider type.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    unsigned int getVersion(const std::string& type) const;\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Get lowest compatible version of a type of providers.\r
+    ///\r
+    /// \param type Provider type.\r
+    ///\r
+    /// \return The lowest compatible version of the provider type.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    unsigned int getLowestVersion(const std::string& type) const;\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Register a type of providers.\r
+    ///\r
+    /// \param type Provider type.\r
+    /// \param version Current version of that provider type.\r
+    /// \param lowestVersion Lowest compatible version of that provider type.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    void registerType(const std::string& type, unsigned int version, unsigned int lowestVersion);\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Get providers of a certain type.\r
+    ///\r
+    /// \param type Provider type.\r
+    ///\r
+    /// \return Pointer to the list of providers of that \a type,\r
+    /// or NULL if \a type is not registered.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    const std::list<Provider*>* getProviders(const std::string& type) const;\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Clears all hosted providers.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    void clearProviders();\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Validate provider type and version.\r
+    ///\r
+    /// \return True if the provider is acceptable.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    bool validateProvider(Provider* provider) const;\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Clearly add a provider.\r
+    ///\r
+    /// Provider type and version are checked. Only known and\r
+    /// valid provider types are accepted.\r
+    /// If acepted, provider is directly stored.\r
+    ///\r
+    /// \param provider Provider to be added.\r
+    ///\r
+    /// \return True if the provider is accepted.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    bool registerProvider(Provider* provider);\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Previous add calls are canceled.\r
+    ///\r
+    /// Added providers are not stored.\r
+    ///\r
+    /// \see add\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    void cancelAddictions();\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Previous add calls are confirmed.\r
+    ///\r
+    /// Added providers are finally stored.\r
+    ///\r
+    /// \return True if something was stored.\r
+    ///\r
+    /// \see add\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    bool confirmAddictions();\r
+\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+// Member data\r
+////////////////////////////////////////////////////////////\r
+\r
+private:\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Structure with information about a provider type.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    struct ProviderInfo{\r
+        unsigned int version;\r
+        unsigned int lowestVersion;\r
+        std::list<Provider*> providers;\r
+    };\r
+\r
+    typedef std::map<std::string, ProviderInfo > ProvidersMap;\r
+    typedef std::map<std::string, std::list<Provider*> > TempProvidersMap;\r
+\r
+    ProvidersMap knownTypes;        ///< Map of registered types.\r
+    TempProvidersMap addRequests;   ///< Temporarily added providers\r
+\r
+};\r
+\r
+}   // namespace pluma\r
+\r
+#endif // PLUMA_HOST_HPP\r
diff --git a/lib/third_party/Pluma/PluginManager.cpp b/lib/third_party/Pluma/PluginManager.cpp
new file mode 100644 (file)
index 0000000..1124505
--- /dev/null
@@ -0,0 +1,201 @@
+////////////////////////////////////////////////////////////\r
+//\r
+// Pluma - Plug-in Management Framework\r
+// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+//\r
+// This software is provided 'as-is', without any express or implied warranty.\r
+// In no event will the authors be held liable for any damages arising from the use of this software.\r
+//\r
+// Permission is granted to anyone to use this software for any purpose,\r
+// including commercial applications, and to alter it and redistribute it freely,\r
+// subject to the following restrictions:\r
+//\r
+// 1. The origin of this software must not be misrepresented;\r
+//    you must not claim that you wrote the original software.\r
+//    If you use this software in a product, an acknowledgment\r
+//    in the product documentation would be appreciated but is not required.\r
+//\r
+// 2. Altered source versions must be plainly marked as such,\r
+//    and must not be misrepresented as being the original software.\r
+//\r
+// 3. This notice may not be removed or altered from any source distribution.\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+// Headers\r
+////////////////////////////////////////////////////////////\r
+#include <Pluma/PluginManager.hpp>\r
+#include <Pluma/DLibrary.hpp>\r
+#include <Pluma/Dir.hpp>\r
+#include <cstdio>\r
+\r
+namespace pluma{\r
+\r
+////////////////////////////////////////////////////////////\r
+PluginManager::PluginManager(){\r
+    // Nothing to do\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+PluginManager::~PluginManager(){\r
+    unloadAll();\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+bool PluginManager::load(const std::string& path){\r
+    std::string plugName = getPluginName(path);\r
+    std::string realPath = resolvePathExtension(path);\r
+    DLibrary* lib = DLibrary::load(realPath);\r
+    if (!lib) return false;\r
+\r
+    fnRegisterPlugin* registerFunction;\r
+    registerFunction = reinterpret_cast<fnRegisterPlugin*>(lib->getSymbol("connect"));\r
+\r
+    if(!registerFunction){\r
+        fprintf(stderr, "Failed to initialize plugin \"%s\": connect function not found\n", plugName.c_str());\r
+        delete lib;\r
+        return false;\r
+    }\r
+    // try to initialize plugin:\r
+    if (!registerFunction(host)){\r
+        // plugin decided to fail\r
+        fprintf(stderr, "Self registry failed on plugin \"%s\".\n", plugName.c_str());\r
+        host.cancelAddictions();\r
+        delete lib;\r
+        return false;\r
+    }\r
+    // Store the library if addictions are confirmed\r
+    if (host.confirmAddictions())\r
+        libraries[plugName] = lib;\r
+    else{\r
+        // otherwise nothing was registered\r
+        fprintf(stderr, "Nothing registered by plugin \"%s\".\n", plugName.c_str());\r
+        delete lib;\r
+        return false;\r
+    }\r
+    return true;\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+bool PluginManager::load(const std::string& folder, const std::string& pluginName){\r
+    if (folder.empty())\r
+        return load(pluginName);\r
+    else if (folder[folder.size()-1] == '/' || folder[folder.size()-1] == '\\')\r
+        return load(folder + pluginName);\r
+    return load(folder + '/' + pluginName);\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+int PluginManager::loadFromFolder(const std::string& folder, bool recursive){\r
+    std::list<std::string> files;\r
+    dir::listFiles(files, folder, PLUMA_LIB_EXTENSION, recursive);\r
+    // try to load every library\r
+    int res = 0;\r
+    std::list<std::string>::const_iterator it;\r
+    for (it = files.begin() ; it != files.end() ; ++it){\r
+        if ( load(*it) ) ++res;\r
+    }\r
+    return res;\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+bool PluginManager::unload(const std::string& pluginName){\r
+    std::string plugName = getPluginName(pluginName);\r
+    LibMap::iterator it = libraries.find(plugName);\r
+    if( it != libraries.end() ) {\r
+        delete it->second;\r
+        libraries.erase(it);\r
+        return true;\r
+    }\r
+    return false;\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+void PluginManager::unloadAll(){\r
+\r
+    host.clearProviders();\r
+    LibMap::iterator it;\r
+    for (it = libraries.begin() ; it != libraries.end() ; ++it){\r
+        delete it->second;\r
+    }\r
+    libraries.clear();\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+std::string PluginManager::getPluginName(const std::string& path){\r
+    size_t lastDash = path.find_last_of("/\\");\r
+    size_t lastDot = path.find_last_of('.');\r
+    if (lastDash == std::string::npos) lastDash = 0;\r
+    else ++lastDash;\r
+    if (lastDot < lastDash || lastDot == std::string::npos){\r
+        // path without extension\r
+        lastDot = path.length();\r
+    }\r
+    return path.substr(lastDash, lastDot-lastDash);\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+std::string PluginManager::resolvePathExtension(const std::string& path){\r
+    size_t lastDash = path.find_last_of("/\\");\r
+    size_t lastDot = path.find_last_of('.');\r
+    if (lastDash == std::string::npos) lastDash = 0;\r
+    else ++lastDash;\r
+    if (lastDot < lastDash || lastDot == std::string::npos){\r
+        // path without extension, add it\r
+        return path + "." + PLUMA_LIB_EXTENSION;\r
+    }\r
+    return path;\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+void PluginManager::registerType(const std::string& type, unsigned int version, unsigned int lowestVersion){\r
+    host.registerType(type, version, lowestVersion);\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+bool PluginManager::addProvider(Provider* provider){\r
+    if (provider == NULL){\r
+        fprintf(stderr, "Trying to add null provider\n");\r
+        return false;\r
+    }\r
+    return host.registerProvider(provider);\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+void PluginManager::getLoadedPlugins(std::vector<const std::string*>& pluginNames) const{\r
+    pluginNames.reserve(pluginNames.size()+libraries.size());\r
+    LibMap::const_iterator it;\r
+    for(it = libraries.begin() ; it != libraries.end() ; ++it){\r
+        pluginNames.push_back(&(it->first));\r
+    }\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+bool PluginManager::isLoaded(const std::string& pluginName) const{\r
+    return libraries.find(getPluginName(pluginName)) != libraries.end();\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+const std::list<Provider*>* PluginManager::getProviders(const std::string& type) const{\r
+    return host.getProviders(type);\r
+}\r
+\r
+\r
+\r
+}   // namespace pluma\r
+\r
diff --git a/lib/third_party/Pluma/PluginManager.hpp b/lib/third_party/Pluma/PluginManager.hpp
new file mode 100644 (file)
index 0000000..e5ddf06
--- /dev/null
@@ -0,0 +1,245 @@
+////////////////////////////////////////////////////////////\r
+//\r
+// Pluma - Plug-in Management Framework\r
+// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+//\r
+// This software is provided 'as-is', without any express or implied warranty.\r
+// In no event will the authors be held liable for any damages arising from the use of this software.\r
+//\r
+// Permission is granted to anyone to use this software for any purpose,\r
+// including commercial applications, and to alter it and redistribute it freely,\r
+// subject to the following restrictions:\r
+//\r
+// 1. The origin of this software must not be misrepresented;\r
+//    you must not claim that you wrote the original software.\r
+//    If you use this software in a product, an acknowledgment\r
+//    in the product documentation would be appreciated but is not required.\r
+//\r
+// 2. Altered source versions must be plainly marked as such,\r
+//    and must not be misrepresented as being the original software.\r
+//\r
+// 3. This notice may not be removed or altered from any source distribution.\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+#ifndef PLUMA_PLUGIN_MANAGER_HPP\r
+#define PLUMA_PLUGIN_MANAGER_HPP\r
+\r
+////////////////////////////////////////////////////////////\r
+// Headers\r
+////////////////////////////////////////////////////////////\r
+#include <Pluma/Config.hpp>\r
+#include <Pluma/Host.hpp>\r
+\r
+#include <string>\r
+#include <map>\r
+\r
+namespace pluma{\r
+class DLibrary;\r
+\r
+////////////////////////////////////////////////////////////\r
+/// \brief Manages loaded plugins.\r
+///\r
+////////////////////////////////////////////////////////////\r
+class PLUMA_API PluginManager{\r
+\r
+\r
+public:\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Destructor.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    ~PluginManager();\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Load a plugin given it's path\r
+    ///\r
+    /// \param path Path for the plugin, including plugin name. File extension\r
+    /// may be included, but is discouraged for better cross platform code.\r
+    /// If file extension isn't present on the path, Pluma will deduce it\r
+    /// from the operating system.\r
+    ///\r
+    /// \return True if the plugin is successfully loaded.\r
+    ///\r
+    /// \see load(const std::string&, const std::string&)\r
+    /// \see loadFromFolder\r
+    /// \see unload\r
+    /// \see unloadAll\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    bool load(const std::string& path);\r
+\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Load a plugin from a given folder\r
+    ///\r
+    /// \param folder The folder path.\r
+    /// \param pluginName Name of the plugin. File extension\r
+    /// may be included, but is discouraged for better cross platform code.\r
+    /// If file extension is omitted, Pluma will deduce it\r
+    /// from the operating system.\r
+    ///\r
+    /// \return True if the plugin is successfully loaded.\r
+    ///\r
+    /// \see load(const std::string&)\r
+    /// \see loadFromFolder\r
+    /// \see unload\r
+    /// \see unloadAll\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    bool load(const std::string& folder, const std::string& pluginName);\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Load all plugins from a given folder\r
+    ///\r
+    /// \param folder Path for the folder where the plug-ins are.\r
+    /// \param recursive If true it will search on sub-folders as well\r
+    ///\r
+    /// \return Number of successfully loaded plug-ins.\r
+    ///\r
+    /// \see load(const std::string&, const std::string&)\r
+    /// \see load(const std::string&)\r
+    /// \see unload\r
+    /// \see unloadAll\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    int loadFromFolder(const std::string& folder, bool recursive = false);\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Unload a plugin.\r
+    ///\r
+    /// \param pluginName Name or path of the plugin.\r
+    ///\r
+    /// \return True if the plugin is successfully unloaded,\r
+    /// false if no such plugin exists on the manager.\r
+    ///\r
+    /// \see load(const std::string&, const std::string&)\r
+    /// \see load(const std::string&)\r
+    /// \see loadFromFolder\r
+    /// \see unloadAll\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    bool unload(const std::string& pluginName);\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Unload all loaded plugins.\r
+    ///\r
+    /// \see load(const std::string&, const std::string&)\r
+    /// \see load(const std::string&)\r
+    /// \see loadFromFolder\r
+    /// \see unload\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    void unloadAll();\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Directly add a new provider.\r
+    ///\r
+    /// \param provider Provider.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    bool addProvider(Provider* provider);\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Get the name of all loaded plugins.\r
+    ///\r
+    /// \param pluginNames A vector to fill with the plugins names.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    void getLoadedPlugins(std::vector<const std::string*>& pluginNames) const;\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Check if a plug-in is loaded.\r
+    ///\r
+    /// \param pluginName the plug-in tname o check.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    bool isLoaded(const std::string& pluginName) const;\r
+\r
+\r
+protected:\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Default constructor.\r
+    ///\r
+    /// PluginManager cannot be publicly instantiated.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    PluginManager();\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Register a provider type\r
+    ///\r
+    /// \param type Provider type.\r
+    /// \param version Current version of that provider type.\r
+    /// \param lowestVersion Lowest compatible version of that provider type.\r
+    ///\r
+    /// \see Host::registerType\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    void registerType(const std::string& type, unsigned int version, unsigned int lowestVersion);\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Get providers of a certain type.\r
+    ///\r
+    /// \param type Provider type.\r
+    ///\r
+    /// \return Pointer to the list of providers of that \a type,\r
+    /// or NULL if \a type is not registered.\r
+    ///\r
+    /// \see Host::getProviders\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    const std::list<Provider*>* getProviders(const std::string& type) const;\r
+\r
+\r
+private:\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Get the plugin name (without extension) from its path\r
+    ///\r
+    /// \param path Plugin path.\r
+    ///\r
+    /// \return Name of the plugin.\r
+    ///\r
+    /// \see resolvePathExtension\r
+    /// \see load(const std::string&, const std::string&)\r
+    /// \see load(const std::string&)\r
+    /// \see unload\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    static std::string getPluginName(const std::string& path);\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief If the plugin path omits it's extension, this method returns\r
+    /// the path plus the OS specific dll extension.\r
+    /// Return a copy of the path otherwise.\r
+    ///\r
+    /// \param path Plugin path.\r
+    ///\r
+    /// \return Path with extension.\r
+    ///\r
+    /// \see getPluginName\r
+    /// \see load(const std::string&, const std::string&)\r
+    /// \see load(const std::string&)\r
+    /// \see unload\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    static std::string resolvePathExtension(const std::string& path);\r
+\r
+\r
+private:\r
+\r
+    /// Signature for the plugin's registration function\r
+    typedef bool fnRegisterPlugin(Host&);\r
+    typedef std::map<std::string,DLibrary*> LibMap;\r
+\r
+    LibMap libraries;   ///< Map containing the loaded libraries\r
+    Host host;          ///< Host app proxy, holding all providers\r
+\r
+};\r
+\r
+}   // namespace pluma\r
+\r
+#endif // PLUMA_PLUGIN_MANAGER_HPP\r
diff --git a/lib/third_party/Pluma/Pluma.hpp b/lib/third_party/Pluma/Pluma.hpp
new file mode 100644 (file)
index 0000000..a9d614e
--- /dev/null
@@ -0,0 +1,171 @@
+////////////////////////////////////////////////////////////\r
+//\r
+// Pluma - Plug-in Management Framework\r
+// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+//\r
+// This software is provided 'as-is', without any express or implied warranty.\r
+// In no event will the authors be held liable for any damages arising from the use of this software.\r
+//\r
+// Permission is granted to anyone to use this software for any purpose,\r
+// including commercial applications, and to alter it and redistribute it freely,\r
+// subject to the following restrictions:\r
+//\r
+// 1. The origin of this software must not be misrepresented;\r
+//    you must not claim that you wrote the original software.\r
+//    If you use this software in a product, an acknowledgment\r
+//    in the product documentation would be appreciated but is not required.\r
+//\r
+// 2. Altered source versions must be plainly marked as such,\r
+//    and must not be misrepresented as being the original software.\r
+//\r
+// 3. This notice may not be removed or altered from any source distribution.\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+#ifndef PLUMA_PLUMA_HPP\r
+#define PLUMA_PLUMA_HPP\r
+\r
+////////////////////////////////////////////////////////////\r
+// Headers\r
+////////////////////////////////////////////////////////////\r
+#include <Pluma/Config.hpp>\r
+#include <Pluma/Provider.hpp>\r
+#include <Pluma/PluginManager.hpp>\r
+\r
+////////////////////////////////////////////////////////////\r
+// Andy macro to convert parameter to string\r
+////////////////////////////////////////////////////////////\r
+#define PLUMA_2STRING(X) #X\r
+\r
+////////////////////////////////////////////////////////////\r
+// Macro that helps host applications defining\r
+// their provider classes\r
+////////////////////////////////////////////////////////////\r
+#define PLUMA_PROVIDER_HEADER(TYPE)\\r
+PLUMA_PROVIDER_HEADER_BEGIN(TYPE)\\r
+virtual TYPE* create() const = 0;\\r
+PLUMA_PROVIDER_HEADER_END\r
+\r
+////////////////////////////////////////////////////////////\r
+// Macro that generate first part of the provider definition\r
+////////////////////////////////////////////////////////////\r
+#define PLUMA_PROVIDER_HEADER_BEGIN(TYPE)\\r
+class TYPE##Provider: public pluma::Provider{\\r
+private:\\r
+    friend class pluma::Pluma;\\r
+    static const unsigned int PLUMA_INTERFACE_VERSION;\\r
+    static const unsigned int PLUMA_INTERFACE_LOWEST_VERSION;\\r
+    static const std::string PLUMA_PROVIDER_TYPE;\\r
+    std::string plumaGetType() const{ return PLUMA_PROVIDER_TYPE; }\\r
+public:\\r
+    unsigned int getVersion() const{ return PLUMA_INTERFACE_VERSION; }\r
+\r
+////////////////////////////////////////////////////////////\r
+// Macro that generate last part of the provider definition\r
+////////////////////////////////////////////////////////////\r
+#define PLUMA_PROVIDER_HEADER_END };\r
+\r
+////////////////////////////////////////////////////////////\r
+// Macro that generate the provider declaration\r
+////////////////////////////////////////////////////////////\r
+#define PLUMA_PROVIDER_SOURCE(TYPE, Version, LowestVersion)\\r
+const std::string TYPE##Provider::PLUMA_PROVIDER_TYPE = PLUMA_2STRING( TYPE );\\r
+const unsigned int TYPE##Provider::PLUMA_INTERFACE_VERSION = Version;\\r
+const unsigned int TYPE##Provider::PLUMA_INTERFACE_LOWEST_VERSION = LowestVersion;\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+// Macro that helps plugins generating their provider implementations\r
+// PRE: SPECIALIZED_TYPE must inherit from BASE_TYPE\r
+////////////////////////////////////////////////////////////\r
+#define PLUMA_INHERIT_PROVIDER(SPECIALIZED_TYPE, BASE_TYPE)\\r
+class SPECIALIZED_TYPE##Provider: public BASE_TYPE##Provider{\\r
+public:\\r
+    BASE_TYPE * create() const{ return new SPECIALIZED_TYPE (); }\\r
+};\r
+\r
+\r
+namespace pluma{\r
+\r
+////////////////////////////////////////////////////////////\r
+/// \brief Pluma plugins management\r
+///\r
+////////////////////////////////////////////////////////////\r
+class Pluma: public PluginManager{\r
+\r
+public:\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Default Constructor\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    Pluma();\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Tell Pluma to accept a certain type of providers\r
+    ///\r
+    /// A Pluma object is able to accept multiple types of providers.\r
+    /// When a plugin is loaded, it tries to register it's providers\r
+    /// implementations. Those are only accepted by the host\r
+    /// application if it's accepting providers of that kind.\r
+    ///\r
+    /// \tparam ProviderType type of provider.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    template<typename ProviderType>\r
+    void acceptProviderType();\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Get the stored providers of a certain type.\r
+    ///\r
+    /// Providers are added at the end of the \a providers vector.\r
+    ///\r
+    /// \tparam ProviderType type of provider to be returned.\r
+    /// \param[out] providers Vector to fill with the existing\r
+    /// providers.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    template<typename ProviderType>\r
+    void getProviders(std::vector<ProviderType*>& providers);\r
+};\r
+\r
+#include <Pluma/Pluma.inl>\r
+\r
+}\r
+\r
+\r
+#endif // PLUMA_PLUMA_HPP\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+/// \class pluma::Pluma\r
+///\r
+/// Pluma is the main class of Pluma library. Allows hosting\r
+/// applications to load/unload dlls in runtime (plugins), and\r
+/// to get providers of shared interface objects.\r
+///\r
+/// Example:\r
+/// \code\r
+/// pluma::Pluma pluma;\r
+/// // Tell it to accept providers of the type DeviceProvider\r
+/// pluma.acceptProviderType<DeviceProvider>();\r
+/// // Load some dll\r
+/// pluma.load("plugins/standard_devices");\r
+/// // Get device providers into a vector\r
+/// std::vector<DeviceProvider*> providers;\r
+/// pluma.getProviders(providers);\r
+/// // create a Device from the first provider\r
+/// if (!providers.empty()){\r
+///     Device* myDevice = providers.first()->create();\r
+///     // do something with myDevice\r
+///     std::cout << device->getDescription() << std::endl;\r
+///     // (...)\r
+///     delete myDevice;\r
+/// }\r
+/// \endcode\r
+///\r
+/// It is also possible to add local providers, providers that\r
+/// are defined directly on the host application. That can\r
+/// be useful to provide and use default implementations of certain\r
+/// interfaces, along with plugin implementations.\r
+///\r
+////////////////////////////////////////////////////////////\r
diff --git a/lib/third_party/Pluma/Pluma.inl b/lib/third_party/Pluma/Pluma.inl
new file mode 100644 (file)
index 0000000..c3b6ce7
--- /dev/null
@@ -0,0 +1,52 @@
+////////////////////////////////////////////////////////////\r
+//\r
+// Pluma - Plug-in Management Framework\r
+// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+//\r
+// This software is provided 'as-is', without any express or implied warranty.\r
+// In no event will the authors be held liable for any damages arising from the use of this software.\r
+//\r
+// Permission is granted to anyone to use this software for any purpose,\r
+// including commercial applications, and to alter it and redistribute it freely,\r
+// subject to the following restrictions:\r
+//\r
+// 1. The origin of this software must not be misrepresented;\r
+//    you must not claim that you wrote the original software.\r
+//    If you use this software in a product, an acknowledgment\r
+//    in the product documentation would be appreciated but is not required.\r
+//\r
+// 2. Altered source versions must be plainly marked as such,\r
+//    and must not be misrepresented as being the original software.\r
+//\r
+// 3. This notice may not be removed or altered from any source distribution.\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+inline Pluma::Pluma(){\r
+    // Nothing to do\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+template<typename ProviderType>\r
+void Pluma::acceptProviderType(){\r
+    PluginManager::registerType(\r
+        ProviderType::PLUMA_PROVIDER_TYPE,\r
+        ProviderType::PLUMA_INTERFACE_VERSION,\r
+        ProviderType::PLUMA_INTERFACE_LOWEST_VERSION\r
+    );\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+template<typename ProviderType>\r
+void Pluma::getProviders(std::vector<ProviderType*>& providers){\r
+    const std::list<Provider*>* lst = PluginManager::getProviders(ProviderType::PLUMA_PROVIDER_TYPE);\r
+    if (!lst) return;\r
+    providers.reserve(providers.size() + lst->size());\r
+    std::list<Provider*>::const_iterator it;\r
+    for (it = lst->begin() ; it != lst->end() ; ++it)\r
+        providers.push_back(static_cast<ProviderType*>(*it));\r
+}\r
diff --git a/lib/third_party/Pluma/Provider.cpp b/lib/third_party/Pluma/Provider.cpp
new file mode 100644 (file)
index 0000000..36d4da3
--- /dev/null
@@ -0,0 +1,52 @@
+////////////////////////////////////////////////////////////\r
+//\r
+// Pluma - Plug-in Management Framework\r
+// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+//\r
+// This software is provided 'as-is', without any express or implied warranty.\r
+// In no event will the authors be held liable for any damages arising from the use of this software.\r
+//\r
+// Permission is granted to anyone to use this software for any purpose,\r
+// including commercial applications, and to alter it and redistribute it freely,\r
+// subject to the following restrictions:\r
+//\r
+// 1. The origin of this software must not be misrepresented;\r
+//    you must not claim that you wrote the original software.\r
+//    If you use this software in a product, an acknowledgment\r
+//    in the product documentation would be appreciated but is not required.\r
+//\r
+// 2. Altered source versions must be plainly marked as such,\r
+//    and must not be misrepresented as being the original software.\r
+//\r
+// 3. This notice may not be removed or altered from any source distribution.\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+// Headers\r
+////////////////////////////////////////////////////////////\r
+#include <Pluma/Provider.hpp>\r
+#include <Pluma/Host.hpp>\r
+\r
+\r
+namespace pluma{\r
+\r
+////////////////////////////////////////////////////////////\r
+Provider::~Provider(){\r
+    // Nothing to do\r
+}\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+bool Provider::isCompatible(const Host& host) const{\r
+    // check compatibility with host\r
+    const std::string& type = this->plumaGetType();\r
+    if (!host.knows(type)) return false;\r
+    unsigned int lowest = host.getLowestVersion(type);\r
+    unsigned int current = host.getVersion(type);\r
+    unsigned int myVersion = this->getVersion();\r
+    return lowest <= myVersion && myVersion <= current;\r
+}\r
+\r
+}   // namespace pluma\r
diff --git a/lib/third_party/Pluma/Provider.hpp b/lib/third_party/Pluma/Provider.hpp
new file mode 100644 (file)
index 0000000..ea06497
--- /dev/null
@@ -0,0 +1,204 @@
+////////////////////////////////////////////////////////////\r
+//\r
+// Pluma - Plug-in Management Framework\r
+// Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+//\r
+// This software is provided 'as-is', without any express or implied warranty.\r
+// In no event will the authors be held liable for any damages arising from the use of this software.\r
+//\r
+// Permission is granted to anyone to use this software for any purpose,\r
+// including commercial applications, and to alter it and redistribute it freely,\r
+// subject to the following restrictions:\r
+//\r
+// 1. The origin of this software must not be misrepresented;\r
+//    you must not claim that you wrote the original software.\r
+//    If you use this software in a product, an acknowledgment\r
+//    in the product documentation would be appreciated but is not required.\r
+//\r
+// 2. Altered source versions must be plainly marked as such,\r
+//    and must not be misrepresented as being the original software.\r
+//\r
+// 3. This notice may not be removed or altered from any source distribution.\r
+//\r
+////////////////////////////////////////////////////////////\r
+\r
+#ifndef PLUMA_PROVIDER_HPP\r
+#define PLUMA_PROVIDER_HPP\r
+\r
+////////////////////////////////////////////////////////////\r
+// Headers\r
+////////////////////////////////////////////////////////////\r
+#include <Pluma/Config.hpp>\r
+#include <string>\r
+\r
+\r
+namespace pluma{\r
+class Host;\r
+\r
+////////////////////////////////////////////////////////////\r
+/// \brief Interface to provide applications with objects from plugins.\r
+///\r
+////////////////////////////////////////////////////////////\r
+class PLUMA_API Provider{\r
+friend class Host;\r
+\r
+\r
+public:\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Destructor.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    virtual ~Provider();\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Get provider version.\r
+    ///\r
+    /// \return Version number.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    virtual unsigned int getVersion() const = 0;\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Check compatibility with host.\r
+    ///\r
+    /// The same provider may be compiled with different versions\r
+    /// on host side and on plugins side. This function checks if\r
+    /// a plugin provider is compatible with the current version of\r
+    /// the same provider type on the host side.\r
+    ///\r
+    /// \param host Host, proxy of host application.\r
+    ///\r
+    /// \return True if it's compatible with \a host.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    bool isCompatible(const Host& host) const;\r
+\r
+\r
+private:\r
+\r
+    ////////////////////////////////////////////////////////////\r
+    /// \brief Get provider type.\r
+    ///\r
+    /// Each provider defined on the host application is identified by\r
+    /// a unique type. Those types are automatically managed internally by\r
+    /// pluma.\r
+    ///\r
+    /// \return Provider type id.\r
+    ///\r
+    ////////////////////////////////////////////////////////////\r
+    virtual std::string plumaGetType() const = 0;\r
+\r
+};\r
+\r
+}   // namespace pluma\r
+\r
+\r
+#endif // PLUMA_PROVIDER_HPP\r
+\r
+\r
+////////////////////////////////////////////////////////////\r
+/// \class pluma::Provider\r
+/// The plugin specific implementations are unknown at the host side,\r
+/// only their shared interfaces are known. Then, host app needs a generic\r
+/// way of create interface objects. That's what provider classes are for.\r
+/// It is the factory design pattern\r
+/// (http://www.oodesign.com/factory-pattern.html)\r
+///\r
+/// Shared interfaces define their provider types (by inheriting from\r
+/// pluma::Provider). Hosts then use those tipes to get objects from the\r
+/// plugins.\r
+/// Plugins derive the shared interface providers so that they can provide\r
+/// host with specific implementations of the shared interface.\r
+/// Those specific providers are given to the host through a connect function.\r
+///\r
+///\r
+/// Example: A host app uses objects of type Device. A certain plugin\r
+/// defines a Keyboard, witch is a Device.\r
+/// The Host will use DeviceProviders to create objects of type Device.\r
+/// The plugin will provide host specifically with a KeyboardProvider.\r
+/// Other plugins may provide host with other derived DeviceProvider types.\r
+///\r
+/// Device hpp (shared):\r
+/// \code\r
+/// #include <Pluma/Pluma.hpp>\r
+/// class Device{\r
+/// public:\r
+///     virtual std::string getDescription() const = 0;\r
+/// };\r
+/// // create DevicedProvider class\r
+/// PLUMA_PROVIDER_HEADER(Device);\r
+/// \endcode\r
+///\r
+/// Device cpp (shared):\r
+/// \code\r
+/// #include "Device.hpp"\r
+/// generate DevicedProvider with version 6, and compatible with at least v.3\r
+/// PLUMA_PROVIDER_SOURCE(Device, 6, 3);\r
+/// \endcode\r
+///\r
+///\r
+/// <br>\r
+/// Keyboard code on the plugin side:\r
+/// \code\r
+/// #include <Pluma/Pluma.hpp>\r
+/// #include "Device.hpp"\r
+///\r
+/// class Keyboard: public Device{\r
+/// public:\r
+///     std::string getDescription() const{\r
+///         return "keyboard";\r
+///     }\r
+/// };\r
+///\r
+/// // create KeyboardProvider, it implements DeviceProvider\r
+/// PLUMA_INHERIT_PROVIDER(Keyboard, Device);\r
+/// \endcode\r
+///\r
+/// plugin connector:\r
+/// \code\r
+/// #include <Pluma/Connector.hpp>\r
+/// #include "Keyboard.hpp"\r
+///\r
+/// PLUMA_CONNECTOR\r
+/// bool connect(pluma::Host& host){\r
+///     // add a keyboard provider to host\r
+///     host.add( new KeyboardProvider() );\r
+///     return true;\r
+/// }\r
+/// \endcode\r
+///\r
+///\r
+/// Host application code:\r
+/// \code\r
+/// #include <Pluma/Pluma.hpp>\r
+///\r
+/// #include "Device.hpp"\r
+/// #include <iostream>\r
+/// #include <vector>\r
+///\r
+/// int main(){\r
+///\r
+///     pluma::Pluma plugins;\r
+///     // Tell plugins manager to accept providers of the type DeviceProvider\r
+///     plugins.acceptProviderType<DeviceProvider>();\r
+///     // Load library "standard_devices" from folder "plugins"\r
+///     plugins.load("plugins", "standard_devices");\r
+///\r
+///     // Get device providers into a vector\r
+///     std::vector<DeviceProvider*> providers;\r
+///     plugins.getProviders(providers);\r
+///\r
+///     // create a Device from the first provider\r
+///     if (!providers.empty()){\r
+///         Device* myDevice = providers.first()->create();\r
+///         // do something with myDevice\r
+///         std::cout << device->getDescription() << std::endl;\r
+///         // and delete it in the end\r
+///         delete myDevice;\r
+///     }\r
+///     return 0;\r
+/// }\r
+/// \endcode\r
+///\r
+////////////////////////////////////////////////////////////\r
diff --git a/lib/third_party/Pluma/readme b/lib/third_party/Pluma/readme
new file mode 100644 (file)
index 0000000..eee7f36
--- /dev/null
@@ -0,0 +1,33 @@
+Pluma - Plug-in Management Framework\r
+\r
+1. About\r
+\r
+   Pluma stands for PLUg-in MAnagement framework, and also for PLUg-in Minimal Architecture.\r
+   It's small, cross-platform and simple to use. Support and more information at http://pluma-framework.sourceforge.net\r
+\r
+\r
+\r
+2. Licence\r
+\r
+   Source code is provided under the terms of the zlib/libpng License (http://www.opensource.org/licenses/zlib-license.php):\r
+\r
+      Pluma - Plug-in Management Framework\r
+      Copyright (C) 2010-2012 Gil Costa (gsaurus@gmail.com)\r
+\r
+      This software is provided 'as-is', without any express or implied warranty.\r
+      In no event will the authors be held liable for any damages arising from the use of this software.\r
+\r
+      Permission is granted to anyone to use this software for any purpose,\r
+      including commercial applications, and to alter it and redistribute it freely,\r
+      subject to the following restrictions:\r
+\r
+      1. The origin of this software must not be misrepresented;\r
+         you must not claim that you wrote the original software.\r
+         If you use this software in a product, an acknowledgment\r
+         in the product documentation would be appreciated but is not required.\r
+\r
+      2. Altered source versions must be plainly marked as such,\r
+         and must not be misrepresented as being the original software.\r
+\r
+      3. This notice may not be removed or altered from any source distribution.\r
+\r
diff --git a/lib/third_party/Pluma/uce-dirent.h b/lib/third_party/Pluma/uce-dirent.h
new file mode 100644 (file)
index 0000000..ecf78eb
--- /dev/null
@@ -0,0 +1,679 @@
+/*
+ * uce-dirent.h - operating system independent dirent implementation
+ * 
+ * Copyright (C) 1998-2002  Toni Ronkko
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * ``Software''), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ * IN NO EVENT SHALL TONI RONKKO BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ * 
+ * 
+ * May 28 1998, Toni Ronkko <tronkko@messi.uku.fi>
+ *
+ * $Id: uce-dirent.h,v 1.7 2002/05/13 10:48:35 tr Exp $
+ *
+ * $Log: uce-dirent.h,v $
+ * Revision 1.7  2002/05/13 10:48:35  tr
+ * embedded some source code directly to the header so that no source
+ * modules need to be included in the MS Visual C project using the
+ * interface, removed all the dependencies to other headers of the `uce'
+ * library so that the header can be made public
+ *
+ * Revision 1.6  2002/04/12 16:22:04  tr
+ * Unified Compiling Environment (UCE) replaced `std' library
+ *
+ * Revision 1.5  2001/07/20 16:33:40  tr
+ * moved to `std' library and re-named defines accordingly
+ *
+ * Revision 1.4  2001/07/10 16:47:18  tronkko
+ * revised comments
+ *
+ * Revision 1.3  2001/01/11 13:16:43  tr
+ * using ``uce-machine.h'' for finding out defines such as `FREEBSD'
+ *
+ * Revision 1.2  2000/10/08 16:00:41  tr
+ * copy of FreeBSD man page
+ *
+ * Revision 1.1  2000/07/10 05:53:16  tr
+ * Initial revision
+ *
+ * Revision 1.2  1998/07/19 18:29:14  tr
+ * Added error reporting capabilities and some asserts.
+ *
+ * Revision 1.1  1998/07/04 16:27:51  tr
+ * Initial revision
+ *
+ * 
+ * MSVC 1.0 scans automatic dependencies incorrectly when your project
+ * contains this very header.  The problem is that MSVC cannot handle
+ * include directives inside #if..#endif block those are never entered.
+ * Since this header ought to compile in many different operating systems,
+ * there had to be several conditional blocks that are compiled only in
+ * operating systems for what they were designed for.  MSVC 1.0 cannot
+ * handle inclusion of sys/dir.h in a part that is compiled only in Apollo
+ * operating system.  To fix the problem you need to insert DIR.H into
+ * SYSINCL.DAT located in MSVC\BIN directory and restart visual C++.
+ * Consult manuals for more informaton about the problem.
+ *
+ * Since many UNIX systems have dirent.h we assume to have one also.
+ * However, if your UNIX system does not have dirent.h you can download one
+ * for example at: http://ftp.uni-mannheim.de/ftp/GNU/dirent/dirent.tar.gz.
+ * You can also see if you have one of dirent.h, direct.h, dir.h, ndir.h,
+ * sys/dir.h and sys/ndir.h somewhere.  Try defining HAVE_DIRENT_H,
+ * HAVE_DIRECT_H, HAVE_DIR_H, HAVE_NDIR_H, HAVE_SYS_DIR_H and
+ * HAVE_SYS_NDIR_H according to the files found.
+ */
+#ifndef DIRENT_H
+#define DIRENT_H
+#define DIRENT_H_INCLUDED
+
+/* find out platform */
+#if defined(MSDOS)                             /* MS-DOS */
+#elif defined(__MSDOS__)                       /* Turbo C/Borland */
+# define MSDOS
+#elif defined(__DOS__)                         /* Watcom */
+# define MSDOS
+#endif
+
+#if defined(WIN32)                             /* MS-Windows */
+#elif defined(__NT__)                          /* Watcom */
+# define WIN32
+#elif defined(_WIN32)                          /* Microsoft */
+# define WIN32
+#elif defined(__WIN32__)                       /* Borland */
+# define WIN32
+#endif
+
+/*
+ * See what kind of dirent interface we have unless autoconf has already
+ * determinated that.
+ */
+#if !defined(HAVE_DIRENT_H) && !defined(HAVE_DIRECT_H) && !defined(HAVE_SYS_DIR_H) && !defined(HAVE_NDIR_H) && !defined(HAVE_SYS_NDIR_H) && !defined(HAVE_DIR_H)
+# if defined(_MSC_VER)                         /* Microsoft C/C++ */
+    /* no dirent.h */
+# elif defined(__BORLANDC__)                   /* Borland C/C++ */
+#   define HAVE_DIRENT_H
+#   define VOID_CLOSEDIR
+# elif defined(__TURBOC__)                     /* Borland Turbo C */
+    /* no dirent.h */
+# elif defined(__WATCOMC__)                    /* Watcom C/C++ */
+#   define HAVE_DIRECT_H
+# elif defined(__apollo)                       /* Apollo */
+#   define HAVE_SYS_DIR_H
+# elif defined(__hpux)                         /* HP-UX */
+#   define HAVE_DIRENT_H
+# elif defined(__alpha) || defined(__alpha__)  /* Alpha OSF1 */
+#   error "not implemented"
+# elif defined(__sgi)                          /* Silicon Graphics */
+#   define HAVE_DIRENT_H
+# elif defined(sun) || defined(_sun)           /* Sun Solaris */
+#   define HAVE_DIRENT_H
+# elif defined(__FreeBSD__)                    /* FreeBSD */
+#   define HAVE_DIRENT_H
+# elif defined(__linux__)                      /* Linux */
+#   define HAVE_DIRENT_H
+# elif defined(__GNUC__)                       /* GNU C/C++ */
+#   define HAVE_DIRENT_H
+# else
+#   error "not implemented"
+# endif
+#endif
+
+/* include proper interface headers */
+#if defined(HAVE_DIRENT_H)
+# include <dirent.h>
+# ifdef FREEBSD
+#   define NAMLEN(dp) ((int)((dp)->d_namlen))
+# else
+#   define NAMLEN(dp) ((int)(strlen((dp)->d_name)))
+# endif
+
+#elif defined(HAVE_NDIR_H)
+# include <ndir.h>
+# define NAMLEN(dp) ((int)((dp)->d_namlen))
+
+#elif defined(HAVE_SYS_NDIR_H)
+# include <sys/ndir.h>
+# define NAMLEN(dp) ((int)((dp)->d_namlen))
+
+#elif defined(HAVE_DIRECT_H)
+# include <direct.h>
+# define NAMLEN(dp) ((int)((dp)->d_namlen))
+
+#elif defined(HAVE_DIR_H)
+# include <dir.h>
+# define NAMLEN(dp) ((int)((dp)->d_namlen))
+
+#elif defined(HAVE_SYS_DIR_H)
+# include <sys/types.h>
+# include <sys/dir.h>
+# ifndef dirent
+#   define dirent direct
+# endif
+# define NAMLEN(dp) ((int)((dp)->d_namlen))
+
+#elif defined(MSDOS) || defined(WIN32)
+
+  /* figure out type of underlaying directory interface to be used */
+# if defined(WIN32)
+#   define DIRENT_WIN32_INTERFACE
+# elif defined(MSDOS)
+#   define DIRENT_MSDOS_INTERFACE
+# else
+#   error "missing native dirent interface"
+# endif
+
+  /*** WIN32 specifics ***/
+# if defined(DIRENT_WIN32_INTERFACE)
+#   include <windows.h>
+#   if !defined(DIRENT_MAXNAMLEN)
+#     define DIRENT_MAXNAMLEN (MAX_PATH)
+#   endif
+
+
+  /*** MS-DOS specifics ***/
+# elif defined(DIRENT_MSDOS_INTERFACE)
+#   include <dos.h>
+
+    /* Borland defines file length macros in dir.h */
+#   if defined(__BORLANDC__)
+#     include <dir.h>
+#     if !defined(DIRENT_MAXNAMLEN)
+#       define DIRENT_MAXNAMLEN ((MAXFILE)+(MAXEXT))
+#     endif
+#     if !defined(_find_t)
+#       define _find_t find_t
+#     endif
+
+    /* Turbo C defines ffblk structure in dir.h */
+#   elif defined(__TURBOC__)
+#     include <dir.h>
+#     if !defined(DIRENT_MAXNAMLEN)
+#       define DIRENT_MAXNAMLEN ((MAXFILE)+(MAXEXT))
+#     endif
+#     define DIRENT_USE_FFBLK
+
+    /* MSVC */
+#   elif defined(_MSC_VER)
+#     if !defined(DIRENT_MAXNAMLEN)
+#       define DIRENT_MAXNAMLEN (12)
+#     endif
+
+    /* Watcom */
+#   elif defined(__WATCOMC__)
+#     if !defined(DIRENT_MAXNAMLEN)
+#       if defined(__OS2__) || defined(__NT__)
+#         define DIRENT_MAXNAMLEN (255)
+#       else
+#         define DIRENT_MAXNAMLEN (12)
+#       endif
+#     endif
+
+#   endif
+# endif
+
+  /*** generic MS-DOS and MS-Windows stuff ***/
+# if !defined(NAME_MAX) && defined(DIRENT_MAXNAMLEN)
+#   define NAME_MAX DIRENT_MAXNAMLEN
+# endif
+# if NAME_MAX < DIRENT_MAXNAMLEN
+#   error "assertion failed: NAME_MAX >= DIRENT_MAXNAMLEN"
+# endif
+
+
+  /*
+   * Substitute for real dirent structure.  Note that `d_name' field is a
+   * true character array although we have it copied in the implementation
+   * dependent data.  We could save some memory if we had declared `d_name'
+   * as a pointer refering the name within implementation dependent data.
+   * We have not done that since some code may rely on sizeof(d_name) to be
+   * something other than four.  Besides, directory entries are typically so
+   * small that it takes virtually no time to copy them from place to place.
+   */
+  typedef struct dirent {
+    char d_name[NAME_MAX + 1];
+
+    /*** Operating system specific part ***/
+# if defined(DIRENT_WIN32_INTERFACE)       /*WIN32*/
+    WIN32_FIND_DATA data;
+# elif defined(DIRENT_MSDOS_INTERFACE)     /*MSDOS*/
+#   if defined(DIRENT_USE_FFBLK)
+    struct ffblk data;
+#   else
+    struct _find_t data;
+#   endif
+# endif
+  } dirent;
+
+  /* DIR substitute structure containing directory name.  The name is
+   * essential for the operation of ``rewinndir'' function. */
+  typedef struct DIR {
+    char          *dirname;                    /* directory being scanned */
+    dirent        current;                     /* current entry */
+    int           dirent_filled;               /* is current un-processed? */
+
+  /*** Operating system specific part ***/
+#  if defined(DIRENT_WIN32_INTERFACE)
+    HANDLE        search_handle;
+#  elif defined(DIRENT_MSDOS_INTERFACE)
+#  endif
+  } DIR;
+
+# ifdef __cplusplus
+extern "C" {
+# endif
+
+/* supply prototypes for dirent functions */
+static DIR *opendir (const char *dirname);
+static struct dirent *readdir (DIR *dirp);
+static int closedir (DIR *dirp);
+static void rewinddir (DIR *dirp);
+
+/*
+ * Implement dirent interface as static functions so that the user does not
+ * need to change his project in any way to use dirent function.  With this
+ * it is sufficient to include this very header from source modules using
+ * dirent functions and the functions will be pulled in automatically.
+ */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <assert.h>
+#include <errno.h>
+
+/* use ffblk instead of _find_t if requested */
+#if defined(DIRENT_USE_FFBLK)
+# define _A_ARCH   (FA_ARCH)
+# define _A_HIDDEN (FA_HIDDEN)
+# define _A_NORMAL (0)
+# define _A_RDONLY (FA_RDONLY)
+# define _A_SUBDIR (FA_DIREC)
+# define _A_SYSTEM (FA_SYSTEM)
+# define _A_VOLID  (FA_LABEL)
+# define _dos_findnext(dest) findnext(dest)
+# define _dos_findfirst(name,flags,dest) findfirst(name,dest,flags)
+#endif
+
+static int _initdir (DIR *p);
+static const char *_getdirname (const struct dirent *dp);
+static void _setdirname (struct DIR *dirp);
+
+/*
+ * <function name="opendir">
+ * <intro>open directory stream for reading
+ * <syntax>DIR *opendir (const char *dirname);
+ *
+ * <desc>Open named directory stream for read and return pointer to the
+ * internal working area that is used for retrieving individual directory
+ * entries.  The internal working area has no fields of your interest.
+ *
+ * <ret>Returns a pointer to the internal working area or NULL in case the 
+ * directory stream could not be opened.  Global `errno' variable will set
+ * in case of error as follows:
+ *
+ * <table>
+ * [EACESS  |Permission denied.
+ * [EMFILE  |Too many open files used by the process.
+ * [ENFILE  |Too many open files in system.
+ * [ENOENT  |Directory does not exist.
+ * [ENOMEM  |Insufficient memory.
+ * [ENOTDIR |dirname does not refer to directory.  This value is not
+ *           reliable on MS-DOS and MS-Windows platforms.  Many
+ *           implementations return ENOENT even when the name refers to a
+ *           file.]
+ * </table>
+ * </function>
+ */
+static DIR *
+opendir(
+    const char *dirname)
+{
+  DIR *dirp;
+  assert (dirname != NULL);
+  
+  dirp = (DIR*)malloc (sizeof (struct DIR));
+  if (dirp != NULL) {
+    char *p;
+    
+    /* allocate room for directory name */
+    dirp->dirname = (char*) malloc (strlen (dirname) + 1 + strlen ("\\*.*"));
+    if (dirp->dirname == NULL) {
+      /* failed to duplicate directory name.  errno set by malloc() */
+      free (dirp);
+      return NULL;
+    }
+    /* Copy directory name while appending directory separator and "*.*".
+     * Directory separator is not appended if the name already ends with
+     * drive or directory separator.  Directory separator is assumed to be
+     * '/' or '\' and drive separator is assumed to be ':'. */
+    strcpy (dirp->dirname, dirname);
+    p = strchr (dirp->dirname, '\0');
+    if (dirp->dirname < p  &&
+        *(p - 1) != '\\'  &&  *(p - 1) != '/'  &&  *(p - 1) != ':')
+    {
+      strcpy (p++, "/");
+    }
+# ifdef DIRENT_WIN32_INTERFACE
+    strcpy (p, "*"); /*scan files with and without extension in win32*/
+# else
+    strcpy (p, "*.*"); /*scan files with and without extension in DOS*/
+# endif
+
+    /* open stream */
+    if (_initdir (dirp) == 0) {
+      /* initialization failed */
+      free (dirp->dirname);
+      free (dirp);
+      return NULL;
+    }
+  }
+  return dirp;
+}
+
+
+/*
+ * <function name="readdir">
+ * <intro>read a directory entry
+ * <syntax>struct dirent *readdir (DIR *dirp);
+ *
+ * <desc>Read individual directory entry and return pointer to a structure
+ * containing the name of the entry.  Individual directory entries returned
+ * include normal files, sub-directories, pseudo-directories "." and ".."
+ * and also volume labels, hidden files and system files in MS-DOS and
+ * MS-Windows.   You might want to use stat(2) function to determinate which
+ * one are you dealing with.  Many dirent implementations already contain
+ * equivalent information in dirent structure but you cannot depend on
+ * this.
+ *
+ * The dirent structure contains several system dependent fields that
+ * generally have no interest to you.  The only interesting one is char
+ * d_name[] that is also portable across different systems.  The d_name
+ * field contains the name of the directory entry without leading path.
+ * While d_name is portable across different systems the actual storage
+ * capacity of d_name varies from system to system and there is no portable
+ * way to find out it at compile time as different systems define the
+ * capacity of d_name with different macros and some systems do not define
+ * capacity at all (besides actual declaration of the field). If you really
+ * need to find out storage capacity of d_name then you might want to try
+ * NAME_MAX macro. The NAME_MAX is defined in POSIX standard althought
+ * there are many MS-DOS and MS-Windows implementations those do not define
+ * it.  There are also systems that declare d_name as "char d_name[1]" and
+ * then allocate suitable amount of memory at run-time.  Thanks to Alain
+ * Decamps (Alain.Decamps@advalvas.be) for pointing it out to me.
+ *
+ * This all leads to the fact that it is difficult to allocate space
+ * for the directory names when the very same program is being compiled on
+ * number of operating systems.  Therefore I suggest that you always
+ * allocate space for directory names dynamically.
+ *
+ * <ret>
+ * Returns a pointer to a structure containing name of the directory entry
+ * in `d_name' field or NULL if there was an error.  In case of an error the
+ * global `errno' variable will set as follows:
+ *
+ * <table>
+ * [EBADF  |dir parameter refers to an invalid directory stream.  This value
+ *          is not set reliably on all implementations.]
+ * </table>
+ * </function>
+ */
+static struct dirent *
+readdir (DIR *dirp)
+{
+  assert (dirp != NULL);
+  if (dirp == NULL) {
+    errno = EBADF;
+    return NULL;
+  }
+
+#if defined(DIRENT_WIN32_INTERFACE)
+  if (dirp->search_handle == INVALID_HANDLE_VALUE) {
+    /* directory stream was opened/rewound incorrectly or it ended normally */
+    errno = EBADF;
+    return NULL;
+  }
+#endif
+
+  if (dirp->dirent_filled != 0) {
+    /*
+     * Directory entry has already been retrieved and there is no need to
+     * retrieve a new one.  Directory entry will be retrieved in advance
+     * when the user calls readdir function for the first time.  This is so
+     * because real dirent has separate functions for opening and reading
+     * the stream whereas Win32 and DOS dirents open the stream
+     * automatically when we retrieve the first file.  Therefore, we have to
+     * save the first file when opening the stream and later we have to
+     * return the saved entry when the user tries to read the first entry.
+     */
+    dirp->dirent_filled = 0;
+  } else {
+    /* fill in entry and return that */
+#if defined(DIRENT_WIN32_INTERFACE)
+    if (FindNextFile (dirp->search_handle, &dirp->current.data) == FALSE) {
+      /* Last file has been processed or an error occured */
+      FindClose (dirp->search_handle);
+      dirp->search_handle = INVALID_HANDLE_VALUE;
+      errno = ENOENT;
+      return NULL;
+    }
+
+# elif defined(DIRENT_MSDOS_INTERFACE)
+    if (_dos_findnext (&dirp->current.data) != 0) {
+      /* _dos_findnext and findnext will set errno to ENOENT when no
+       * more entries could be retrieved. */
+      return NULL;
+    }
+# endif
+
+    _setdirname (dirp);
+    assert (dirp->dirent_filled == 0);
+  }
+  return &dirp->current;
+}
+
+
+/*
+ * <function name="closedir">
+ * <intro>close directory stream.
+ * <syntax>int closedir (DIR *dirp);
+ *
+ * <desc>Close directory stream opened by the `opendir' function.  Close of
+ * directory stream invalidates the DIR structure as well as previously read
+ * dirent entry.
+ *
+ * <ret>The function typically returns 0 on success and -1 on failure but
+ * the function may be declared to return void on same systems.  At least
+ * Borland C/C++ and some UNIX implementations use void as a return type.
+ * The dirent wrapper tries to define VOID_CLOSEDIR whenever closedir is
+ * known to return nothing.  The very same definition is made by the GNU
+ * autoconf if you happen to use it.
+ *
+ * The global `errno' variable will set to EBADF in case of error.
+ * </function>
+ */
+static int
+closedir (DIR *dirp)
+{   
+  int retcode = 0;
+
+  /* make sure that dirp points to legal structure */
+  assert (dirp != NULL);
+  if (dirp == NULL) {
+    errno = EBADF;
+    return -1;
+  }
+  /* free directory name and search handles */
+  if (dirp->dirname != NULL) free (dirp->dirname);
+
+#if defined(DIRENT_WIN32_INTERFACE)
+  if (dirp->search_handle != INVALID_HANDLE_VALUE) {
+    if (FindClose (dirp->search_handle) == FALSE) {
+      /* Unknown error */
+      retcode = -1;
+      errno = EBADF;
+    }
+  }
+#endif                     
+
+  /* clear dirp structure to make sure that it cannot be used anymore*/
+  memset (dirp, 0, sizeof (*dirp));
+# if defined(DIRENT_WIN32_INTERFACE)
+  dirp->search_handle = INVALID_HANDLE_VALUE;
+# endif
+
+  free (dirp);
+  return retcode;
+}
+
+
+/*
+ * <function name="rewinddir">
+ * <intro>rewind directory stream to the beginning
+ * <syntax>void rewinddir (DIR *dirp);
+ *
+ * <desc>Rewind directory stream to the beginning so that the next call of
+ * readdir() returns the very first directory entry again.  However, note
+ * that next call of readdir() may not return the same directory entry as it
+ * did in first time.  The directory stream may have been affected by newly
+ * created files.
+ *
+ * Almost every dirent implementation ensure that rewinddir will update
+ * the directory stream to reflect any changes made to the directory entries
+ * since the previous ``opendir'' or ``rewinddir'' call.  Keep an eye on
+ * this if your program depends on the feature.  I know at least one dirent
+ * implementation where you are required to close and re-open the stream to
+ * see the changes.
+ *
+ * <ret>Returns nothing.  If something went wrong while rewinding, you will
+ * notice it later when you try to retrieve the first directory entry.
+ */
+static void
+rewinddir (DIR *dirp)
+{   
+  /* make sure that dirp is legal */
+  assert (dirp != NULL);
+  if (dirp == NULL) {
+    errno = EBADF;
+    return;
+  }
+  assert (dirp->dirname != NULL);
+  
+  /* close previous stream */
+#if defined(DIRENT_WIN32_INTERFACE)
+  if (dirp->search_handle != INVALID_HANDLE_VALUE) {
+    if (FindClose (dirp->search_handle) == FALSE) {
+      /* Unknown error */
+      errno = EBADF;
+    }
+  }
+#endif
+
+  /* re-open previous stream */
+  if (_initdir (dirp) == 0) {
+    /* initialization failed but we cannot deal with error.  User will notice
+     * error later when she tries to retrieve first directory enty. */
+    /*EMPTY*/;
+  }
+}
+
+
+/*
+ * Open native directory stream object and retrieve first file.
+ * Be sure to close previous stream before opening new one.
+ */
+static int
+_initdir (DIR *dirp)
+{ 
+  assert (dirp != NULL);
+  assert (dirp->dirname != NULL);
+  dirp->dirent_filled = 0;
+
+# if defined(DIRENT_WIN32_INTERFACE)
+  /* Open stream and retrieve first file */
+  dirp->search_handle = FindFirstFile (dirp->dirname, &dirp->current.data);
+  if (dirp->search_handle == INVALID_HANDLE_VALUE) {
+    /* something went wrong but we don't know what.  GetLastError() could
+     * give us more information about the error, but then we should map
+     * the error code into errno. */
+    errno = ENOENT;
+    return 0;
+  }
+
+# elif defined(DIRENT_MSDOS_INTERFACE)
+  if (_dos_findfirst (dirp->dirname,
+          _A_SUBDIR | _A_RDONLY | _A_ARCH | _A_SYSTEM | _A_HIDDEN,
+          &dirp->current.data) != 0)
+  {
+    /* _dos_findfirst and findfirst will set errno to ENOENT when no 
+     * more entries could be retrieved. */
+    return 0;
+  }
+# endif
+
+  /* initialize DIR and it's first entry */
+  _setdirname (dirp);
+  dirp->dirent_filled = 1;
+  return 1;
+}
+
+
+/*
+ * Return implementation dependent name of the current directory entry.
+ */
+static const char *
+_getdirname (const struct dirent *dp)
+{
+#if defined(DIRENT_WIN32_INTERFACE)
+  return dp->data.cFileName;
+  
+#elif defined(DIRENT_USE_FFBLK)
+  return dp->data.ff_name;
+  
+#else
+  return dp->data.name;
+#endif  
+}
+
+
+/*
+ * Copy name of implementation dependent directory entry to the d_name field.
+ */
+static void
+_setdirname (struct DIR *dirp) {
+  /* make sure that d_name is long enough */
+  assert (strlen (_getdirname (&dirp->current)) <= NAME_MAX);
+  
+  strncpy (dirp->current.d_name,
+      _getdirname (&dirp->current),
+      NAME_MAX);
+  dirp->current.d_name[NAME_MAX] = '\0'; /*char d_name[NAME_MAX+1]*/
+}
+  
+# ifdef __cplusplus
+}
+# endif
+# define NAMLEN(dp) ((int)(strlen((dp)->d_name)))
+
+#else
+# error "missing dirent interface"
+#endif
+
+
+#endif /*DIRENT_H*/
+