Skip to content

cvedia::rt::iface::IdentityStore

Public Functions

Name
IdentityStore() =default
virtual ~IdentityStore() =default
IdentityStore(IdentityStore const & ) =delete
IdentityStore & operator=(IdentityStore const & ) =delete
virtual expected< void > setField(Uuid const & id, std::string const & key, std::string const & data) =0
virtual expected< std::string > getField(Uuid const & id, std::string const & key) =0
virtual expected< void > deleteField(Uuid const & id, std::string const & key) =0
virtual expected< void > deleteFields(Uuid const & id) =0
virtual expected< void > deleteEvents(Uuid const & id) =0
virtual expected< void > addEvent(Uuid const & id, std::chrono::milliseconds eventTime, std::string const & eventData) =0
virtual expected< std::vector< std::pair< std::chrono::milliseconds, std::string > > > getEvents(Uuid const & id, std::chrono::milliseconds startTime, std::chrono::milliseconds endTime) =0
virtual expected< std::vector< std::pair< std::chrono::milliseconds, std::string > > > getEvents(Uuid const & id) =0

Public Functions Documentation

function IdentityStore

IdentityStore() =default

function ~IdentityStore

virtual ~IdentityStore() =default

function IdentityStore

IdentityStore(
    IdentityStore const & 
) =delete

function operator=

IdentityStore & operator=(
    IdentityStore const & 
) =delete

function setField

virtual expected< void > setField(
    Uuid const & id,
    std::string const & key,
    std::string const & data
) =0

function getField

virtual expected< std::string > getField(
    Uuid const & id,
    std::string const & key
) =0

function deleteField

virtual expected< void > deleteField(
    Uuid const & id,
    std::string const & key
) =0

function deleteFields

virtual expected< void > deleteFields(
    Uuid const & id
) =0

function deleteEvents

virtual expected< void > deleteEvents(
    Uuid const & id
) =0

function addEvent

virtual expected< void > addEvent(
    Uuid const & id,
    std::chrono::milliseconds eventTime,
    std::string const & eventData
) =0

function getEvents

virtual expected< std::vector< std::pair< std::chrono::milliseconds, std::string > > > getEvents(
    Uuid const & id,
    std::chrono::milliseconds startTime,
    std::chrono::milliseconds endTime
) =0

function getEvents

virtual expected< std::vector< std::pair< std::chrono::milliseconds, std::string > > > getEvents(
    Uuid const & id
) =0