These options are loosely based on http://wiki.icub.org/wiki/YARP_ResourceFinder. More...
#include <yarp/os/ResourceFinderOptions.h>
Public Types | |
| enum | SearchLocations { NoLocation = 0x0000 , Directory = 0x0001 , Context = 0x0002 , Robot = 0x0004 , User = 0x0008 , Sysadmin = 0x0010 , Installed = 0x0020 , NearMainConfig = 0x0040 , ClassicContext = 0x1000 , Default = User | Sysadmin | Installed , ModuleDefault = Default | Robot | Context | Directory | ClassicContext | NearMainConfig } |
| enum | DuplicateFilesPolicy { First , All } |
| enum | SearchFlavor { ConfigLike = 0x0001 , DataLike = 0x0002 , ConfigAndDataLike = ConfigLike | DataLike } |
| enum | MessageFilter { ShowNone = 0x0000 , ShowDirectories = 0x0001 , ShowErrors = 0x0002 , ShowFromFlags = 0x0004 , ShowAll = ShowDirectories | ShowErrors } |
Public Member Functions | |
| ResourceFinderOptions (SearchLocations searchLocations=ModuleDefault, DuplicateFilesPolicy duplicateFilesPolicy=First, SearchFlavor searchFlavor=ConfigAndDataLike, const std::string &resourceType="", MessageFilter messageFilter=ShowFromFlags) | |
Static Public Member Functions | |
| static ResourceFinderOptions | findFirstMatch () |
| static ResourceFinderOptions | findAllMatch () |
Public Attributes | |
| SearchLocations | searchLocations |
| DuplicateFilesPolicy | duplicateFilesPolicy |
| SearchFlavor | searchFlavor |
| std::string | resourceType |
| MessageFilter | messageFilter |
These options are loosely based on http://wiki.icub.org/wiki/YARP_ResourceFinder.
For a User search location: YARP_CONFIG_HOME is only checked if the searchFlavor is ConfigLike YARP_DATA_HOME is only checked if the searchFlavor is DataLike
Definition at line 23 of file ResourceFinderOptions.h.
| Enumerator | |
|---|---|
| First | |
| All | |
Definition at line 42 of file ResourceFinderOptions.h.
| Enumerator | |
|---|---|
| ShowNone | |
| ShowDirectories | |
| ShowErrors | |
| ShowFromFlags | |
| ShowAll | |
Definition at line 55 of file ResourceFinderOptions.h.
| Enumerator | |
|---|---|
| ConfigLike | |
| DataLike | |
| ConfigAndDataLike | |
Definition at line 48 of file ResourceFinderOptions.h.
| Enumerator | |
|---|---|
| NoLocation | |
| Directory | |
| Context | |
| Robot | |
| User | |
| Sysadmin | |
| Installed | |
| NearMainConfig | |
| ClassicContext | |
| Default | |
| ModuleDefault | |
Definition at line 26 of file ResourceFinderOptions.h.
| ResourceFinderOptions::ResourceFinderOptions | ( | SearchLocations | searchLocations = ModuleDefault, |
| DuplicateFilesPolicy | duplicateFilesPolicy = First, |
||
| SearchFlavor | searchFlavor = ConfigAndDataLike, |
||
| const std::string & | resourceType = "", |
||
| MessageFilter | messageFilter = ShowFromFlags |
||
| ) |
Definition at line 10 of file ResourceFinderOptions.cpp.
|
inlinestatic |
Definition at line 81 of file ResourceFinderOptions.h.
|
inlinestatic |
Definition at line 76 of file ResourceFinderOptions.h.
| DuplicateFilesPolicy yarp::os::ResourceFinderOptions::duplicateFilesPolicy |
Definition at line 65 of file ResourceFinderOptions.h.
| MessageFilter yarp::os::ResourceFinderOptions::messageFilter |
Definition at line 68 of file ResourceFinderOptions.h.
| std::string yarp::os::ResourceFinderOptions::resourceType |
Definition at line 67 of file ResourceFinderOptions.h.
| SearchFlavor yarp::os::ResourceFinderOptions::searchFlavor |
Definition at line 66 of file ResourceFinderOptions.h.
| SearchLocations yarp::os::ResourceFinderOptions::searchLocations |
Definition at line 64 of file ResourceFinderOptions.h.