FinderBase< IDType, FinderInfoType > Class Template Referenceabstract

#include <RobotAPI/libraries/PriorKnowledge/core/FinderBase.h>

+ Inheritance diagram for FinderBase< IDType, FinderInfoType >:

Public Member Functions

virtual bool accept (const std::filesystem::path &idPath) const =0
 
virtual bool check (const IDType &id) const =0
 
virtual bool checkAll () const =0
 
virtual std::optional< FinderInfoType > find (const IDType &id) const =0
 
virtual std::vector< FinderInfoType > findAll () const =0
 
 FinderBase ()=delete
 
 FinderBase (const FinderBase &)=default
 
 FinderBase (const std::string &packageName, const std::filesystem::path &relDir)
 
 FinderBase (FinderBase &&)=default
 
std::filesystem::path getAbsolutePackagePath () const
 
std::filesystem::path getFullPath () const
 
std::string getPackageName () const
 
std::filesystem::path getRelativePath () const
 
FinderBaseoperator= (const FinderBase &)=default
 
FinderBaseoperator= (FinderBase &&)=default
 
void recalculateBasePath ()
 
void setRelativePath (const std::filesystem::path &p)
 
virtual ~FinderBase ()
 
- Public Member Functions inherited from Logging
SpamFilterDataPtr deactivateSpam (float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) const
 disables the logging for the current line for the given amount of seconds.
 
MessageTypeT getEffectiveLoggingLevel () const
 
 Logging ()
 
void setLocalMinimumLoggingLevel (MessageTypeT level)
 With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set.
 
void setTag (const LogTag &tag)
 
void setTag (const std::string &tagName)
 
virtual ~Logging ()
 

Protected Member Functions

void checkAbsolutePathIsValid () const
 
- Protected Member Functions inherited from Logging
bool checkLogLevel (MessageTypeT level) const
 
const LogSenderPtrgetLogSender () const
 Retrieve log sender.
 
LogSenderPtr loghelper (const char *file, int line, const char *function) const
 

Protected Attributes

std::string packageName
 
- Protected Attributes inherited from Logging
MessageTypeT minimumLoggingLevel
 
SpamFilterDataPtr spamFilter
 
LogTag tag
 

Detailed Description

template<class IDType, class FinderInfoType>
class armarx::priorknowledge::core::FinderBase< IDType, FinderInfoType >

Definition at line 19 of file FinderBase.h.

Constructor & Destructor Documentation

◆ FinderBase() [1/4]

template<class IDType, class FinderInfoType>
FinderBase ( )
delete

◆ FinderBase() [2/4]

template<class IDType, class FinderInfoType>
FinderBase ( const std::string & packageName,
const std::filesystem::path & relDir )
inline

Definition at line 24 of file FinderBase.h.

◆ ~FinderBase()

template<class IDType, class FinderInfoType>
virtual ~FinderBase ( )
inlinevirtual

Definition at line 49 of file FinderBase.h.

◆ FinderBase() [3/4]

template<class IDType, class FinderInfoType>
FinderBase ( FinderBase< IDType, FinderInfoType > && )
default

◆ FinderBase() [4/4]

template<class IDType, class FinderInfoType>
FinderBase ( const FinderBase< IDType, FinderInfoType > & )
default

Member Function Documentation

◆ accept()

template<class IDType, class FinderInfoType>
virtual bool accept ( const std::filesystem::path & idPath) const
pure virtual

Implemented in MotionFinder, NavigationGraphFinder, ObjectFinder, and RobotFinder.

+ Here is the caller graph for this function:

◆ check()

template<class IDType, class FinderInfoType>
virtual bool check ( const IDType & id) const
pure virtual

Implemented in DatasetFinderBase< IDType, DatasetType, FinderInfoType >, and PKFinder.

+ Here is the caller graph for this function:

◆ checkAbsolutePathIsValid()

template<class IDType, class FinderInfoType>
void checkAbsolutePathIsValid ( ) const
inlineprotected

Definition at line 98 of file FinderBase.h.

+ Here is the caller graph for this function:

◆ checkAll()

template<class IDType, class FinderInfoType>
virtual bool checkAll ( ) const
pure virtual

Implemented in DatasetFinderBase< IDType, DatasetType, FinderInfoType >, DatasetFinderBase< std::string, std::string, PKDatasetFinderInfo >, DatasetFinderBase< std::string, std::string, PKDatasetFinderInfo >, PKDatasetFinder, and PKFinder.

+ Here is the caller graph for this function:

◆ find()

template<class IDType, class FinderInfoType>
virtual std::optional< FinderInfoType > find ( const IDType & id) const
pure virtual

Implemented in DatasetFinderBase< IDType, DatasetType, FinderInfoType >, and PKFinder.

+ Here is the caller graph for this function:

◆ findAll()

template<class IDType, class FinderInfoType>
virtual std::vector< FinderInfoType > findAll ( ) const
pure virtual

Implemented in DatasetFinderBase< IDType, DatasetType, FinderInfoType >, DatasetFinderBase< std::string, std::string, PKDatasetFinderInfo >, DatasetFinderBase< std::string, std::string, PKDatasetFinderInfo >, PKDatasetFinder, and PKFinder.

+ Here is the caller graph for this function:

◆ getAbsolutePackagePath()

template<class IDType, class FinderInfoType>
std::filesystem::path getAbsolutePackagePath ( ) const
inline

Definition at line 77 of file FinderBase.h.

+ Here is the caller graph for this function:

◆ getFullPath()

template<class IDType, class FinderInfoType>
std::filesystem::path getFullPath ( ) const
inline

Definition at line 84 of file FinderBase.h.

+ Here is the caller graph for this function:

◆ getPackageName()

template<class IDType, class FinderInfoType>
std::string getPackageName ( ) const
inline

Definition at line 65 of file FinderBase.h.

+ Here is the caller graph for this function:

◆ getRelativePath()

template<class IDType, class FinderInfoType>
std::filesystem::path getRelativePath ( ) const
inline

Definition at line 71 of file FinderBase.h.

+ Here is the caller graph for this function:

◆ operator=() [1/2]

template<class IDType, class FinderInfoType>
FinderBase & operator= ( const FinderBase< IDType, FinderInfoType > & )
default

◆ operator=() [2/2]

template<class IDType, class FinderInfoType>
FinderBase & operator= ( FinderBase< IDType, FinderInfoType > && )
default

◆ recalculateBasePath()

template<class IDType, class FinderInfoType>
void recalculateBasePath ( )
inline

Definition at line 31 of file FinderBase.h.

+ Here is the caller graph for this function:

◆ setRelativePath()

template<class IDType, class FinderInfoType>
void setRelativePath ( const std::filesystem::path & p)
inline

Definition at line 59 of file FinderBase.h.

Member Data Documentation

◆ packageName

template<class IDType, class FinderInfoType>
std::string packageName
protected

Definition at line 109 of file FinderBase.h.


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