FileSetItem

class kanzi::connect::FileSetItem

Container for file (name + content)

Public Functions

inline FileSetItem()

Default constructor.

FileSetItem(const string &filename, const string &filecontent)

C++ constructor.

Parameters
  • filename – the name of the file

  • filecontent – the contents of the file.

FileSetItem(const string &filename, const unsigned char *blob, size_t length)

C++ constructor.

Parameters
  • filename – the name of the file

  • blob – binary file content.

  • length – the size of blob.

const string &getContent() const

Access the contents.

Returns

the contents.

const string &getFilename() const

Access the filename.

Returns

the filename