#include <libuserd_interface.h>
Inheritance diagram for libuserd::LibUserd:

Public Member Functions
Static Public Member Functions
Friends
Detailed Description
LibUserd is the primary interface to the USERD library. All interaction starts at this object. One object instance exists in a process. Definition at line 527 of file libuserd_interface.h.Member Function Documentation
get_active_reader()
static
get_active_reader
Return the currently active reader if any.
Returns
libuserd::Reader* The currently active reader or nullptr if ReaderInfo::read_dataset has not been called.
get_all_readers()
override
get_all_readers
Return a list of the readers that are available.
Parameters
Returns
ErrorCode
get_available_reader_count()
override
get_available_reader_count
Return a count of the readers that are available.
Returns
size_t Number of available readers
initialize()
override
initialize
This call initializes the libuserd system. It causes the library to scan for available readers and set up any required reduction engine bits. It can only be called once.
number_of_ranks is not currently implemented. It is used to specify the number of parallel servers to use to read the dataset. The values 0 and 1 both represent serial data access. Current code should use the value 0.
library_interface()
static
library_interface
Get the pointer to the library interface.
Note: LibUserd is a singleton and this function will return the existing instance or create a new instance.
Returns
libuserd::LibUserd* The library interface
query_format()
override
query_format
For a given dataset (filename(s)), ask the readers if they should be able to read that data.
Parameters
Returns
ErrorCode
set_message_handler()
override
set_message_handler
Many readers can output diagnostic information. This function allows an application to intercept and handle that type of information.
Parameters
Returns
ErrorCode
set_reader_path()
override
set_reader_path
By default, the library looks for reader shared libraries by looking for Ansys distributions that align with the version number of the libuserd library. A user may override this search path using this function.
Note: This function must be called before initialize() is called and once intialize() has been called, this method will return
Parameters
Returns
ErrorCode returns IGNORED_AFTER_INITIALIZE if called after initialize()
shutdown()
override
shutdown
Shutdown the libuserd library, stopping any active reader and any reduction engine. Once this is called, the LibUserd interface can no longer be used in the current process.
Returns
ErrorCode
Friends And Related Symbol Documentation
ReaderInfo
friend
Definition at line 648 of file libuserd_interface.h.
The documentation for this class was generated from the following file:
- D:/ANSYSDev/Product-src/ensight/server/userd/include/libuserd_interface.h