Scine::Core  3.0.0
Module management and core interface definitions
 All Classes Files Functions Variables Typedefs Pages
SampleModule.cpp File Reference
#include "SampleModule.h"
#include "DummyInterface.h"
#include "DummyModels.h"
#include <Core/DerivedModule.h>
#include <Core/Exceptions.h>
Include dependency graph for SampleModule.cpp:

Typedefs

using sample_namespace::InterfaceModelMap = boost::mpl::map< boost::mpl::pair< Scine::Core::DummyInterface, boost::mpl::vector< DummyModelA, DummyModelB >>>
 

Functions

std::vector< std::shared_ptr
< Scine::Core::Module > > 
sample_namespace::moduleFactory ()
 

Detailed Description

Steps to your own module implementation:

  • Adjust the first include according to the rename
  • Remove the DummyInterface and DummyModels includes
  • Add includes to all of your classes implementing a Core interface that you wish to provide
  • Adjust the sample_namespace namespace
  • Adjust the InterfaceModelMap using declaration
  • Adjust all instances of the SampleModule class name
  • Adjust the string in ::name to provide a string identifying your Module
  • Delete this documentation