nsIDaimStorageMap Interface Reference

Implement methods for storing and retrieving numerical data. More...

import "nsIDaimStorageMap.idl";

Inherits nsIDaimNotify.

List of all members.

Public Member Functions

PRUint32 getCol (in ACString name, in PRUint32 size)
void clear ()
void remove (in ACString name)
void getRow (in nsIDaimPropertyList propertylist, in PRUint32 key, in PRUint32 row, in ACString fmt)
void setRow (in nsIDaimPropertyList propertylist, in PRUint32 key, in PRUint32 row)
void getCols (in nsIDaimStringList stringlist)
void addRow (in PRUint32 count)
void deleteRow (in PRUint32 row)
void reserve (in ACString name, in PRUint32 capacity)
void exportData (in nsIDaimStringList stringlist, in ACString url)
void rename (in ACString oldname, in ACString newname)
double getValue (in ACString column, in PRUint32 row)
 Get value from column column at row.
void setValue (in ACString column, in PRUint32 row, in double value)
void resizeCol (in ACString column, in PRUint32 newsize)
void setCols (in nsIDaimStringList stringlist, in PRUint32 minsize)
void clearCol (in ACString column)
void pushValue (in ACString column, in double value)
void copyRange (in ACString srccol, in ACString dstcol, in PRUint32 start, in PRUint32 end)
double getStat (in ACString column, in ACString type)
PRUint32 getInterval (in ACString column, in PRUint32 start, in double lower, in double upper)
void copy (in nsIDaimStorageMap from, in ACString srccol, in ACString dstcol, in PRUint32 start, in PRUint32 end)
void getData (in ACString column,[array, size_is(count)] out double data, out PRUint32 count)
void doArithmetics (in ACString leftcol, in ACString rightcol, in ACString destcol, in ACString op)
void createSeries (in ACString column, in PRUint32 increment, in PRUint32 type, in PRUint32 count)
PRUint32 length (in ACString column)


Detailed Description

Implement methods for storing and retrieving numerical data.

nsIDaimStorageMap

The StorageMap interface expose methods for storing/retrieving list of numerical data by name and performing some numerical operations between columns.

This interface is mainly used to collect, storing and exporting vector data.

Implemented by:


Member Function Documentation

void nsIDaimStorageMap::addRow in PRUint32  count  ) 
 

addRow

Add count rows to all lists

void nsIDaimStorageMap::clear  ) 
 

clear

Clear all data (including headers)

void nsIDaimStorageMap::clearCol in ACString  column  ) 
 

clearCol

Set column size to zero This method is a shortcut for ResizeCol(column,0);

void nsIDaimStorageMap::copy in nsIDaimStorageMap  from,
in ACString  srccol,
in ACString  dstcol,
in PRUint32  start,
in PRUint32  end
 

copy

Copy a range of data from a column to another

void nsIDaimStorageMap::copyRange in ACString  srccol,
in ACString  dstcol,
in PRUint32  start,
in PRUint32  end
 

copyRange

Copy a range of data from a column to another

void nsIDaimStorageMap::createSeries in ACString  column,
in PRUint32  increment,
in PRUint32  type,
in PRUint32  count
 

createSeries

void nsIDaimStorageMap::deleteRow in PRUint32  row  ) 
 

deleteRow

Delete rows index from all lists

void nsIDaimStorageMap::doArithmetics in ACString  leftcol,
in ACString  rightcol,
in ACString  destcol,
in ACString  op
 

doArithmetics

void nsIDaimStorageMap::exportData in nsIDaimStringList  stringlist,
in ACString  url
 

exportData

Export data to a file

PRUint32 nsIDaimStorageMap::getCol in ACString  name,
in PRUint32  size
 

getCol

Return a pointer to a storage array

Parameters:
name name of the column or NULL
size number of data, if the column does not exists and size is non zero then the column is created
If the method succeed, it returns a pointer to the start of the column. Note that the first value (index 0) contains the size of the array. It measn that array must be considered as beginning at index 1

void nsIDaimStorageMap::getCols in nsIDaimStringList  stringlist  ) 
 

getCols

Return the list of column names

void nsIDaimStorageMap::getData in ACString  column,
[array, size_is(count)] out double  data,
out PRUint32  count
 

getData

PRUint32 nsIDaimStorageMap::getInterval in ACString  column,
in PRUint32  start,
in double  lower,
in double  upper
 

getInterval

void nsIDaimStorageMap::getRow in nsIDaimPropertyList  propertylist,
in PRUint32  key,
in PRUint32  row,
in ACString  fmt
 

getRow

Return row values in a dmIPropertyList object

Parameters:
propertylist instance of a dmIPropertyList object
key the associated key
row row index
fmt printf like format for the stored values
The values will be stored as properties in the previously open section or sequence of the propertylist object.

double nsIDaimStorageMap::getStat in ACString  column,
in ACString  type
 

getStat

double nsIDaimStorageMap::getValue in ACString  column,
in PRUint32  row
 

Get value from column column at row.

getValue

PRUint32 nsIDaimStorageMap::length in ACString  column  ) 
 

length

void nsIDaimStorageMap::pushValue in ACString  column,
in double  value
 

pushValue

Add a value to the column column

void nsIDaimStorageMap::remove in ACString  name  ) 
 

remove

Remove specified column

Parameters:
name name of the column or NULL

void nsIDaimStorageMap::rename in ACString  oldname,
in ACString  newname
 

rename

void nsIDaimStorageMap::reserve in ACString  name,
in PRUint32  capacity
 

reserve

Create a zero sized column with a preallocated storage capacity

void nsIDaimStorageMap::resizeCol in ACString  column,
in PRUint32  newsize
 

resizeCol

Resize the column column to newsize

Note:
The column will be created if it does not exists.

void nsIDaimStorageMap::setCols in nsIDaimStringList  stringlist,
in PRUint32  minsize
 

setCols

Create columns

Parameters:
stringlist A list of columns to be created
minsize Minimum size of the specified columns.

void nsIDaimStorageMap::setRow in nsIDaimPropertyList  propertylist,
in PRUint32  key,
in PRUint32  row
 

setRow

Set row values from a dmIPropertyList object

Parameters:
propertylist instance of a dmIPropertyList object
key the associated key
row row index
The values will be inserted at row from the corresponding properties previously open section or sequence of the propertylist object.

void nsIDaimStorageMap::setValue in ACString  column,
in PRUint32  row,
in double  value
 

setValue

Set value from column column at row


Generated on Tue May 23 17:31:48 2006 for Daim Library XPCOM Interfaces by  doxygen 1.4.6-NO