See Using and Configuring the DataView Reader.
ostc_ServerSession::exposeAllDataViews()
void exposeAllDataViews(oscs_ConstString dbname);
Exposes all the data views in the database named dbname.
You can expose only one database with a given name at a time. If you have exposed a data view from one database, and then attempt to expose a data view with the same name from another database, the attempt is silently ignored. Only the first data view will be accessible.
ostc_ServerSession::exposeDataView()
void exposeDataView( oscs_ConstString dbname, oscs_ConstString viewname, oscs_ConstString operation_name = 0 );
Exposes the data view named viewname in the database named dbname.
viewname can also contain an SQL statement that customizes the data view defined in database_name. The SQL statement must follow SQL syntax rules. See Filtering and Ordering: SQL Support in DataView Reader.