VariantInfo Class Reference

#include <ArmarXCore/observers/variant/VariantInfo.h>

Classes

class  LibEntry
 
class  ProxyEntry
 
class  VariantEntry
 

Public Types

using LibEntryPtr = std::shared_ptr<LibEntry>
 
using ProxyEntryPtr = std::shared_ptr<ProxyEntry>
 
enum  ProxyType { SingleProxy , Topic }
 
using VariantEntryPtr = std::shared_ptr<VariantEntry>
 

Public Member Functions

LibEntryPtr findLibByProxy (std::string proxyTypeName) const
 
LibEntryPtr findLibByVariant (std::string variantTypeName) const
 
Ice::StringSeq findLibNames (const Ice::StringSeq &variantTypeNames, const Ice::StringSeq &proxyTypeNames={}) const
 
std::set< LibEntryPtr > findLibs (const Ice::StringSeq &variantTypeNames, const Ice::StringSeq &proxyTypeNames={}) const
 
std::string getDataTypeName (std::string variantBaseTypeName)
 
std::string getDebugInfo () const
 
std::vector< LibEntryPtr > getLibs () const
 
std::string getNestedBaseNameFromHumanName (std::string humanName)
 
std::string getNestedHumanNameFromBaseName (std::string variantBaseTypeName)
 
const std::map< std::string, std::string > & getPackagePaths () const
 
ProxyEntryPtr getProxyEntry (std::string proxyId)
 
std::string getReturnTypeName (std::string variantBaseTypeName)
 
VariantEntryPtr getVariantByHumanName (std::string humanName)
 
VariantEntryPtr getVariantByName (std::string variantBaseTypeName)
 
bool isBasic (std::string variantBaseTypeName)
 
bool isPackageLoaded (const std::string packageName) const
 
armarx::DynamicLibraryPtr loadLibraryOfVariant (std::string variantTypeName) const
 
std::vector< LibEntryPtr > readVariantInfo (RapidXmlReaderPtr reader, const std::string &packagePath, const std::string &packageName)
 
 VariantInfo ()
 

Static Public Member Functions

static VariantInfoPtr ReadInfoFiles (const std::vector< std::string > &packages, bool showErrors=true, bool throwOnError=true)
 
static VariantInfoPtr ReadInfoFilesRecursive (const std::string &rootPackageName, const std::string &rootPackagePath, bool showErrors, VariantInfoPtr variantInfo=VariantInfoPtr())
 

Member Typedef Documentation

◆ LibEntryPtr

using LibEntryPtr = std::shared_ptr<LibEntry>

◆ ProxyEntryPtr

using ProxyEntryPtr = std::shared_ptr<ProxyEntry>

◆ VariantEntryPtr

using VariantEntryPtr = std::shared_ptr<VariantEntry>

Member Enumeration Documentation

◆ ProxyType

enum ProxyType
Enumerator
SingleProxy 
Topic 

Constructor & Destructor Documentation

◆ VariantInfo()

Member Function Documentation

◆ findLibByProxy()

VariantInfo::LibEntryPtr findLibByProxy ( std::string proxyTypeName) const

◆ findLibByVariant()

VariantInfo::LibEntryPtr findLibByVariant ( std::string variantTypeName) const

◆ findLibNames()

Ice::StringSeq findLibNames ( const Ice::StringSeq & variantTypeNames,
const Ice::StringSeq & proxyTypeNames = {} ) const

◆ findLibs()

std::set< VariantInfo::LibEntryPtr > findLibs ( const Ice::StringSeq & variantTypeNames,
const Ice::StringSeq & proxyTypeNames = {} ) const

◆ getDataTypeName()

std::string getDataTypeName ( std::string variantBaseTypeName)

◆ getDebugInfo()

std::string getDebugInfo ( ) const

◆ getLibs()

std::vector< VariantInfo::LibEntryPtr > getLibs ( ) const

◆ getNestedBaseNameFromHumanName()

std::string getNestedBaseNameFromHumanName ( std::string humanName)

◆ getNestedHumanNameFromBaseName()

std::string getNestedHumanNameFromBaseName ( std::string variantBaseTypeName)

◆ getPackagePaths()

const std::map< std::string, std::string > & getPackagePaths ( ) const

◆ getProxyEntry()

VariantInfo::ProxyEntryPtr getProxyEntry ( std::string proxyId)

◆ getReturnTypeName()

std::string getReturnTypeName ( std::string variantBaseTypeName)

◆ getVariantByHumanName()

VariantInfo::VariantEntryPtr getVariantByHumanName ( std::string humanName)

◆ getVariantByName()

VariantInfo::VariantEntryPtr getVariantByName ( std::string variantBaseTypeName)

◆ isBasic()

bool isBasic ( std::string variantBaseTypeName)

◆ isPackageLoaded()

bool isPackageLoaded ( const std::string packageName) const

◆ loadLibraryOfVariant()

DynamicLibraryPtr loadLibraryOfVariant ( std::string variantTypeName) const

◆ ReadInfoFiles()

VariantInfoPtr ReadInfoFiles ( const std::vector< std::string > & packages,
bool showErrors = true,
bool throwOnError = true )
static

◆ ReadInfoFilesRecursive()

VariantInfoPtr ReadInfoFilesRecursive ( const std::string & rootPackageName,
const std::string & rootPackagePath,
bool showErrors,
VariantInfoPtr variantInfo = VariantInfoPtr() )
static

◆ readVariantInfo()

std::vector< VariantInfo::LibEntryPtr > readVariantInfo ( RapidXmlReaderPtr reader,
const std::string & packagePath,
const std::string & packageName )

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