Cloud::CloudWriter Class Reference
#include <AppCloud.h>
Public Member Functions | |
void checkElement (XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *element) | |
void checkText (XERCES_CPP_NAMESPACE_QUALIFIER DOMText *text) | |
void checkXML (XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node) | |
CloudWriter (const char *URL, const char *TokenAuth, const char *TokenSecret, const char *TCPPort, const char *Bucket) | |
void createBucket () | |
void pushCloud (const char *FileName, const char *data, long size) | |
void putNextEntry (const char *file) | |
virtual bool shouldWrite (const std::string &name, const Base::Persistence *Object) const | |
virtual std::ostream & Stream (void) | |
virtual void writeFiles (void) | |
process the requested file storing More... | |
virtual ~CloudWriter () | |
![]() | |
int getFileVersion () const | |
void insertAsciiFile (const char *FileName) | |
insert a file as CDATA section in the XML file More... | |
void insertBinFile (const char *FileName) | |
insert a binary file BASE64 coded as CDATA section in the XML file More... | |
bool isForceXML (void) | |
check on state More... | |
void setFileVersion (int) | |
void setForceXML (bool on) | |
switch the writer in XML only mode (no files allowed) More... | |
Writer (void) | |
virtual ~Writer () | |
std::string addFile (const char *Name, const Base::Persistence *Object) | |
add a write request of a persistent object More... | |
const std::vector< std::string > & getFilenames () const | |
get all registered file names More... | |
void setMode (const std::string &mode) | |
Set mode. More... | |
void setModes (const std::set< std::string > &modes) | |
Set modes. More... | |
bool getMode (const std::string &mode) const | |
Get mode. More... | |
std::set< std::string > getModes () const | |
Get modes. More... | |
void clearMode (const std::string &mode) | |
Clear mode. More... | |
void clearModes () | |
Clear modes. More... | |
void addError (const std::string &) | |
bool hasErrors () const | |
void clearErrors () | |
std::vector< std::string > getErrors () const | |
const char * ind (void) const | |
get the current indentation More... | |
void incInd (void) | |
increase indentation by one tab More... | |
void decInd (void) | |
decrease indentation by one tab More... | |
Public Attributes | |
char errorCode [1024] ="" | |
int print =0 | |
![]() | |
std::string ObjectName | |
name for underlying file saves More... | |
Protected Attributes | |
const char * Bucket | |
std::string FileName | |
std::stringstream FileStream | |
const char * TCPPort | |
const char * TokenAuth | |
const char * TokenSecret | |
const char * URL | |
![]() | |
std::vector< FileEntry > FileList | |
std::vector< std::string > FileNames | |
std::vector< std::string > Errors | |
std::set< std::string > Modes | |
short indent | |
char indBuf [1024] | |
bool forceXML | |
int fileVersion | |
Additional Inherited Members | |
![]() | |
std::string getUniqueFileName (const char *Name) | |
Constructor & Destructor Documentation
◆ CloudWriter()
Cloud::CloudWriter::CloudWriter | ( | const char * | URL, |
const char * | TokenAuth, | ||
const char * | TokenSecret, | ||
const char * | TCPPort, | ||
const char * | Bucket | ||
) |
◆ ~CloudWriter()
|
virtual |
Member Function Documentation
◆ checkElement()
void Cloud::CloudWriter::checkElement | ( | XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * | element | ) |
◆ checkText()
void Cloud::CloudWriter::checkText | ( | XERCES_CPP_NAMESPACE_QUALIFIER DOMText * | text | ) |
◆ checkXML()
void Cloud::CloudWriter::checkXML | ( | XERCES_CPP_NAMESPACE_QUALIFIER DOMNode * | node | ) |
◆ createBucket()
void Cloud::CloudWriter::createBucket | ( | ) |
◆ pushCloud()
void Cloud::CloudWriter::pushCloud | ( | const char * | FileName, |
const char * | data, | ||
long | size | ||
) |
◆ putNextEntry()
void Cloud::CloudWriter::putNextEntry | ( | const char * | file | ) |
References Cloud::CloudReader::file, Cloud::CloudReader::FileEntry::FileName, and Cloud::CloudReader::FileEntry::FileStream.
Referenced by Cloud::Module::cloudSave().
◆ shouldWrite()
|
virtual |
◆ Stream()
|
virtual |
Implements Base::Writer.
Referenced by Cloud::Module::cloudSave().
◆ writeFiles()
|
virtual |
process the requested file storing
Implements Base::Writer.
References Base::Writer::FileEntry::FileName, Base::Writer::FileEntry::Object, and Base::Persistence::SaveDocFile().
Referenced by Cloud::Module::cloudSave().
Member Data Documentation
◆ Bucket
|
protected |
◆ errorCode
char Cloud::CloudWriter::errorCode[1024] ="" |
◆ FileName
|
protected |
◆ FileStream
|
protected |
int Cloud::CloudWriter::print =0 |
◆ TCPPort
|
protected |
◆ TokenAuth
|
protected |
◆ TokenSecret
|
protected |
◆ URL
|
protected |
The documentation for this class was generated from the following files:
- src/Mod/Cloud/App/AppCloud.h
- src/Mod/Cloud/App/AppCloud.cpp