|
CFx SDK Documentation 2024 SP0
|
#include <RxAttribute.h>
Public Member Functions | |
| ODRX_DECLARE_MEMBERS (OdRxResourceLoader) | |
Public Member Functions inherited from OdRxObject | |
| ODRX_HEAP_OPERATORS () | |
| OdRxObject () | |
| virtual | ~OdRxObject () |
| virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
| virtual OdRxObject * | x (const OdRxClass *pClass) const |
| virtual OdRxClass * | isA () const |
| virtual void | addRef ()=0 |
| virtual void | release ()=0 |
| virtual long | numRefs () const |
| bool | isKindOf (const OdRxClass *pClass) const |
| virtual OdRxObjectPtr | clone () const |
| virtual void | copyFrom (const OdRxObject *pSource) |
| virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
| virtual bool | isEqualTo (const OdRxObject *pOther) const |
Static Public Member Functions | |
| static OdResult | loadString (const OdRxObject *pClass, unsigned int id, unsigned int sourceHint, OdString &result) |
Static Public Member Functions inherited from OdRxObject | |
| static OdRxObjectPtr | cast (const OdRxObject *pointer) |
| static OdRxClass * | desc () |
Protected Member Functions | |
| virtual OdResult | subLoadString (unsigned int id, unsigned int sourceHint, OdString &result)=0 |
<group OdRx_Classes>
Protocol extension to handle loading strings from resources. (E.g. for localization.)
Definition at line 177 of file RxAttribute.h.
|
static |
Load the string identified by the ID and a hint. Queries the class for OdRxResourceLoader and calls subLoadString() to do the actual loading.
| pClass | [in] Class to be queried. |
| id | [in] Resource ID of the string. |
| sourceHint | [in] Resource ID hint. |
| result | [out] Loaded string. |
| OdRxResourceLoader::ODRX_DECLARE_MEMBERS | ( | OdRxResourceLoader | ) |
|
protectedpure virtual |
Loads the string identified by the ID and a hint. Implementation is up to the application.
| id | [in] Resource ID of the string. |
| sourceHint | [in] Resource ID hint. |
| result | [out] Loaded string. |