IlsSwGetDs
 
IlsSwGetDs
Category 
Utility global function
Description 
This global function returns the data source associated with a data-source-aware gadget.
This function should be used instead of the following Rogue Wave Views member functions:
*IliFieldItf::f_getDataSource, or
*IliFieldItf::f_getDataSourceName.
Library 
<mvsw>
Header File 
#include <ilmvsw/util.h>
Definition 
IliMemoryDataSource* IlsSwGetDs(IliFieldItf* itf);
const IliMemoryDataSource* IlsSwGetDs(const IliFieldItf* itf);
This global utility function returns the memory data source associated with a data-aware gadget itf.
This function uses the Rogue Wave Views method f_getDataSource or, if this method fails, the Rogue Wave Views repository, to get the data source from the data source name (using the method f_getDataSourceName). The method then does a safe downcast to get the correct return type. It returns NULL if the data-aware gadget is not connected, or if the data source is not of type IliMemoryDataSource* or a type that derives from this class.
See Also 
IliFieldItf (in the Rogue Wave Views documentation, Data Access package)

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.