rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Data Access Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IliDbGanttModel Class Reference

Model Class. More...

#include <ilviews/dataccess/gadgets/dbgantt/dbgantt.h>

Inheritance diagram for IliDbGanttModel:
IliGadgetModel IliModel IliDbGanttFullModel IliDbGanttLightModel

List of all members.

Public Member Functions

 IliDbGanttModel ()
 This constructor initializes an instance of this class.
virtual IlInt externalToInternalUnit (const IliValue &value, IliDbGanttWhichDs which) const
 Called to convert a data source value to an integer value for the scale.
IliDbGanttgetDbGantt () const
 Returns the IliDbGantt object which is connected to this model.
virtual const char * getName () const
 Returns the model name.
virtual IliValue internalToExternalUnit (IlInt val, IliDbGanttWhichDs which) const
 Called to convert an integer value of the scale to a data source value.
IlBoolean isAllUniqueIdentifiers () const
 Returns IlTrue if the identifier of each object (resources, activities, constraints, breaks) must be unique.
void setAllUniqueIdentifiers (IlBoolean flag)
 Enables/disables the usage of the unique identifier.

Detailed Description

Model Class.

Library: dbgantt

This class defines the common interface to manage the data of the IliDbGantt class. If you define a new model, you should use the IliRegisterDbGanttModel macro to register your model and use the setModelName of IliDbGantt to connect an instance of your model to your IliDbGantt object.

See also:
IliModel, IliDbGantt, IliDbGanttFullModel, IliDbGanttLightModel

Member Function Documentation

virtual IlInt IliDbGanttModel::externalToInternalUnit ( const IliValue value,
IliDbGanttWhichDs  which 
) const [virtual]

Called to convert a data source value to an integer value for the scale.

Parameters:
value The value.
which The data source index.
Returns:
The integer value.
IliDbGantt* IliDbGanttModel::getDbGantt (  )  const

Returns the IliDbGantt object which is connected to this model.

Returns:
The IliDbGantt object.
virtual const char* IliDbGanttModel::getName (  )  const [virtual]

Returns the model name.

Returns:
The name.

Reimplemented from IliGadgetModel.

virtual IliValue IliDbGanttModel::internalToExternalUnit ( IlInt  val,
IliDbGanttWhichDs  which 
) const [virtual]

Called to convert an integer value of the scale to a data source value.

Parameters:
value The integer value.
which The data source index.
Returns:
The data source value.
IlBoolean IliDbGanttModel::isAllUniqueIdentifiers (  )  const

Returns IlTrue if the identifier of each object (resources, activities, constraints, breaks) must be unique.

Returns:
IlTrue if the identifier of each object (resources, activities, constraints, breaks) must be unique.
void IliDbGanttModel::setAllUniqueIdentifiers ( IlBoolean  flag  ) 

Enables/disables the usage of the unique identifier.

Into the Gantt chart each object (resources, activities, constraints, breaks) must be identified by an identifier. By default this identifier must be unique between all objects. If you call this function with the value at IlFalse, the identifier must be unique between the objects of same data source, but in this case, the Gantt chart is slower.

Parameters:
flag If IlTrue if the identifier of each object (resources, activities, constraints, breaks) must be unique.

© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.