Back to index

salome-gui  6.5.0
Public Member Functions | Protected Attributes | Friends
SALOME_InteractiveObject Class Reference

... More...

#include <SALOME_InteractiveObject.hxx>

Collaboration diagram for SALOME_InteractiveObject:
Collaboration graph
[legend]

List of all members.

Public Member Functions

voidoperator new (size_t, void *anAddress)
voidoperator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT SALOME_InteractiveObject ()
 Default constructor.
Standard_EXPORT SALOME_InteractiveObject (const char *anEntry, const char *aComponentDataType, const char *aName="")
 Constructor.
Standard_EXPORT void setEntry (const char *anEntry)
 Sets entry.
Standard_EXPORT const char * getEntry ()
Standard_EXPORT void setName (const char *aName)
 Sets name.
Standard_EXPORT const char * getName ()
Standard_EXPORT Standard_Boolean hasEntry ()
virtual Standard_EXPORT
Standard_Boolean 
isSame (const Handle(SALOME_InteractiveObject)&anIO)
Standard_EXPORT Standard_Boolean hasReference ()
Standard_EXPORT const char * getReference ()
Standard_EXPORT void setReference (const char *aReference)
 Sets reference.
Standard_EXPORT void setComponentDataType (const char *ComponentDataType)
 Sets component data type.
Standard_EXPORT const char * getComponentDataType ()
Standard_EXPORT Standard_Boolean isComponentType (const char *ComponentDataType)
virtual Standard_EXPORT ~SALOME_InteractiveObject ()
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const
Standard_EXPORT Standard_Boolean IsKind (const Handle(Standard_Type)&) const

Protected Attributes

std::string myReference
std::string myEntry
std::string myName
std::string myComponentDataType

Friends

Standard_Boolean IsEqual (const Handle(SALOME_InteractiveObject)&anIO1, const Handle(SALOME_InteractiveObject)&anIO2)
Standard_EXPORT friend
Handle_Standard_Type & 
SALOME_InteractiveObject_Type_ ()

Detailed Description

...

Definition at line 60 of file SALOME_InteractiveObject.hxx.


Constructor & Destructor Documentation

Default constructor.

Definition at line 37 of file SALOME_InteractiveObject.cxx.

{
  myEntry = "";
  myName  = "";
  myComponentDataType = "";
  myReference = "";
}
SALOME_InteractiveObject::SALOME_InteractiveObject ( const char *  anEntry,
const char *  aComponentDataType,
const char *  aName = "" 
)

Constructor.

Parameters:
anEntry- entry of object
aComponentDataType- component data type name
aName- name of object

Definition at line 51 of file SALOME_InteractiveObject.cxx.

                                                                     :
  myEntry(anEntry), 
  myName(aName), 
  myComponentDataType(aComponentDataType), 
  myReference("")
{}

Definition at line 33 of file SALOME_InteractiveObject.ixx.

{}

Member Function Documentation

Returns:
component data type

Definition at line 86 of file SALOME_InteractiveObject.cxx.

                                                          {
  return myComponentDataType.c_str();
}
Returns:
entry

Definition at line 71 of file SALOME_InteractiveObject.cxx.

                                              {
  return myEntry.c_str();
}

Here is the caller graph for this function:

Returns:
name

Definition at line 101 of file SALOME_InteractiveObject.cxx.

                                             {
  return myName.c_str();
}
Returns:
reference

Definition at line 147 of file SALOME_InteractiveObject.cxx.

{
  return myReference.c_str();
}
Standard_EXPORT const SALOME_InteractiveObject::Handle ( Standard_Type  ) const
Standard_Boolean SALOME_InteractiveObject::hasEntry ( )
Returns:
true if entry isn't empty

Definition at line 108 of file SALOME_InteractiveObject.cxx.

                                                   {
  return myEntry != "";
}

Here is the caller graph for this function:

Returns:
true if object has reference

Definition at line 139 of file SALOME_InteractiveObject.cxx.

{
  return myReference != "";
}
Standard_Boolean SALOME_InteractiveObject::isComponentType ( const char *  ComponentDataType)
Returns:
true if component data types are same
Parameters:
ComponentDataType- component data type to be checked

Definition at line 129 of file SALOME_InteractiveObject.cxx.

                                                                                       {
  if ( myComponentDataType == ComponentDataType )
    return Standard_True;
  else
    return Standard_False;
}

Here is the caller graph for this function:

Standard_Boolean SALOME_InteractiveObject::IsKind ( const Handle(Standard_Type)&  AType) const

Definition at line 76 of file SALOME_InteractiveObject.ixx.

{ 
  return (STANDARD_TYPE(SALOME_InteractiveObject) == AType || MMgt_TShared::IsKind(AType)); 
}

Here is the call graph for this function:

Standard_Boolean SALOME_InteractiveObject::isSame ( const Handle(SALOME_InteractiveObject)&  anIO) [virtual]
Returns:
true if objects have same entries
Parameters:
anIO- other object

Definition at line 116 of file SALOME_InteractiveObject.cxx.

                                                                                              {
  if ( anIO->hasEntry() && this->hasEntry() ) {
    if ( myEntry == anIO->getEntry() )
      return Standard_True;
  }
  
  return Standard_False;
}

Here is the call graph for this function:

void SALOME_InteractiveObject::operator delete ( void anAddress) [inline]

Definition at line 72 of file SALOME_InteractiveObject.hxx.

      { 
        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
      }
void* SALOME_InteractiveObject::operator new ( size_t  ,
void anAddress 
) [inline]

Definition at line 64 of file SALOME_InteractiveObject.hxx.

      {
        return anAddress;
      }
void* SALOME_InteractiveObject::operator new ( size_t  size) [inline]

Definition at line 68 of file SALOME_InteractiveObject.hxx.

      { 
        return Standard::Allocate(size); 
      }
void SALOME_InteractiveObject::setComponentDataType ( const char *  aComponentDataType)

Sets component data type.

Parameters:
aComponentDataType- component data type name

Definition at line 79 of file SALOME_InteractiveObject.cxx.

                                                                                 {
  myComponentDataType = aComponentDataType; 
}
void SALOME_InteractiveObject::setEntry ( const char *  anEntry)

Sets entry.

Parameters:
anEntry- new entry of object

Definition at line 64 of file SALOME_InteractiveObject.cxx.

                                                          {
  myEntry = anEntry;
}
void SALOME_InteractiveObject::setName ( const char *  aName)

Sets name.

Parameters:
aName- new name of object

Definition at line 94 of file SALOME_InteractiveObject.cxx.

                                                       {
  myName = aName;
}
void SALOME_InteractiveObject::setReference ( const char *  aReference)

Sets reference.

Parameters:
aReference- new reference

Definition at line 156 of file SALOME_InteractiveObject.cxx.

{
  myReference = aReference;
}

Friends And Related Function Documentation

Standard_Boolean IsEqual ( const Handle(SALOME_InteractiveObject)&  anIO1,
const Handle(SALOME_InteractiveObject)&  anIO2 
) [friend]

Definition at line 100 of file SALOME_InteractiveObject.hxx.

{ return anIO1->isSame( anIO2 ); }
Standard_EXPORT friend Handle_Standard_Type& SALOME_InteractiveObject_Type_ ( ) [friend]

Definition at line 37 of file SALOME_InteractiveObject.ixx.

{

    static Handle_Standard_Type aType1 = STANDARD_TYPE(MMgt_TShared);
  if ( aType1.IsNull()) aType1 = STANDARD_TYPE(MMgt_TShared);
  static Handle_Standard_Type aType2 = STANDARD_TYPE(Standard_Transient);
  if ( aType2.IsNull()) aType2 = STANDARD_TYPE(Standard_Transient);
 

  static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,NULL};
  static Handle_Standard_Type _aType = new Standard_Type("SALOME_InteractiveObject",
                                                         sizeof(SALOME_InteractiveObject),
                                                         1,
                                                         (Standard_Address)_Ancestors,
                                                         (Standard_Address)NULL);

  return _aType;
}

Member Data Documentation

Definition at line 125 of file SALOME_InteractiveObject.hxx.

std::string SALOME_InteractiveObject::myEntry [protected]

Definition at line 123 of file SALOME_InteractiveObject.hxx.

std::string SALOME_InteractiveObject::myName [protected]

Definition at line 124 of file SALOME_InteractiveObject.hxx.

std::string SALOME_InteractiveObject::myReference [protected]

Definition at line 122 of file SALOME_InteractiveObject.hxx.


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