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< LibEntryPtrfindLibs (const Ice::StringSeq &variantTypeNames, const Ice::StringSeq &proxyTypeNames={}) const
 
std::string getDataTypeName (std::string variantBaseTypeName)
 
std::string getDebugInfo () const
 
std::vector< LibEntryPtrgetLibs () 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< LibEntryPtrreadVariantInfo (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())
 

Detailed Description

Definition at line 44 of file VariantInfo.h.

Member Typedef Documentation

◆ LibEntryPtr

using LibEntryPtr = std::shared_ptr<LibEntry>

Definition at line 172 of file VariantInfo.h.

◆ ProxyEntryPtr

using ProxyEntryPtr = std::shared_ptr<ProxyEntry>

Definition at line 71 of file VariantInfo.h.

◆ VariantEntryPtr

using VariantEntryPtr = std::shared_ptr<VariantEntry>

Definition at line 48 of file VariantInfo.h.

Member Enumeration Documentation

◆ ProxyType

enum ProxyType
Enumerator
SingleProxy 
Topic 

Definition at line 68 of file VariantInfo.h.

Constructor & Destructor Documentation

◆ VariantInfo()

Definition at line 43 of file VariantInfo.cpp.

+ Here is the caller graph for this function:

Member Function Documentation

◆ findLibByProxy()

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

Definition at line 93 of file VariantInfo.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findLibByVariant()

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

Definition at line 79 of file VariantInfo.cpp.

+ Here is the caller graph for this function:

◆ findLibNames()

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

Definition at line 110 of file VariantInfo.cpp.

+ Here is the call graph for this function:

◆ findLibs()

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

Definition at line 123 of file VariantInfo.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDataTypeName()

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

Definition at line 145 of file VariantInfo.cpp.

◆ getDebugInfo()

std::string getDebugInfo ( ) const

Definition at line 325 of file VariantInfo.cpp.

+ Here is the call graph for this function:

◆ getLibs()

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

Definition at line 191 of file VariantInfo.cpp.

+ Here is the caller graph for this function:

◆ getNestedBaseNameFromHumanName()

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

Definition at line 273 of file VariantInfo.cpp.

+ Here is the call graph for this function:

◆ getNestedHumanNameFromBaseName()

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

Definition at line 238 of file VariantInfo.cpp.

+ Here is the call graph for this function:

◆ getPackagePaths()

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

Definition at line 308 of file VariantInfo.cpp.

◆ getProxyEntry()

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

Definition at line 196 of file VariantInfo.cpp.

◆ getReturnTypeName()

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

Definition at line 159 of file VariantInfo.cpp.

◆ getVariantByHumanName()

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

Definition at line 224 of file VariantInfo.cpp.

+ Here is the caller graph for this function:

◆ getVariantByName()

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

Definition at line 210 of file VariantInfo.cpp.

+ Here is the caller graph for this function:

◆ isBasic()

bool isBasic ( std::string  variantBaseTypeName)

Definition at line 176 of file VariantInfo.cpp.

◆ isPackageLoaded()

bool isPackageLoaded ( const std::string  packageName) const

Definition at line 313 of file VariantInfo.cpp.

◆ loadLibraryOfVariant()

DynamicLibraryPtr loadLibraryOfVariant ( std::string  variantTypeName) const

Definition at line 467 of file VariantInfo.cpp.

+ Here is the call graph for this function:

◆ ReadInfoFiles()

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

Definition at line 414 of file VariantInfo.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ReadInfoFilesRecursive()

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

Definition at line 347 of file VariantInfo.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readVariantInfo()

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

Definition at line 47 of file VariantInfo.cpp.

+ Here is the call graph for this function:

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