ULDataSource is the abstract parent for classes that interface with data stored somewhere like a .uld or .ulc/.ull file or a database.
More...
#include <uldatasource.h>
ULDataSource is the abstract parent for classes that interface with data stored somewhere like a .uld or .ulc/.ull file or a database.
virtual ULDataSource::~ULDataSource |
( |
| ) |
|
|
inlinevirtual |
virtual ULError ULDataSource::attach |
( |
const ULString & |
dataSourceIdentifier | ) |
|
|
pure virtual |
Causes this ULDataSource object to be associated with the specified data source, and reads enough information from that data source to determine its language(s), etc.
The exact behavior of attach will be dependent on the nature of the data source. If the data source is a file, then attach will read header information from the file and then close the file to save memory until the data source is actually needed. On the other hand, if the data source is a remote database, then attach might open a connection, collect header information, and then close the connection.
- Returns
- ULError::NoError if the attachment is successful, or some other ULError value if not.
- Parameters
-
[in] | dataSourceIdentifier | A string describing the data source (e.g. a file name, a database connection string, a URL, etc.). |
Implemented in ULDictionaryDataSource, ULJSONDictionaryDataSource, and ULLanguageDataSource.
virtual ULError ULDataSource::close |
( |
| ) |
|
|
pure virtual |
virtual ULError ULDataSource::detach |
( |
| ) |
|
|
pure virtual |
virtual ULString ULDataSource::getDataSourceIdentifier |
( |
| ) |
|
|
pure virtual |
virtual ULDataSourceVersion ULDataSource::getVersion |
( |
| ) |
|
|
pure virtual |
virtual ULError ULDataSource::load |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: