ldas-tools-frameAPI
2.5.1
|
Singleton to keep track of how to support io on a device. More...
#include <DeviceIOConfiguration.hh>
Classes | |
struct | Characteristics |
struct | Description |
Public Types | |
typedef INT_8U | dev_type |
typedef FrameCPP::Common::FrameBufferInterface::buffer_size_type | size_type |
typedef bool | use_mmap_io_type |
typedef std::vector< Description > | descriptions_type |
Public Member Functions | |
DeviceIOConfiguration () | |
Constructor. More... | |
~DeviceIOConfiguration () | |
Destructor. More... | |
Static Public Member Functions | |
static void | GetConfiguration (const char *Filename, size_type &BufferSize, bool &UseMemoryMappedIO) |
Fetch the options for the device associated with the file. More... | |
static void | GetConfiguration (const char *Filename, size_type &BufferSize, bool &UseMemoryMappedIO, std::string &FSType) |
Fetch the options for the device associated with the file. More... | |
static std::string | Reset (const descriptions_type &Descriptions) |
Resets the cache to be empty. More... | |
Singleton to keep track of how to support io on a device.
typedef std::vector< Description > FrameAPI::DeviceIOConfiguration::descriptions_type |
typedef INT_8U FrameAPI::DeviceIOConfiguration::dev_type |
typedef FrameCPP::Common::FrameBufferInterface::buffer_size_type FrameAPI::DeviceIOConfiguration::size_type |
typedef bool FrameAPI::DeviceIOConfiguration::use_mmap_io_type |
DeviceIOConfiguration::DeviceIOConfiguration | ( | ) |
Constructor.
DeviceIOConfiguration::~DeviceIOConfiguration | ( | ) |
Destructor.
|
inlinestatic |
Fetch the options for the device associated with the file.
[in] | Filename | The name of the file on the device being queried. |
[out] | BufferSize | The optimal size of the buffer for the device. |
[out] | UseMemoryMappedIO | True if the device performance is enhanced by using memory mapped I/O. |
|
static |
Fetch the options for the device associated with the file.
[in] | Filename | The name of the file on the device being queried. |
[out] | BufferSize | The optimal size of the buffer for the device. |
[out] | UseMemoryMappedIO | True if the device performance is enhanced by using memory mapped I/O. |
[out] | FSType | The description of the file type for the device being queried. |
|
static |
Resets the cache to be empty.
[out] | Descriptions | List of names or file system types that are to be reset. |