Class TextBlobResource

Inheritance Relationships

Base Type

Class Documentation

class TextBlobResource : public Cacao::BlobResource

The resource type for data blobs containing text.

Public Functions

inline const std::string &GetData()

Access the stored data.

Returns:

A constant reference to the data

Public Static Functions

static inline std::shared_ptr<TextBlobResource> Create(std::string &&data, const std::string &addr)

Create a new blob from text.

Parameters:
  • data – The text blob to store

  • addr – The resource address identifier to associate with the blob