PulseView  unreleased development snapshot
A Qt-based sigrok GUI
pv::MetadataObjManager Class Reference

#include <metadata_obj.hpp>

Inheritance diagram for pv::MetadataObjManager:
Collaboration diagram for pv::MetadataObjManager:

Public Member Functions

MetadataObjectcreate_object (MetadataObjectType obj_type)
 
void delete_object (uint32_t obj_id)
 
MetadataObjectfind_object_by_type (MetadataObjectType obj_type)
 
MetadataObjectobject (uint32_t obj_id)
 
void add_observer (MetadataObjObserverInterface *cb)
 
void remove_observer (MetadataObjObserverInterface *cb)
 
void save_objects (QSettings &settings) const
 
void restore_objects (QSettings &settings)
 
void notify_observers (MetadataObject *obj, MetadataValueType changed_value)
 

Private Attributes

vector< MetadataObjObserverInterface * > callbacks_
 
deque< MetadataObjectobjects_
 

Detailed Description

Definition at line 92 of file metadata_obj.hpp.

Member Function Documentation

void pv::MetadataObjManager::add_observer ( MetadataObjObserverInterface cb)

Definition at line 127 of file metadata_obj.cpp.

Here is the caller graph for this function:

MetadataObject * pv::MetadataObjManager::create_object ( MetadataObjectType  obj_type)

Definition at line 89 of file metadata_obj.cpp.

Here is the caller graph for this function:

void pv::MetadataObjManager::delete_object ( uint32_t  obj_id)

Definition at line 103 of file metadata_obj.cpp.

MetadataObject * pv::MetadataObjManager::find_object_by_type ( MetadataObjectType  obj_type)

Definition at line 113 of file metadata_obj.cpp.

Here is the caller graph for this function:

void pv::MetadataObjManager::notify_observers ( MetadataObject obj,
MetadataValueType  changed_value 
)

Definition at line 151 of file metadata_obj.cpp.

Here is the caller graph for this function:

MetadataObject * pv::MetadataObjManager::object ( uint32_t  obj_id)

Definition at line 122 of file metadata_obj.cpp.

void pv::MetadataObjManager::remove_observer ( MetadataObjObserverInterface cb)

Definition at line 132 of file metadata_obj.cpp.

Here is the caller graph for this function:

void pv::MetadataObjManager::restore_objects ( QSettings settings)

Definition at line 146 of file metadata_obj.cpp.

void pv::MetadataObjManager::save_objects ( QSettings settings) const

Definition at line 141 of file metadata_obj.cpp.

Member Data Documentation

vector<MetadataObjObserverInterface*> pv::MetadataObjManager::callbacks_
private

Definition at line 111 of file metadata_obj.hpp.

deque<MetadataObject> pv::MetadataObjManager::objects_
private

Definition at line 112 of file metadata_obj.hpp.


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