ProfileReader Class Reference

#include <VisionX/libraries/armem_human/client/HumanProfileReader.h>

+ Inheritance diagram for ProfileReader:

Classes

struct  Query
 
struct  Result
 

Public Member Functions

std::vector< std::string > getPreferredDrinks (const std::string &firstName, const std::string &lastName, const std::string &providerName="All Profiles")
 Returns a list of a humans preferred drinks.
 
Result query (const Query &query, bool latest) const
 
armarx::armem::human::Person queryLatestProfileByName (const std::string &firstName, const std::string &lastName, const std::string &providerName="All Profiles")
 
armarx::armem::human::Preferences queryPreferences (const std::string &firstName, const std::string &lastName, const Duration &maxAge, const std::string &providerName="All Profiles")
 
 SimpleReaderBase ()
 
 ~ProfileReader () override
 
- Public Member Functions inherited from SimpleReaderBase
virtual void connect (armarx::armem::client::MemoryNameSystem &mns)
 
const Propertiesproperties () const
 
void registerPropertyDefinitions (armarx::PropertyDefinitionsPtr &def)
 
void setProperties (const Properties &p)
 
 SimpleReaderBase ()
 
virtual ~SimpleReaderBase ()=default
 

Protected Member Functions

std::vector< armarx::armem::human::PersonasPersonProfiles (const wm::ProviderSegment &providerSegment, const DateTime &timestamp, const Duration &maxAge) const
 
::armarx::armem::client::query::Builder buildLatestQuery (const Query &query) const
 
::armarx::armem::client::query::Builder buildQuery (const Query &query) const
 
Properties defaultProperties () const override
 
std::string propertyPrefix () const override
 
- Protected Member Functions inherited from SimpleReaderBase
const armem::client::ReadermemoryReader () const
 

Detailed Description

Definition at line 32 of file HumanProfileReader.h.

Constructor & Destructor Documentation

◆ ~ProfileReader()

~ProfileReader ( )
overridedefault

Member Function Documentation

◆ asPersonProfiles()

std::vector< armarx::armem::human::Person > asPersonProfiles ( const wm::ProviderSegment & providerSegment,
const DateTime & timestamp,
const Duration & maxAge ) const
protected

Definition at line 64 of file HumanProfileReader.cpp.

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

◆ buildLatestQuery()

armarx::armem::client::query::Builder buildLatestQuery ( const Query & query) const
protected

Definition at line 41 of file HumanProfileReader.cpp.

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

◆ buildQuery()

armarx::armem::client::query::Builder buildQuery ( const Query & query) const
protected

Definition at line 18 of file HumanProfileReader.cpp.

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

◆ defaultProperties()

armarx::armem::client::util::SimpleReaderBase::Properties defaultProperties ( ) const
overrideprotectedvirtual

Implements SimpleReaderBase.

Definition at line 110 of file HumanProfileReader.cpp.

◆ getPreferredDrinks()

std::vector< std::string > getPreferredDrinks ( const std::string & firstName,
const std::string & lastName,
const std::string & providerName = "All Profiles" )

Returns a list of a humans preferred drinks.

Parameters
firstNamefirst name of the human
lastNamelast name of the human
providerNamename of the profile provider
Returns
a list of strings where each string describes a drink (e.g. 'orange juice'). By convention, the first entry in the list can be used as the most favorite drink.

Definition at line 293 of file HumanProfileReader.cpp.

+ Here is the call graph for this function:

◆ propertyPrefix()

std::string propertyPrefix ( ) const
overrideprotectedvirtual

Implements SimpleReaderBase.

Definition at line 104 of file HumanProfileReader.cpp.

◆ query()

ProfileReader::Result query ( const Query & query,
bool latest ) const

Definition at line 116 of file HumanProfileReader.cpp.

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

◆ queryLatestProfileByName()

Person queryLatestProfileByName ( const std::string & firstName,
const std::string & lastName,
const std::string & providerName = "All Profiles" )

Definition at line 253 of file HumanProfileReader.cpp.

+ Here is the call graph for this function:

◆ queryPreferences()

Preferences queryPreferences ( const std::string & firstName,
const std::string & lastName,
const Duration & maxAge,
const std::string & providerName = "All Profiles" )

Definition at line 213 of file HumanProfileReader.cpp.

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

◆ SimpleReaderBase()

SimpleReaderBase ( )

Definition at line 49 of file SimpleReaderBase.cpp.


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