PulseView  0.3.0
A Qt-based sigrok GUI
pv::devices::InputFile Class Referencefinal

#include <inputfile.hpp>

Inheritance diagram for pv::devices::InputFile:
Collaboration diagram for pv::devices::InputFile:

Public Member Functions

 InputFile (const std::shared_ptr< sigrok::Context > &context, const std::string &file_name, std::shared_ptr< sigrok::InputFormat > format, const std::map< std::string, Glib::VariantBase > &options)
 
void open ()
 
void close ()
 
void start ()
 
void run ()
 
void stop ()
 
- Public Member Functions inherited from pv::devices::File
std::string full_name () const
 
std::string display_name (const DeviceManager &) const
 
- Public Member Functions inherited from pv::devices::Device
virtual ~Device ()
 
std::shared_ptr< sigrok::Session > session () const
 
std::shared_ptr< sigrok::Device > device () const
 
template<typename T >
read_config (const sigrok::ConfigKey *key, const T default_value=0)
 
template<typename T >
read_config (const ConfigKey *key, const T default_value)
 

Private Attributes

const std::shared_ptr< sigrok::Context > context_
 
const std::shared_ptr< sigrok::Input > input_
 
std::atomic< bool > interrupt_
 

Static Private Attributes

static const std::streamsize BufferSize = 16384
 

Additional Inherited Members

- Protected Member Functions inherited from pv::devices::File
 File (const std::string &file_name)
 
- Protected Member Functions inherited from pv::devices::Device
 Device ()
 
- Protected Attributes inherited from pv::devices::File
const std::string file_name_
 
- Protected Attributes inherited from pv::devices::Device
std::shared_ptr< sigrok::Session > session_
 
std::shared_ptr< sigrok::Device > device_
 

Detailed Description

Definition at line 33 of file inputfile.hpp.

Constructor & Destructor Documentation

pv::devices::InputFile::InputFile ( const std::shared_ptr< sigrok::Context > &  context,
const std::string &  file_name,
std::shared_ptr< sigrok::InputFormat >  format,
const std::map< std::string, Glib::VariantBase > &  options 
)

Definition at line 33 of file inputfile.cpp.

Member Function Documentation

void pv::devices::InputFile::close ( )
virtual

Implements pv::devices::Device.

Definition at line 54 of file inputfile.cpp.

Here is the caller graph for this function:

void pv::devices::InputFile::open ( )
virtual

Implements pv::devices::Device.

Definition at line 46 of file inputfile.cpp.

Here is the call graph for this function:

void pv::devices::InputFile::run ( )
virtual

Reimplemented from pv::devices::Device.

Definition at line 64 of file inputfile.cpp.

void pv::devices::InputFile::start ( )
virtual

Reimplemented from pv::devices::Device.

Definition at line 60 of file inputfile.cpp.

void pv::devices::InputFile::stop ( )
virtual

Reimplemented from pv::devices::Device.

Definition at line 100 of file inputfile.cpp.

Member Data Documentation

const std::streamsize pv::devices::InputFile::BufferSize = 16384
staticprivate

Definition at line 36 of file inputfile.hpp.

const std::shared_ptr<sigrok::Context> pv::devices::InputFile::context_
private

Definition at line 55 of file inputfile.hpp.

const std::shared_ptr<sigrok::Input> pv::devices::InputFile::input_
private

Definition at line 56 of file inputfile.hpp.

std::atomic<bool> pv::devices::InputFile::interrupt_
private

Definition at line 58 of file inputfile.hpp.


The documentation for this class was generated from the following files: