MotionLib  1.0.0
SamBuCa motion library
Public Member Functions | Protected Attributes | List of all members
smc::internal::PlatformFactory Class Reference
Collaboration diagram for smc::internal::PlatformFactory:
Collaboration graph
[legend]

Public Member Functions

std::size_t buildPlatforms (const std::string &platformDesc)
 Build platforms according to provided description. More...
 
std::size_t buildPlatforms (const ccut::yml::NodeRef &platformsNode, const ccut::yml::Parser *parser=nullptr)
 
std::list< PlatformBase::Shared > getPlatforms ()
 Get the platforms list. More...
 

Protected Attributes

std::list< PlatformBase::Shared > m_platforms
 
std::mutex m_platformsMutex
 

Detailed Description

Definition at line 47 of file PlatformFactory.hpp.

Member Function Documentation

◆ buildPlatforms()

std::size_t smc::internal::PlatformFactory::buildPlatforms ( const std::string &  platformDesc)

Build platforms according to provided description.

Parameters
platformDescDescription of platforms and their devices
Returns
std::size_t Number of newly constructed platforms
Todo:
Modify to use json-based platform description

Definition at line 66 of file PlatformFactory.cpp.

◆ getPlatforms()

std::list< PlatformBase::Shared > smc::internal::PlatformFactory::getPlatforms ( )

Get the platforms list.

Returns
std::list<PlatformBase::Shared> List of shared pointers to platforms

Definition at line 136 of file PlatformFactory.cpp.


The documentation for this class was generated from the following files: