AnnaDB 1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
annadb::Data Class Reference

Public Member Functions

 Data (std::string_view data) noexcept
 
template<tyson::TySonType T>
requires (T == tyson::TySonType::Objects || T == tyson::TySonType::IDs)
std::optional< tyson::TySonCollectionObjectget () noexcept
 

Constructor & Destructor Documentation

◆ Data()

annadb::Data::Data ( std::string_view  data)
inlineexplicitnoexcept

create a new Data object from the raw string

Parameters
data

Member Function Documentation

◆ get()

template<tyson::TySonType T>
requires (T == tyson::TySonType::Objects || T == tyson::TySonType::IDs)
std::optional< tyson::TySonCollectionObject > annadb::Data::get ( )
inlinenoexcept

the AnnaDB response can contains Objects or IDs which will be handled differently

Template Parameters
Tthe TySonType Objects or IDs
Returns
a TySonCollection which holds either the IDs or the Objects

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