wxSQLite3  5.0.1
Loading...
Searching...
No Matches
wxSQLite3::StringCollection Class Reference

Represents a named string value collection. More...

#include <wxsqlite3.h>

Inheritance diagram for wxSQLite3::StringCollection:
wxSQLite3::NamedCollection

Public Member Functions

 StringCollection ()
 Default constructor.
 StringCollection (const StringCollection &collection)
 Copy constructor.
StringCollectionoperator= (const StringCollection &collection)
 Assignment constructor.
virtual ~StringCollection ()
 Destructor.
void Bind (const wxArrayString &stringCollection)
 Bind a new array of integer values.
Public Member Functions inherited from wxSQLite3::NamedCollection
 NamedCollection (const NamedCollection &collection)
 Copy constructor.
NamedCollectionoperator= (const NamedCollection &collection)
 Assignment constructor.
virtual ~NamedCollection ()
 Destructor.
const wxString & GetName () const
 Get the name of the collection.
bool IsOk () const
 Gets state of the collection.
 operator bool () const
 Gets state of the collection (same as IsOk() method).

Protected Member Functions

 StringCollection (const wxString &collectionName, void *collectionData)
 Constructor (internal use only).
Protected Member Functions inherited from wxSQLite3::NamedCollection
 NamedCollection (const wxString &collectionName, void *collectionData)
 Constructor (internal use only).
 NamedCollection ()
 Default constructor.

Friends

class Database

Additional Inherited Members

Protected Attributes inherited from wxSQLite3::NamedCollection
wxString m_name
 Name of the collection.
void * m_data
 Reference to the actual array of values representing the collection.

Detailed Description

Represents a named string value collection.

Constructor & Destructor Documentation

◆ StringCollection() [1/3]

wxSQLite3::StringCollection::StringCollection ( )
inline

Default constructor.

Creates completely empty collection instance that must be set by assignment, be careful

◆ StringCollection() [2/3]

wxSQLite3::StringCollection::StringCollection ( const StringCollection & collection)

Copy constructor.

◆ ~StringCollection()

virtual wxSQLite3::StringCollection::~StringCollection ( )
virtual

Destructor.

◆ StringCollection() [3/3]

wxSQLite3::StringCollection::StringCollection ( const wxString & collectionName,
void * collectionData )
protected

Constructor (internal use only).

Member Function Documentation

◆ Bind()

void wxSQLite3::StringCollection::Bind ( const wxArrayString & stringCollection)

Bind a new array of integer values.

Bind a new array of integer values to this named collection object.

Parameters
stringCollectionarray of integer values to be bound
Note
Binding values to a named collection after closing the corresponding database results in undefined behavior, i.e. the application is likely to crash.

◆ operator=()

StringCollection & wxSQLite3::StringCollection::operator= ( const StringCollection & collection)

Assignment constructor.

◆ Database

friend class Database
friend

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