|
| DirectoryDS (const String &_directory="", const String &_pattern="", int _showPolicy=0) |
|
int | showPolicy () const |
|
void | showPolicy (int type) |
|
void | directory (const String &d) |
|
String | directory () const |
|
void | pattern (const String &wildcards) |
|
bool | open () override |
|
| MemoryDS ()=default |
|
| MemoryDS (const MemoryDS &other)=delete |
|
| MemoryDS (MemoryDS &&other) noexcept |
|
MemoryDS & | operator= (const MemoryDS &other)=delete |
|
MemoryDS & | operator= (MemoryDS &&other) noexcept |
|
virtual void | clear () |
|
virtual FieldList & | current () |
|
Field & | operator[] (size_t fieldIndex) override |
|
Field & | operator[] (const String &fieldName) override |
|
size_t | fieldCount () const override |
|
size_t | recordCount () const override |
|
bool | readField (const char *fieldName, Variant &fieldValue) override |
|
bool | writeField (const char *fieldName, const Variant &fieldValue) override |
|
bool | open () override |
|
bool | close () override |
|
bool | first () override |
|
bool | next () override |
|
bool | prior () override |
|
bool | last () override |
|
bool | find (const String &fieldName, const Variant &position) override |
|
bool | eof () const override |
|
bool | empty () const |
|
std::list< FieldList > & | rows () |
|
const std::list< FieldList > & | rows () const |
|
void | push_back (FieldList &&fieldList) |
|
| DataSource ()=default |
|
virtual | ~DataSource ()=default |
|
virtual Field & | operator[] (size_t fieldIndex)=0 |
|
virtual Field & | operator[] (const String &fieldName)=0 |
|
virtual size_t | fieldCount () const =0 |
|
virtual size_t | recordCount () const =0 |
|
virtual bool | readField (const char *fieldName, Variant &fieldValue)=0 |
|
virtual bool | writeField (const char *fieldName, const Variant &fieldValue)=0 |
|
virtual bool | open () |
|
virtual bool | close () |
|
virtual bool | first () |
|
virtual bool | next () |
|
virtual bool | prior () |
|
virtual bool | last () |
|
virtual bool | find (const String &, const Variant &) |
|
virtual bool | eof () const |
|
bool | load () |
|
bool | save () |
|
void | exportRowTo (const xdoc::SNode &node, bool compactXmlMode, bool nullLargeData=false) |
|
virtual void | exportTo (xdoc::Node &parentNode, const String &nodeName, bool compactXmlMode) |
|
Directory datasource.
A datasource with the list of files and directories along with their attributes. It works just as any other datasource. You set up the parameters, call open() and may use the list. Method close() should be called aftewards to release any allocated resourses.