fennel::FennelResource Class Reference

#include <FennelResource.h>

Inheritance diagram for fennel::FennelResource:

ResourceBundle List of all members.

Public Member Functions

virtual ~FennelResource ()
std::string sysCallFailed (const std::string &p0) const
 sysCallFailed is 'System call failed: {0}'
std::string duplicateKeyDetected (const std::string &p0) const
 duplicateKeyDetected is 'Duplicate key detected: {0}'
std::string internalError (const std::string &p0) const
 internalError is 'Internal error: {0}'
std::string executionAborted () const
 executionAborted is 'Execution aborted'
std::string rowTooLong (int p0, int p1, const std::string &p2) const
 rowTooLong is 'Row size ({0,number,#} bytes) exceeds maximum ({1,number,#} bytes); row data: {2}'
std::string invalidParam (const std::string &p0, const std::string &p1) const
 invalidParam is 'Invalid parameter setting.
std::string scalarQueryReturnedMultipleRows () const
 scalarQueryReturnedMultipleRows is 'Scalar query returned more than one row'
std::string scratchMemExhausted () const
 scratchMemExhausted is 'Cache scratch memory exhausted'
std::string uniqueConstraintViolated () const
 uniqueConstraintViolated is 'Unique constraint violation'
std::string incompatibleDataFormat () const
 incompatibleDataFormat is 'Incompatible data format encountered'
std::string libaioRequired () const
 libaioRequired is 'Linux requires libaio package'
std::string unsupportedOperation (const std::string &p0) const
 unsupportedOperation is 'Unsupported operation: {0}'
std::string outOfBackupSpace () const
 outOfBackupSpace is 'Insufficient space to execute system backup'
std::string mismatchedRestore () const
 mismatchedRestore is 'Commit sequence number in the restore does not match the expected value'
std::string openBackupFileFailed (const std::string &p0) const
 openBackupFileFailed is 'Open of backup file {0} failed'
std::string readBackupFileFailed (const std::string &p0) const
 readBackupFileFailed is 'Read from backup file {0} failed'
std::string writeBackupFileFailed (const std::string &p0) const
 writeBackupFileFailed is 'Write to backup file {0} failed'
std::string readDataPageFailed () const
 readDataPageFailed is 'Read of data page failed'
std::string writeDataPageFailed () const
 writeDataPageFailed is 'Write of data page failed'
std::string outOfSpaceDuringRestore () const
 outOfSpaceDuringRestore is 'Insufficient disk space to restore backup'
std::string bitmapEntryTooLong (int p0, int p1, const std::string &p2) const
 bitmapEntryTooLong is 'Bitmap entry size ({0,number,#} bytes) exceeds maximum ({1,number,#} bytes); key value: {2}'
std::string readDataFailed (const std::string &p0) const
 readDataFailed is 'Could not read data file {0}'
std::string dataTransferFailed (const std::string &p0, int p1) const
 dataTransferFailed is 'Could not access file {0} (size {1,number,#} bytes)'
std::string writeLogFailed (const std::string &p0) const
 writeLogFailed is 'Could not write log file {0}'
std::string noRowsReturned (const std::string &p0, const std::string &p1) const
 noRowsReturned is 'Read no rows from file {0}; last error was: {1}'
std::string errorsEncountered (const std::string &p0, const std::string &p1) const
 errorsEncountered is 'Encountered errors while processing file {0}; please see log file {1} for more information'
std::string noRowDelimiter (const std::string &p0) const
 noRowDelimiter is 'Data file {0} has no row delimiter'
std::string incompleteColumn () const
 incompleteColumn is 'Column has no delimiter'
std::string noColumnDelimiter () const
 noColumnDelimiter is 'Row has no column delimiter'
std::string tooFewColumns () const
 tooFewColumns is 'Row has too few columns'
std::string tooManyColumns () const
 tooManyColumns is 'Row has too many columns'
std::string rowTextTooLong () const
 rowTextTooLong is 'Row text was too large'
std::string flatfileDescribeFailed (const std::string &p0) const
 flatfileDescribeFailed is 'Could not derive column sizes for data file {0}'
std::string flatfileNoHeader (const std::string &p0, const std::string &p1) const
 flatfileNoHeader is 'Could not read header from data file {0}: {1}'
std::string flatfileMappedRequiresLenient () const
 flatfileMappedRequiresLenient is 'Flat file columns cannot be mapped without lenient mode'
std::string flatfileNoMappedColumns (const std::string &p0, const std::string &p1) const
 flatfileNoMappedColumns is 'Could not map flat file columns because the flat file header {0} contained none of the target columns {1}'

Static Public Member Functions

static const FennelResourceinstance ()
static const FennelResourceinstance (const Locale &locale)
static void setResourceFileLocation (const std::string &location)

Protected Member Functions

 FennelResource (Locale locale)

Private Member Functions

void setParent (ResourceBundle *bundle)
const set< string > getKeys () const
const string & getMessage (const string &key) const
bool hasMessage (const string &key) const
const string & getBaseName () const
const LocalegetLocale () const

Static Private Member Functions

static void setGlobalResourceFileLocation (const string &location)
static RecursiveMutexgetMutex ()

Private Attributes

ResourceDefinition _sysCallFailed
ResourceDefinition _duplicateKeyDetected
ResourceDefinition _internalError
ResourceDefinition _executionAborted
ResourceDefinition _rowTooLong
ResourceDefinition _invalidParam
ResourceDefinition _scalarQueryReturnedMultipleRows
ResourceDefinition _scratchMemExhausted
ResourceDefinition _uniqueConstraintViolated
ResourceDefinition _incompatibleDataFormat
ResourceDefinition _libaioRequired
ResourceDefinition _unsupportedOperation
ResourceDefinition _outOfBackupSpace
ResourceDefinition _mismatchedRestore
ResourceDefinition _openBackupFileFailed
ResourceDefinition _readBackupFileFailed
ResourceDefinition _writeBackupFileFailed
ResourceDefinition _readDataPageFailed
ResourceDefinition _writeDataPageFailed
ResourceDefinition _outOfSpaceDuringRestore
ResourceDefinition _bitmapEntryTooLong
ResourceDefinition _readDataFailed
ResourceDefinition _dataTransferFailed
ResourceDefinition _writeLogFailed
ResourceDefinition _noRowsReturned
ResourceDefinition _errorsEncountered
ResourceDefinition _noRowDelimiter
ResourceDefinition _incompleteColumn
ResourceDefinition _noColumnDelimiter
ResourceDefinition _tooFewColumns
ResourceDefinition _tooManyColumns
ResourceDefinition _rowTextTooLong
ResourceDefinition _flatfileDescribeFailed
ResourceDefinition _flatfileNoHeader
ResourceDefinition _flatfileMappedRequiresLenient
ResourceDefinition _flatfileNoMappedColumns

Friends

template<class _GRB, class _BC, class _BC_ITER>
_GRB * makeInstance (_BC &bundleCache, const Locale &locale)

Detailed Description

Definition at line 30 of file FennelResource.h.


Constructor & Destructor Documentation

fennel::FennelResource::FennelResource ( Locale  locale  )  [explicit, protected]

Definition at line 45 of file FennelResource.cpp.

00046     : ResourceBundle(BASENAME, locale, bundleLocation),
00047       _sysCallFailed(this, "sysCallFailed"),
00048       _duplicateKeyDetected(this, "duplicateKeyDetected"),
00049       _internalError(this, "internalError"),
00050       _executionAborted(this, "executionAborted"),
00051       _rowTooLong(this, "rowTooLong"),
00052       _invalidParam(this, "invalidParam"),
00053       _scalarQueryReturnedMultipleRows(this, "scalarQueryReturnedMultipleRows"),
00054       _scratchMemExhausted(this, "scratchMemExhausted"),
00055       _uniqueConstraintViolated(this, "uniqueConstraintViolated"),
00056       _incompatibleDataFormat(this, "incompatibleDataFormat"),
00057       _libaioRequired(this, "libaioRequired"),
00058       _unsupportedOperation(this, "unsupportedOperation"),
00059       _outOfBackupSpace(this, "outOfBackupSpace"),
00060       _mismatchedRestore(this, "mismatchedRestore"),
00061       _openBackupFileFailed(this, "openBackupFileFailed"),
00062       _readBackupFileFailed(this, "readBackupFileFailed"),
00063       _writeBackupFileFailed(this, "writeBackupFileFailed"),
00064       _readDataPageFailed(this, "readDataPageFailed"),
00065       _writeDataPageFailed(this, "writeDataPageFailed"),
00066       _outOfSpaceDuringRestore(this, "outOfSpaceDuringRestore"),
00067       _bitmapEntryTooLong(this, "bitmapEntryTooLong"),
00068       _readDataFailed(this, "readDataFailed"),
00069       _dataTransferFailed(this, "dataTransferFailed"),
00070       _writeLogFailed(this, "writeLogFailed"),
00071       _noRowsReturned(this, "noRowsReturned"),
00072       _errorsEncountered(this, "errorsEncountered"),
00073       _noRowDelimiter(this, "noRowDelimiter"),
00074       _incompleteColumn(this, "incompleteColumn"),
00075       _noColumnDelimiter(this, "noColumnDelimiter"),
00076       _tooFewColumns(this, "tooFewColumns"),
00077       _tooManyColumns(this, "tooManyColumns"),
00078       _rowTextTooLong(this, "rowTextTooLong"),
00079       _flatfileDescribeFailed(this, "flatfileDescribeFailed"),
00080       _flatfileNoHeader(this, "flatfileNoHeader"),
00081       _flatfileMappedRequiresLenient(this, "flatfileMappedRequiresLenient"),
00082       _flatfileNoMappedColumns(this, "flatfileNoMappedColumns")
00083 {
00084 }

virtual fennel::FennelResource::~FennelResource (  )  [inline, virtual]

Definition at line 36 of file FennelResource.h.

00037     {
00038     }


Member Function Documentation

const FennelResource & fennel::FennelResource::instance (  )  [static]

Definition at line 30 of file FennelResource.cpp.

References Locale::getDefault().

00031 {
00032     return FennelResource::instance(Locale::getDefault());
00033 }

const FennelResource & fennel::FennelResource::instance ( const Locale locale  )  [static]

Definition at line 35 of file FennelResource.cpp.

References fennel::bundleCache.

00036 {
00037     return *makeInstance<FennelResource, FennelResourceBundleCache, FennelResourceBundleCache::iterator>(bundleCache, locale);
00038 }

static void fennel::FennelResource::setResourceFileLocation ( const std::string &  location  )  [static]

string fennel::FennelResource::sysCallFailed ( const std::string &  p0  )  const

sysCallFailed is 'System call failed: {0}'

Definition at line 86 of file FennelResource.cpp.

References _sysCallFailed, and ResourceDefinition::format().

00087 {
00088     return _sysCallFailed.format(p0);
00089 }

string fennel::FennelResource::duplicateKeyDetected ( const std::string &  p0  )  const

duplicateKeyDetected is 'Duplicate key detected: {0}'

Definition at line 90 of file FennelResource.cpp.

References _duplicateKeyDetected, and ResourceDefinition::format().

00091 {
00092     return _duplicateKeyDetected.format(p0);
00093 }

string fennel::FennelResource::internalError ( const std::string &  p0  )  const

internalError is 'Internal error: {0}'

Definition at line 94 of file FennelResource.cpp.

References _internalError, and ResourceDefinition::format().

00095 {
00096     return _internalError.format(p0);
00097 }

string fennel::FennelResource::executionAborted (  )  const

executionAborted is 'Execution aborted'

Definition at line 98 of file FennelResource.cpp.

References _executionAborted, and ResourceDefinition::format().

00099 {
00100     return _executionAborted.format();
00101 }

string fennel::FennelResource::rowTooLong ( int  p0,
int  p1,
const std::string &  p2 
) const

rowTooLong is 'Row size ({0,number,#} bytes) exceeds maximum ({1,number,#} bytes); row data: {2}'

Definition at line 102 of file FennelResource.cpp.

References _rowTooLong, and ResourceDefinition::format().

00103 {
00104     return _rowTooLong.format(p0, p1, p2);
00105 }

string fennel::FennelResource::invalidParam ( const std::string &  p0,
const std::string &  p1 
) const

invalidParam is 'Invalid parameter setting.

Setting must be between {0} and {1}.'

Definition at line 106 of file FennelResource.cpp.

References _invalidParam, and ResourceDefinition::format().

00107 {
00108     return _invalidParam.format(p0, p1);
00109 }

string fennel::FennelResource::scalarQueryReturnedMultipleRows (  )  const

scalarQueryReturnedMultipleRows is 'Scalar query returned more than one row'

Definition at line 110 of file FennelResource.cpp.

References _scalarQueryReturnedMultipleRows, and ResourceDefinition::format().

00111 {
00112     return _scalarQueryReturnedMultipleRows.format();
00113 }

string fennel::FennelResource::scratchMemExhausted (  )  const

scratchMemExhausted is 'Cache scratch memory exhausted'

Definition at line 114 of file FennelResource.cpp.

References _scratchMemExhausted, and ResourceDefinition::format().

00115 {
00116     return _scratchMemExhausted.format();
00117 }

string fennel::FennelResource::uniqueConstraintViolated (  )  const

uniqueConstraintViolated is 'Unique constraint violation'

Definition at line 118 of file FennelResource.cpp.

References _uniqueConstraintViolated, and ResourceDefinition::format().

00119 {
00120     return _uniqueConstraintViolated.format();
00121 }

string fennel::FennelResource::incompatibleDataFormat (  )  const

incompatibleDataFormat is 'Incompatible data format encountered'

Definition at line 122 of file FennelResource.cpp.

References _incompatibleDataFormat, and ResourceDefinition::format().

00123 {
00124     return _incompatibleDataFormat.format();
00125 }

string fennel::FennelResource::libaioRequired (  )  const

libaioRequired is 'Linux requires libaio package'

Definition at line 126 of file FennelResource.cpp.

References _libaioRequired, and ResourceDefinition::format().

00127 {
00128     return _libaioRequired.format();
00129 }

string fennel::FennelResource::unsupportedOperation ( const std::string &  p0  )  const

unsupportedOperation is 'Unsupported operation: {0}'

Definition at line 130 of file FennelResource.cpp.

References _unsupportedOperation, and ResourceDefinition::format().

00131 {
00132     return _unsupportedOperation.format(p0);
00133 }

string fennel::FennelResource::outOfBackupSpace (  )  const

outOfBackupSpace is 'Insufficient space to execute system backup'

Definition at line 134 of file FennelResource.cpp.

References _outOfBackupSpace, and ResourceDefinition::format().

00135 {
00136     return _outOfBackupSpace.format();
00137 }

string fennel::FennelResource::mismatchedRestore (  )  const

mismatchedRestore is 'Commit sequence number in the restore does not match the expected value'

Definition at line 138 of file FennelResource.cpp.

References _mismatchedRestore, and ResourceDefinition::format().

00139 {
00140     return _mismatchedRestore.format();
00141 }

string fennel::FennelResource::openBackupFileFailed ( const std::string &  p0  )  const

openBackupFileFailed is 'Open of backup file {0} failed'

Definition at line 142 of file FennelResource.cpp.

References _openBackupFileFailed, and ResourceDefinition::format().

00143 {
00144     return _openBackupFileFailed.format(p0);
00145 }

string fennel::FennelResource::readBackupFileFailed ( const std::string &  p0  )  const

readBackupFileFailed is 'Read from backup file {0} failed'

Definition at line 146 of file FennelResource.cpp.

References _readBackupFileFailed, and ResourceDefinition::format().

00147 {
00148     return _readBackupFileFailed.format(p0);
00149 }

string fennel::FennelResource::writeBackupFileFailed ( const std::string &  p0  )  const

writeBackupFileFailed is 'Write to backup file {0} failed'

Definition at line 150 of file FennelResource.cpp.

References _writeBackupFileFailed, and ResourceDefinition::format().

00151 {
00152     return _writeBackupFileFailed.format(p0);
00153 }

string fennel::FennelResource::readDataPageFailed (  )  const

readDataPageFailed is 'Read of data page failed'

Definition at line 154 of file FennelResource.cpp.

References _readDataPageFailed, and ResourceDefinition::format().

00155 {
00156     return _readDataPageFailed.format();
00157 }

string fennel::FennelResource::writeDataPageFailed (  )  const

writeDataPageFailed is 'Write of data page failed'

Definition at line 158 of file FennelResource.cpp.

References _writeDataPageFailed, and ResourceDefinition::format().

00159 {
00160     return _writeDataPageFailed.format();
00161 }

string fennel::FennelResource::outOfSpaceDuringRestore (  )  const

outOfSpaceDuringRestore is 'Insufficient disk space to restore backup'

Definition at line 162 of file FennelResource.cpp.

References _outOfSpaceDuringRestore, and ResourceDefinition::format().

00163 {
00164     return _outOfSpaceDuringRestore.format();
00165 }

string fennel::FennelResource::bitmapEntryTooLong ( int  p0,
int  p1,
const std::string &  p2 
) const

bitmapEntryTooLong is 'Bitmap entry size ({0,number,#} bytes) exceeds maximum ({1,number,#} bytes); key value: {2}'

Definition at line 166 of file FennelResource.cpp.

References _bitmapEntryTooLong, and ResourceDefinition::format().

00167 {
00168     return _bitmapEntryTooLong.format(p0, p1, p2);
00169 }

string fennel::FennelResource::readDataFailed ( const std::string &  p0  )  const

readDataFailed is 'Could not read data file {0}'

Definition at line 170 of file FennelResource.cpp.

References _readDataFailed, and ResourceDefinition::format().

00171 {
00172     return _readDataFailed.format(p0);
00173 }

string fennel::FennelResource::dataTransferFailed ( const std::string &  p0,
int  p1 
) const

dataTransferFailed is 'Could not access file {0} (size {1,number,#} bytes)'

Definition at line 174 of file FennelResource.cpp.

References _dataTransferFailed, and ResourceDefinition::format().

00175 {
00176     return _dataTransferFailed.format(p0, p1);
00177 }

string fennel::FennelResource::writeLogFailed ( const std::string &  p0  )  const

writeLogFailed is 'Could not write log file {0}'

Definition at line 178 of file FennelResource.cpp.

References _writeLogFailed, and ResourceDefinition::format().

00179 {
00180     return _writeLogFailed.format(p0);
00181 }

string fennel::FennelResource::noRowsReturned ( const std::string &  p0,
const std::string &  p1 
) const

noRowsReturned is 'Read no rows from file {0}; last error was: {1}'

Definition at line 182 of file FennelResource.cpp.

References _noRowsReturned, and ResourceDefinition::format().

00183 {
00184     return _noRowsReturned.format(p0, p1);
00185 }

string fennel::FennelResource::errorsEncountered ( const std::string &  p0,
const std::string &  p1 
) const

errorsEncountered is 'Encountered errors while processing file {0}; please see log file {1} for more information'

Definition at line 186 of file FennelResource.cpp.

References _errorsEncountered, and ResourceDefinition::format().

00187 {
00188     return _errorsEncountered.format(p0, p1);
00189 }

string fennel::FennelResource::noRowDelimiter ( const std::string &  p0  )  const

noRowDelimiter is 'Data file {0} has no row delimiter'

Definition at line 190 of file FennelResource.cpp.

References _noRowDelimiter, and ResourceDefinition::format().

00191 {
00192     return _noRowDelimiter.format(p0);
00193 }

string fennel::FennelResource::incompleteColumn (  )  const

incompleteColumn is 'Column has no delimiter'

Definition at line 194 of file FennelResource.cpp.

References _incompleteColumn, and ResourceDefinition::format().

00195 {
00196     return _incompleteColumn.format();
00197 }

string fennel::FennelResource::noColumnDelimiter (  )  const

noColumnDelimiter is 'Row has no column delimiter'

Definition at line 198 of file FennelResource.cpp.

References _noColumnDelimiter, and ResourceDefinition::format().

00199 {
00200     return _noColumnDelimiter.format();
00201 }

string fennel::FennelResource::tooFewColumns (  )  const

tooFewColumns is 'Row has too few columns'

Definition at line 202 of file FennelResource.cpp.

References _tooFewColumns, and ResourceDefinition::format().

00203 {
00204     return _tooFewColumns.format();
00205 }

string fennel::FennelResource::tooManyColumns (  )  const

tooManyColumns is 'Row has too many columns'

Definition at line 206 of file FennelResource.cpp.

References _tooManyColumns, and ResourceDefinition::format().

00207 {
00208     return _tooManyColumns.format();
00209 }

string fennel::FennelResource::rowTextTooLong (  )  const

rowTextTooLong is 'Row text was too large'

Definition at line 210 of file FennelResource.cpp.

References _rowTextTooLong, and ResourceDefinition::format().

00211 {
00212     return _rowTextTooLong.format();
00213 }

string fennel::FennelResource::flatfileDescribeFailed ( const std::string &  p0  )  const

flatfileDescribeFailed is 'Could not derive column sizes for data file {0}'

Definition at line 214 of file FennelResource.cpp.

References _flatfileDescribeFailed, and ResourceDefinition::format().

00215 {
00216     return _flatfileDescribeFailed.format(p0);
00217 }

string fennel::FennelResource::flatfileNoHeader ( const std::string &  p0,
const std::string &  p1 
) const

flatfileNoHeader is 'Could not read header from data file {0}: {1}'

Definition at line 218 of file FennelResource.cpp.

References _flatfileNoHeader, and ResourceDefinition::format().

00219 {
00220     return _flatfileNoHeader.format(p0, p1);
00221 }

string fennel::FennelResource::flatfileMappedRequiresLenient (  )  const

flatfileMappedRequiresLenient is 'Flat file columns cannot be mapped without lenient mode'

Definition at line 222 of file FennelResource.cpp.

References _flatfileMappedRequiresLenient, and ResourceDefinition::format().

00223 {
00224     return _flatfileMappedRequiresLenient.format();
00225 }

string fennel::FennelResource::flatfileNoMappedColumns ( const std::string &  p0,
const std::string &  p1 
) const

flatfileNoMappedColumns is 'Could not map flat file columns because the flat file header {0} contained none of the target columns {1}'

Definition at line 226 of file FennelResource.cpp.

References _flatfileNoMappedColumns, and ResourceDefinition::format().

00227 {
00228     return _flatfileNoMappedColumns.format(p0, p1);
00229 }

void ResourceBundle::setParent ( ResourceBundle bundle  )  [protected, inherited]

Definition at line 71 of file ResourceBundle.cpp.

References ResourceBundle::_parent.

00072 {
00073     _parent = bundle;
00074 }

const set< string > ResourceBundle::getKeys (  )  const [inherited]

Definition at line 76 of file ResourceBundle.cpp.

References ResourceBundle::_messages, ResourceBundle::_parent, and ResourceBundle::getKeys().

Referenced by ResourceBundle::getKeys().

00077 {
00078     set<string> keys;
00079 
00080     map<string, string>::const_iterator iter = _messages.begin(),
00081         end = _messages.end();
00082 
00083     while (iter != end) {
00084         keys.insert((*iter).first);
00085         iter++;
00086     }
00087 
00088     if (_parent) {
00089         set<string> parentKeys = _parent->getKeys();
00090 
00091         keys.insert(parentKeys.begin(), parentKeys.end());
00092     }
00093 
00094     return keys;
00095 }

const string & ResourceBundle::getMessage ( const string &  key  )  const [inherited]

Definition at line 99 of file ResourceBundle.cpp.

References ResourceBundle::_messages, ResourceBundle::_parent, and MISSING_KEY().

Referenced by ResourceDefinition::format(), and ResourceDefinition::prepareFormatter().

00100 {
00101     map<string, string>::const_iterator iter;
00102     iter = _messages.find(key);
00103     if (iter == _messages.end()) {
00104         if (_parent) {
00105             return _parent->getMessage(key);
00106         }
00107 
00108         return MISSING_KEY;
00109     }
00110 
00111     return (*iter).second;
00112 }

bool ResourceBundle::hasMessage ( const string &  key  )  const [inherited]

Definition at line 115 of file ResourceBundle.cpp.

References ResourceBundle::_messages, ResourceBundle::_parent, and ResourceBundle::hasMessage().

Referenced by ResourceDefinition::format(), ResourceBundle::hasMessage(), and ResourceDefinition::prepareFormatter().

00116 {
00117     return
00118         _messages.find(key) != _messages.end()
00119         || (_parent && _parent->hasMessage(key));
00120 }

const string & ResourceBundle::getBaseName (  )  const [inherited]

Definition at line 128 of file ResourceBundle.cpp.

References ResourceBundle::_baseName.

Referenced by ResourceDefinition::format(), and ResourceDefinition::prepareFormatter().

00129 {
00130     return _baseName;
00131 }

const Locale & ResourceBundle::getLocale (  )  const [inherited]

Definition at line 122 of file ResourceBundle.cpp.

References ResourceBundle::_locale.

Referenced by ResourceDefinition::format(), and ResourceDefinition::prepareFormatter().

00123 {
00124     return _locale;
00125 }

void ResourceBundle::setGlobalResourceFileLocation ( const string &  location  )  [static, inherited]

Definition at line 50 of file ResourceBundle.cpp.

References globalResourceLocation().

00051 {
00052     globalResourceLocation = location;
00053 }

RecursiveMutex & ResourceBundle::getMutex (  )  [static, inherited]

Definition at line 45 of file ResourceBundle.cpp.

References ResourceBundle::mutex.

Referenced by makeInstance().

00046 {
00047     return mutex;
00048 }


Friends And Related Function Documentation

template<class _GRB, class _BC, class _BC_ITER>
_GRB* makeInstance ( _BC &  bundleCache,
const Locale locale 
) [friend]

Definition at line 88 of file ResourceBundle.h.

00091 {
00092     RecursiveMutexGuard mutexGuard(ResourceBundle::getMutex());
00093 
00094     _BC_ITER iter = bundleCache.find(locale);
00095     if (iter == bundleCache.end()) {
00096         _GRB *bundle = new _GRB(locale);
00097 
00098         if (locale.hasParentLocale()) {
00099             // lookup the parent bundle
00100             _GRB *parentBundle = makeInstance<_GRB, _BC, _BC_ITER>(
00101                 bundleCache,
00102                 locale.getParentLocale());
00103 
00104             bundle->setParent(parentBundle);
00105         } else if (locale != Locale("")) {
00106             // lookup the default bundle
00107             _GRB *defaultBundle = makeInstance<_GRB, _BC, _BC_ITER>(
00108                 bundleCache,
00109                 Locale(""));
00110 
00111             bundle->setParent(defaultBundle);
00112         }
00113 
00114         bundleCache[locale] = bundle;
00115         return bundle;
00116     }
00117 
00118     return (*iter).second;
00119 }


Member Data Documentation

ResourceDefinition fennel::FennelResource::_sysCallFailed [private]

Definition at line 226 of file FennelResource.h.

Referenced by sysCallFailed().

ResourceDefinition fennel::FennelResource::_duplicateKeyDetected [private]

Definition at line 227 of file FennelResource.h.

Referenced by duplicateKeyDetected().

ResourceDefinition fennel::FennelResource::_internalError [private]

Definition at line 228 of file FennelResource.h.

Referenced by internalError().

ResourceDefinition fennel::FennelResource::_executionAborted [private]

Definition at line 229 of file FennelResource.h.

Referenced by executionAborted().

ResourceDefinition fennel::FennelResource::_rowTooLong [private]

Definition at line 230 of file FennelResource.h.

Referenced by rowTooLong().

ResourceDefinition fennel::FennelResource::_invalidParam [private]

Definition at line 231 of file FennelResource.h.

Referenced by invalidParam().

ResourceDefinition fennel::FennelResource::_scalarQueryReturnedMultipleRows [private]

Definition at line 232 of file FennelResource.h.

Referenced by scalarQueryReturnedMultipleRows().

ResourceDefinition fennel::FennelResource::_scratchMemExhausted [private]

Definition at line 233 of file FennelResource.h.

Referenced by scratchMemExhausted().

ResourceDefinition fennel::FennelResource::_uniqueConstraintViolated [private]

Definition at line 234 of file FennelResource.h.

Referenced by uniqueConstraintViolated().

ResourceDefinition fennel::FennelResource::_incompatibleDataFormat [private]

Definition at line 235 of file FennelResource.h.

Referenced by incompatibleDataFormat().

ResourceDefinition fennel::FennelResource::_libaioRequired [private]

Definition at line 236 of file FennelResource.h.

Referenced by libaioRequired().

ResourceDefinition fennel::FennelResource::_unsupportedOperation [private]

Definition at line 237 of file FennelResource.h.

Referenced by unsupportedOperation().

ResourceDefinition fennel::FennelResource::_outOfBackupSpace [private]

Definition at line 238 of file FennelResource.h.

Referenced by outOfBackupSpace().

ResourceDefinition fennel::FennelResource::_mismatchedRestore [private]

Definition at line 239 of file FennelResource.h.

Referenced by mismatchedRestore().

ResourceDefinition fennel::FennelResource::_openBackupFileFailed [private]

Definition at line 240 of file FennelResource.h.

Referenced by openBackupFileFailed().

ResourceDefinition fennel::FennelResource::_readBackupFileFailed [private]

Definition at line 241 of file FennelResource.h.

Referenced by readBackupFileFailed().

ResourceDefinition fennel::FennelResource::_writeBackupFileFailed [private]

Definition at line 242 of file FennelResource.h.

Referenced by writeBackupFileFailed().

ResourceDefinition fennel::FennelResource::_readDataPageFailed [private]

Definition at line 243 of file FennelResource.h.

Referenced by readDataPageFailed().

ResourceDefinition fennel::FennelResource::_writeDataPageFailed [private]

Definition at line 244 of file FennelResource.h.

Referenced by writeDataPageFailed().

ResourceDefinition fennel::FennelResource::_outOfSpaceDuringRestore [private]

Definition at line 245 of file FennelResource.h.

Referenced by outOfSpaceDuringRestore().

ResourceDefinition fennel::FennelResource::_bitmapEntryTooLong [private]

Definition at line 246 of file FennelResource.h.

Referenced by bitmapEntryTooLong().

ResourceDefinition fennel::FennelResource::_readDataFailed [private]

Definition at line 247 of file FennelResource.h.

Referenced by readDataFailed().

ResourceDefinition fennel::FennelResource::_dataTransferFailed [private]

Definition at line 248 of file FennelResource.h.

Referenced by dataTransferFailed().

ResourceDefinition fennel::FennelResource::_writeLogFailed [private]

Definition at line 249 of file FennelResource.h.

Referenced by writeLogFailed().

ResourceDefinition fennel::FennelResource::_noRowsReturned [private]

Definition at line 250 of file FennelResource.h.

Referenced by noRowsReturned().

ResourceDefinition fennel::FennelResource::_errorsEncountered [private]

Definition at line 251 of file FennelResource.h.

Referenced by errorsEncountered().

ResourceDefinition fennel::FennelResource::_noRowDelimiter [private]

Definition at line 252 of file FennelResource.h.

Referenced by noRowDelimiter().

ResourceDefinition fennel::FennelResource::_incompleteColumn [private]

Definition at line 253 of file FennelResource.h.

Referenced by incompleteColumn().

ResourceDefinition fennel::FennelResource::_noColumnDelimiter [private]

Definition at line 254 of file FennelResource.h.

Referenced by noColumnDelimiter().

ResourceDefinition fennel::FennelResource::_tooFewColumns [private]

Definition at line 255 of file FennelResource.h.

Referenced by tooFewColumns().

ResourceDefinition fennel::FennelResource::_tooManyColumns [private]

Definition at line 256 of file FennelResource.h.

Referenced by tooManyColumns().

ResourceDefinition fennel::FennelResource::_rowTextTooLong [private]

Definition at line 257 of file FennelResource.h.

Referenced by rowTextTooLong().

ResourceDefinition fennel::FennelResource::_flatfileDescribeFailed [private]

Definition at line 258 of file FennelResource.h.

Referenced by flatfileDescribeFailed().

ResourceDefinition fennel::FennelResource::_flatfileNoHeader [private]

Definition at line 259 of file FennelResource.h.

Referenced by flatfileNoHeader().

ResourceDefinition fennel::FennelResource::_flatfileMappedRequiresLenient [private]

Definition at line 260 of file FennelResource.h.

Referenced by flatfileMappedRequiresLenient().

ResourceDefinition fennel::FennelResource::_flatfileNoMappedColumns [private]

Definition at line 261 of file FennelResource.h.

Referenced by flatfileNoMappedColumns().


The documentation for this class was generated from the following files:
Generated on Mon Jun 22 04:00:49 2009 for Fennel by  doxygen 1.5.1