Back to index

salome-gui  6.5.0
Public Member Functions | Static Public Attributes
MyDataObject Class Reference

#include <MyDataModel.hxx>

Collaboration diagram for MyDataObject:
Collaboration graph

List of all members.

Public Member Functions

 MyDataObject ()
virtual string getPath ()
 This function specified the localization of the object in the hierarchical organization.

Static Public Attributes

static const string PROPERTY_KEY_TYPE = "type"
static const string PROPERTY_KEY_CIRCUIT = "circuit"
static const string PROPERTY_KEY_REPFONC = "rf"

Detailed Description

Definition at line 31 of file MyDataModel.hxx.

Constructor & Destructor Documentation

Definition at line 32 of file MyDataModel.cxx.

                           : DataObject() {
  this->setProperty(PROPERTY_KEY_TYPE, "Tuyauterie");

Member Function Documentation

string MyDataObject::getPath ( ) [virtual]

This function specified the localization of the object in the hierarchical organization.

Definition at line 41 of file MyDataModel.cxx.

  // We choose here a convention for organizing the path for this
  // class of object.
  string path = getProperty(PROPERTY_KEY_CIRCUIT) + pathsep
    + getProperty(PROPERTY_KEY_REPFONC) + pathsep
    + getProperty(PROPERTY_KEY_TYPE);
  string path = getProperty(PROPERTY_KEY_TYPE) + pathsep
    + getProperty(PROPERTY_KEY_CIRCUIT) + pathsep
    + getProperty(PROPERTY_KEY_REPFONC);
  return path;

Member Data Documentation

const string MyDataObject::PROPERTY_KEY_CIRCUIT = "circuit" [static]

Definition at line 36 of file MyDataModel.hxx.

const string MyDataObject::PROPERTY_KEY_REPFONC = "rf" [static]

Definition at line 37 of file MyDataModel.hxx.

const string MyDataObject::PROPERTY_KEY_TYPE = "type" [static]

Definition at line 35 of file MyDataModel.hxx.

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