2.2.4.11.1 DatasetObject::DatasetObject

Description

Default constructor for a DatasetObject.


This constructor will create a DatasetObject given a series name.


This constructor will create a DatasetObject from another DatasetObject or a Column object.

Syntax

DatasetObject( )


DatasetObject( LPCSTR lpcszName )


DatasetObject( OriginObject & obj )

Parameters

lpcszName
[input] name of the series.


obj
[input] an OriginObject wrapping a DatasetObject or a Column object

Return

Examples

EX1

void DatasetObject_DatasetObject_Ex2()
{
    MatrixObject    mobj;
    MatrixLayer        mlay = Project.ActiveLayer();
    if( mlay )
    {
        mobj = mlay.MatrixObjects(0);
    }
}


EX2

void DatasetObject_DatasetObject_Ex3()
{
    DatasetObject dobj("Book1");
    if(dobj)
    {
        dobj.Info.SYSTEM.PARAMETERS.TAG$ = "MySeries";
        string str = dobj.Info.SYSTEM.PARAMETERS.TAG$; 
    }
    else
        printf("invalid DatasetObject");
}


EX3

void DatasetObject_DatasetObject_Ex4(OriginObject &obj)
{
    DatasetObject dobj(obj);
    if(dobj)
    {
        dobj.Info.SYSTEM.PARAMETERS.TAG$ = "MySeries";
        string str = dobj.Info.SYSTEM.PARAMETERS.TAG$; 
    }
    else
        printf("invalid DatasetObject");
}

Remark

See Also

Header to Include

origin.h