UltraScan III
List of all members | Public Member Functions | Private Member Functions | Private Attributes
US_SyncExperiment Class Reference

#include "us_sync_exper.h"

Inheritance diagram for US_SyncExperiment:
Inheritance graph
[legend]
Collaboration diagram for US_SyncExperiment:
Collaboration graph
[legend]

Public Member Functions

 US_SyncExperiment (US_DB2 *, QWidget *=0)
 Constructor for the US_SyncExperiment class. More...
 
int synchronize (US_DataModel::DataDesc &)
 Synchronize database and local experiment records. More...
 

Private Member Functions

QString expGUIDauc (QString)
 

Private Attributes

US_DB2db
 
QStringList expIDs
 
QStringList runIDs
 
QWidget * parentw
 
QString expID
 
QString rawID
 
int dbg_level
 

Detailed Description

This class provides the ability to synchronize an experiment record on local disk and in the database.

Definition at line 17 of file us_sync_exper.h.

Constructor & Destructor Documentation

US_SyncExperiment::US_SyncExperiment ( US_DB2 a_db,
QWidget *  parent = 0 
)

Constructor for the US_SyncExperiment class.

Sets up the database person ID and pointer to the database connection

Parameters
a_dbA pointer to an open database connection
parentPointer to parent QWidget.

Definition at line 8 of file us_sync_exper.cpp.

Member Function Documentation

QString US_SyncExperiment::expGUIDauc ( QString  aucfile)
private

Definition at line 205 of file us_sync_exper.cpp.

int US_SyncExperiment::synchronize ( US_DataModel::DataDesc cdesc)

Synchronize database and local experiment records.

      This function evaluates the state of the experiment
      records associated with a raw data record and updates
      flags whether the upload/download can proceed.
Parameters
cdescCurrent description object for the raw data record being operated on (uploaded/downloaded).
Returns
A status flag (0 if all OK)

Definition at line 29 of file us_sync_exper.cpp.

Member Data Documentation

US_DB2* US_SyncExperiment::db
private

Definition at line 44 of file us_sync_exper.h.

int US_SyncExperiment::dbg_level
private

Definition at line 56 of file us_sync_exper.h.

QString US_SyncExperiment::expID
private

Definition at line 51 of file us_sync_exper.h.

QStringList US_SyncExperiment::expIDs
private

Definition at line 46 of file us_sync_exper.h.

QWidget* US_SyncExperiment::parentw
private

Definition at line 49 of file us_sync_exper.h.

QString US_SyncExperiment::rawID
private

Definition at line 52 of file us_sync_exper.h.

QStringList US_SyncExperiment::runIDs
private

Definition at line 47 of file us_sync_exper.h.


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