Mantid
Loading...
Searching...
No Matches
Static Public Member Functions | Static Private Member Functions | List of all members
ITableWorkspacePickleSuite Class Reference
Inheritance diagram for ITableWorkspacePickleSuite:

Static Public Member Functions

static dict getstate (const ITableWorkspace &ws)
 
static void setstate (ITableWorkspace &ws, const dict &state)
 

Static Private Member Functions

static void readData (ITableWorkspace &ws, const dict &state)
 Read the data from a python dict into the table workspace. More...
 
static void readMetaData (ITableWorkspace &ws, const dict &state)
 Read the meta data from a python dict into the table workspace. More...
 
static dict writeMetaData (const ITableWorkspace &ws)
 Write the meta data from a table workspace to a python dict. More...
 

Detailed Description

Definition at line 578 of file ITableWorkspace.cpp.

Member Function Documentation

◆ getstate()

static dict ITableWorkspacePickleSuite::getstate ( const ITableWorkspace ws)
inlinestatic

Definition at line 580 of file ITableWorkspace.cpp.

References toDict(), and writeMetaData().

◆ readData()

static void ITableWorkspacePickleSuite::readData ( ITableWorkspace ws,
const dict &  state 
)
inlinestaticprivate

Read the data from a python dict into the table workspace.

Parameters
ws:: the workspace to load data into
state:: the pickled state of the table

Definition at line 642 of file ITableWorkspace.cpp.

References Mantid::API::ITableWorkspace::appendRow(), Mantid::API::ITableWorkspace::getColumn(), and Mantid::API::ITableWorkspace::getColumnNames().

Referenced by setstate().

◆ readMetaData()

static void ITableWorkspacePickleSuite::readMetaData ( ITableWorkspace ws,
const dict &  state 
)
inlinestaticprivate

Read the meta data from a python dict into the table workspace.

This will read information relating to the column names and data types to be stored in the new table

Parameters
ws:: the workspace to load data into
state:: the pickled state of the table

Definition at line 622 of file ITableWorkspace.cpp.

References Mantid::API::ITableWorkspace::addColumn(), and value.

Referenced by setstate().

◆ setstate()

static void ITableWorkspacePickleSuite::setstate ( ITableWorkspace ws,
const dict &  state 
)
inlinestatic

Definition at line 587 of file ITableWorkspace.cpp.

References readData(), and readMetaData().

◆ writeMetaData()

static dict ITableWorkspacePickleSuite::writeMetaData ( const ITableWorkspace ws)
inlinestaticprivate

Write the meta data from a table workspace to a python dict.

Parameters
ws:: the workspace to load data into

Definition at line 597 of file ITableWorkspace.cpp.

References Mantid::API::ITableWorkspace::getColumn(), and Mantid::API::ITableWorkspace::getColumnNames().

Referenced by getstate().


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