API Reference > OdRx Classes > OdRxDictionary Class > OdRxDictionary Methods > putAt Method > OdRxDictionary::putAt Method (OdString&, OdRxObject*, OdUInt32*)
OdRxDictionary::putAt Method (OdString&, OdRxObject*, OdUInt32*)
Syntax
C++
virtual OdRxObjectPtr putAt(const OdString& key, OdRxObject* pObject, OdUInt32* pRetId = 0) = 0;
Parameters 
Description 
const OdString& key 
[in] Keyword as a string value.  
OdRxObject* pObject 
[in] Pointer to the instance to be put.  
OdUInt32* pRetId = 0 
[in] Pointer to an OdUInt32 to receive the Entry ID of the entry. 

Returns a smart pointer to the object at this entry prior to the call.

Puts the instance specified by the smart pointer into the dictionary object and associates it with the specified keyword. 

 

Keyword and smart pointer must not be Null.

Example of Working with a Dictionary 

Functionality of Dictionaries

Copyright © 2002–2020. Open Design Alliance. All rights reserved.