Particle Identification and Tracking
|
An interface for extracting data from the internal data structures. More...
#include <generic_wrapper.h>
Public Member Functions | |
virtual | ~Generic_wrapper () |
Destructor. More... | |
Wrapper state | |
Change and query the top level wrapper state | |
virtual void | open_wrapper ()=0 |
Initializes the wrapper. More... | |
virtual void | close_wrapper ()=0 |
closes and cleans up the wrapper More... | |
virtual bool | is_open () const =0 |
Returns if the wrapper is open or not. More... | |
Group state | |
Change and query the wrapper current group state | |
virtual void | open_group (const std::string &name="none")=0 |
Opens a group in the wrapper, ie a group in hdf or a cell in matlab. More... | |
virtual void | close_group ()=0 |
closes the current group More... | |
Data | |
get and set data | |
virtual void | add_dset (int rank, const unsigned int *dims, V_TYPE vt, const void *data, const std::string &dset_name)=0 |
Adds data to the wrapper, must be the right size and type specified. More... | |
Group Level Metadata | |
setter functions for metadata for the currently open group. | |
virtual void | add_meta_data (const std::string &key, float val)=0 |
Adds a float meta-data. More... | |
virtual void | add_meta_data (const std::string &key, const Tuple< float, 3 > &val)=0 |
Adds a Triple meta-data. More... | |
virtual void | add_meta_data (const std::string &key, const Tuple< float, 2 > &val)=0 |
Adds a Pair meta-data. More... | |
virtual void | add_meta_data (const std::string &key, const std::string &val)=0 |
Adds a string meta-data. More... | |
virtual void | add_meta_data (const std::string &key, int val)=0 |
Adds an integer meta-data. More... | |
virtual void | add_meta_data (const std::string &key, unsigned int val)=0 |
Adds an unsigned integer meta-data. More... | |
virtual void | add_meta_data (const Md_store *md_store)=0 |
Adds all the meta data in a Md_store at the group level. More... | |
Dataset Level Metadata | |
setter functions for metadata for the named dataset. | |
virtual void | add_meta_data (const std::string &key, float val, const std::string &dset_name)=0 |
Adds a float meta-data for a data set. More... | |
virtual void | add_meta_data (const std::string &key, const Tuple< float, 3 > &val, const std::string &dset_name)=0 |
Adds a Triple meta-data for a data set. More... | |
virtual void | add_meta_data (const std::string &key, const Tuple< float, 2 > &val, const std::string &dset_name)=0 |
Adds a Pair meta-data for a data set. More... | |
virtual void | add_meta_data (const std::string &key, const std::string &val, const std::string &dset_name)=0 |
Adds a string meta-data for a data set. More... | |
virtual void | add_meta_data (const std::string &key, int val, const std::string &dset_name)=0 |
Adds an integer meta-data for a data set. More... | |
virtual void | add_meta_data (const std::string &key, unsigned int val, const std::string &dset_name)=0 |
Adds an unsigned integer meta-data for a data set. More... | |
virtual void | add_meta_data (const Md_store *md_store, const std::string &dset_name)=0 |
Adds all the meta data in a Md_store at the dset level. More... | |
An interface for extracting data from the internal data structures.
IE, this object gets handed to the internal objects, and they fill it with data.
This is an abstract base class/interface.
|
inlinevirtual |
Destructor.
|
pure virtual |
Adds data to the wrapper, must be the right size and type specified.
data will be written safely with in the wrapper during this call so it can be safely freed outside if needed
[in] | rank | rank of data set |
[in] | dimensions | of data set |
[in] | vt | data type |
[in] | data | pointer to data to be set |
[in] | dset_name | name of data set |
Implemented in utilities::Generic_wrapper_hdf.
Referenced by tracking::Accum_sofq::out_to_wrapper(), tracking::Accum_chi4_self::out_to_wrapper(), tracking::Corr_goftheta::out_to_wrapper(), tracking::Corr_gofr::out_to_wrapper(), utilities::Counted_vector::output_to_wrapper(), tracking::TA_msd::output_to_wrapper(), utilities::Histogram::output_to_wrapper(), and tracking::Track_shelf::output_to_wrapper().
|
pure virtual |
Adds a float meta-data.
Implemented in utilities::Generic_wrapper_hdf.
Referenced by tracking::Accum_sofq::out_to_wrapper(), tracking::Corr_gofr::out_to_wrapper(), tracking::Corr_theta_2pt::out_to_wrapper(), tracking::Corr_pair_diffusion::out_to_wrapper(), tracking::Corr_case::out_to_wrapper(), utilities::Counted_vector::output_to_wrapper(), tracking::TA_vanHove::output_to_wrapper(), tracking::TA_disp::output_to_wrapper(), tracking::TA_theta_rlim::output_to_wrapper(), tracking::TA_msd::output_to_wrapper(), utilities::Histogram::output_to_wrapper(), and tracking::Track_shelf::output_to_wrapper().
|
pure virtual |
Adds a Triple meta-data.
Implemented in utilities::Generic_wrapper_hdf.
|
pure virtual |
Adds a Pair meta-data.
Implemented in utilities::Generic_wrapper_hdf.
|
pure virtual |
Adds a string meta-data.
Implemented in utilities::Generic_wrapper_hdf.
|
pure virtual |
Adds an integer meta-data.
Implemented in utilities::Generic_wrapper_hdf.
|
pure virtual |
Adds an unsigned integer meta-data.
Implemented in utilities::Generic_wrapper_hdf.
|
pure virtual |
Adds all the meta data in a Md_store at the group level.
Implemented in utilities::Generic_wrapper_hdf.
|
pure virtual |
Adds a float meta-data for a data set.
Implemented in utilities::Generic_wrapper_hdf.
|
pure virtual |
Adds a Triple meta-data for a data set.
Implemented in utilities::Generic_wrapper_hdf.
|
pure virtual |
Adds a Pair meta-data for a data set.
Implemented in utilities::Generic_wrapper_hdf.
|
pure virtual |
Adds a string meta-data for a data set.
Implemented in utilities::Generic_wrapper_hdf.
|
pure virtual |
Adds an integer meta-data for a data set.
Implemented in utilities::Generic_wrapper_hdf.
|
pure virtual |
Adds an unsigned integer meta-data for a data set.
Implemented in utilities::Generic_wrapper_hdf.
|
pure virtual |
Adds all the meta data in a Md_store at the dset level.
Implemented in utilities::Generic_wrapper_hdf.
|
pure virtual |
closes the current group
Implemented in utilities::Generic_wrapper_hdf.
Referenced by tracking::Corr_gofr::out_to_wrapper(), tracking::Corr_theta_2pt::out_to_wrapper(), tracking::Corr_pair_diffusion::out_to_wrapper(), tracking::Corr_case::out_to_wrapper(), utilities::Counted_vector::output_to_wrapper(), tracking::TA_vanHove::output_to_wrapper(), tracking::TA_disp::output_to_wrapper(), tracking::TA_theta_rlim::output_to_wrapper(), tracking::TA_msd::output_to_wrapper(), utilities::Histogram::output_to_wrapper(), and tracking::Track_shelf::output_to_wrapper().
|
pure virtual |
closes and cleans up the wrapper
Implemented in utilities::Generic_wrapper_hdf.
Referenced by tracking::Accum_chi4_self::out_to_wrapper(), tracking::Corr_goftheta::out_to_wrapper(), tracking::Corr_gofr::out_to_wrapper(), tracking::Corr_theta_2pt::out_to_wrapper(), tracking::Corr_pair_diffusion::out_to_wrapper(), tracking::Corr_case::out_to_wrapper(), utilities::Counted_vector::output_to_wrapper(), tracking::TA_vanHove::output_to_wrapper(), tracking::TA_disp::output_to_wrapper(), tracking::TA_theta_rlim::output_to_wrapper(), tracking::TA_msd::output_to_wrapper(), utilities::Histogram::output_to_wrapper(), and tracking::Track_shelf::output_to_wrapper().
|
pure virtual |
Returns if the wrapper is open or not.
Implemented in utilities::Generic_wrapper_hdf.
Referenced by tracking::Accum_chi4_self::out_to_wrapper(), tracking::Corr_gofr::out_to_wrapper(), tracking::Corr_theta_2pt::out_to_wrapper(), tracking::Corr_pair_diffusion::out_to_wrapper(), utilities::Counted_vector::output_to_wrapper(), tracking::TA_vanHove::output_to_wrapper(), tracking::TA_disp::output_to_wrapper(), tracking::TA_theta_rlim::output_to_wrapper(), tracking::TA_msd::output_to_wrapper(), utilities::Histogram::output_to_wrapper(), and tracking::Track_shelf::output_to_wrapper().
|
pure virtual |
Opens a group in the wrapper, ie a group in hdf or a cell in matlab.
Implemented in utilities::Generic_wrapper_hdf.
Referenced by tracking::Accum_chi4_self::out_to_wrapper(), tracking::Corr_goftheta::out_to_wrapper(), tracking::Corr_gofr::out_to_wrapper(), tracking::Corr_theta_2pt::out_to_wrapper(), tracking::Corr_pair_diffusion::out_to_wrapper(), tracking::Corr_case::out_to_wrapper(), utilities::Counted_vector::output_to_wrapper(), tracking::TA_vanHove::output_to_wrapper(), tracking::TA_disp::output_to_wrapper(), tracking::TA_theta_rlim::output_to_wrapper(), tracking::TA_msd::output_to_wrapper(), utilities::Histogram::output_to_wrapper(), and tracking::Track_shelf::output_to_wrapper().
|
pure virtual |
Initializes the wrapper.
Implemented in utilities::Generic_wrapper_hdf.
Referenced by tracking::Accum_chi4_self::out_to_wrapper(), tracking::Corr_goftheta::out_to_wrapper(), tracking::Corr_gofr::out_to_wrapper(), tracking::Corr_theta_2pt::out_to_wrapper(), tracking::Corr_pair_diffusion::out_to_wrapper(), tracking::Corr_case::out_to_wrapper(), utilities::Counted_vector::output_to_wrapper(), tracking::TA_vanHove::output_to_wrapper(), tracking::TA_disp::output_to_wrapper(), tracking::TA_theta_rlim::output_to_wrapper(), tracking::TA_msd::output_to_wrapper(), utilities::Histogram::output_to_wrapper(), and tracking::Track_shelf::output_to_wrapper().