U_NAMESPACE_BEGIN class Hashtable;
U_NAMESPACE_END
/** Holder of test data and settings. Allows addressing of items by name. *Fortestcases,namesaredefinedinthe"Headers"section.Forsettings *andinfodata,namesarekeysindata.Currently,wereturnscalarstrings *andintegersandarraysofstringsandintegers.Arraysshouldbedeposited *ofbytheuser.
*/ class T_CTEST_EXPORT_API DataMap { public: virtual ~DataMap();
public: /** get the string from the DataMap. Addressed by name *@paramkeynameofthedatafield. *@returnastringcontainingthedata
*/ virtualconst UnicodeString getString(constchar* key, UErrorCode &status) const = 0;
/** get the string from the DataMap. Addressed by name *parsesabundlestringintoaninteger *@paramkeynameofthedatafield. *@returnanintegercontainingthedata
*/ virtual int32_t getInt(constchar* key, UErrorCode &status) const = 0;
/** get an array of strings from the DataMap. Addressed by name. *Theusermustdisposeofitafterusage,usingdelete. *@paramkeynameofthedatafield. *@returnastringarraycontainingthedata
*/ virtualconst UnicodeString* getStringArray(int32_t& count, constchar* key, UErrorCode &status) const = 0;
/** get an array of integers from the DataMap. Addressed by name. *Theusermustdisposeofitafterusage,usingdelete. *@paramkeynameofthedatafield. *@returnanintegerarraycontainingthedata
*/ virtualconst int32_t* getIntArray(int32_t& count, constchar* key, UErrorCode &status) const = 0;
// ... etc ...
};
// This one is already concrete - it is going to be instantiated from // concrete data by TestData children... class T_CTEST_EXPORT_API RBDataMap : public DataMap{ private:
Hashtable *fData;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.