Kanzi Connect  1.1.10
Kanzi Connect C++ API
kanzi::connect::FileSetItem Class Reference

Container for file (name + content) More...

#include <fileset.hpp>

Public Member Functions

 FileSetItem (const string &filename, const string &filecontent)
 C++ constructor. More...
 
 FileSetItem (const string &filename, const unsigned char *blob, size_t length)
 C++ constructor. More...
 
 FileSetItem ()
 Default constructor. More...
 
const string & getContent () const
 Access the contents. More...
 
const string & getFilename () const
 Access the filename. More...
 

Detailed Description

Container for file (name + content)

Constructor & Destructor Documentation

◆ FileSetItem() [1/3]

kanzi::connect::FileSetItem::FileSetItem ( const string &  filename,
const string &  filecontent 
)

C++ constructor.

Parameters
filenamethe name of the file
filecontentthe contents of the file.

◆ FileSetItem() [2/3]

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

C++ constructor.

Parameters
filenamethe name of the file
blobbinary file content.
lengththe size of blob.

◆ FileSetItem() [3/3]

kanzi::connect::FileSetItem::FileSetItem ( )
inline

Default constructor.

Member Function Documentation

◆ getContent()

const string& kanzi::connect::FileSetItem::getContent ( ) const

Access the contents.

Returns
the contents.

◆ getFilename()

const string& kanzi::connect::FileSetItem::getFilename ( ) const

Access the filename.

Returns
the filename

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