Back to index

salome-kernel  6.5.0
Public Member Functions
SALOMEDS_AttributeStudyProperties_i Class Reference

#include <SALOMEDS_AttributeStudyProperties_i.hxx>

List of all members.

Public Member Functions

 SALOMEDS_AttributeStudyProperties_i (SALOMEDSImpl_AttributeStudyProperties *theAttr, CORBA::ORB_ptr orb)
 ~SALOMEDS_AttributeStudyProperties_i ()
virtual void SetUserName (const char *theName)
virtual char * GetUserName ()
virtual void SetCreationDate (CORBA::Long theMinute, CORBA::Long theHour, CORBA::Long theDay, CORBA::Long theMonth, CORBA::Long theYear)
virtual CORBA::Boolean GetCreationDate (CORBA::Long &theMinute, CORBA::Long &theHour, CORBA::Long &theDay, CORBA::Long &theMonth, CORBA::Long &theYear)
virtual void SetCreationMode (const char *theMode)
virtual char * GetCreationMode ()
virtual void SetModified (CORBA::Long theModified)
virtual CORBA::Boolean IsModified ()
virtual CORBA::Long GetModified ()
virtual void SetLocked (CORBA::Boolean theLocked)
virtual CORBA::Boolean IsLocked ()
virtual void SetModification (const char *theName, CORBA::Long theMinute, CORBA::Long theHour, CORBA::Long theDay, CORBA::Long theMonth, CORBA::Long theYear)
virtual void GetModificationsList (SALOMEDS::StringSeq_out theNames, SALOMEDS::LongSeq_out theMinutes, SALOMEDS::LongSeq_out theHours, SALOMEDS::LongSeq_out theDays, SALOMEDS::LongSeq_out theMonths, SALOMEDS::LongSeq_out theYears, CORBA::Boolean theWithCreator)
virtual void SetComment (const char *theComment)
virtual char * GetComment ()
virtual void SetUnits (const char *theUnits)
virtual char * GetUnits ()

Detailed Description

Definition at line 37 of file SALOMEDS_AttributeStudyProperties_i.hxx.


Constructor & Destructor Documentation

SALOMEDS_AttributeStudyProperties_i::SALOMEDS_AttributeStudyProperties_i ( SALOMEDSImpl_AttributeStudyProperties *  theAttr,
CORBA::ORB_ptr  orb 
) [inline]

Definition at line 41 of file SALOMEDS_AttributeStudyProperties_i.hxx.

    :SALOMEDS_GenericAttribute_i(theAttr, orb) {}; 

Definition at line 44 of file SALOMEDS_AttributeStudyProperties_i.hxx.

{};

Member Function Documentation

Definition at line 198 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  std::string C = dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->GetComment();
  CORBA::String_var c_s = CORBA::string_dup(C.c_str());
  return c_s._retn();
}

Here is the call graph for this function:

CORBA::Boolean SALOMEDS_AttributeStudyProperties_i::GetCreationDate ( CORBA::Long &  theMinute,
CORBA::Long &  theHour,
CORBA::Long &  theDay,
CORBA::Long &  theMonth,
CORBA::Long &  theYear 
) [virtual]

Definition at line 64 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  int aMinute;
  int aHour;
  int aDay;
  int aMonth;
  int aYear;
  if (dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->GetCreationDate(aMinute, aHour, aDay, aMonth, aYear)) {
    theMinute = aMinute;
    theHour = aHour;
    theDay = aDay;
    theMonth = aMonth;
    theYear = aYear;
    return true;
  }
  return false;
}

Here is the call graph for this function:

Definition at line 97 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  CORBA::String_var c_s;
  switch (dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->GetCreationMode()) {
  case CREATION_MODE_SCRATCH: c_s = "from scratch"; break;
  case CREATION_MODE_COPY: c_s = "copy from"; break;
  default: c_s = "";
  }
  return c_s._retn();
}

Here is the call graph for this function:

void SALOMEDS_AttributeStudyProperties_i::GetModificationsList ( SALOMEDS::StringSeq_out  theNames,
SALOMEDS::LongSeq_out  theMinutes,
SALOMEDS::LongSeq_out  theHours,
SALOMEDS::LongSeq_out  theDays,
SALOMEDS::LongSeq_out  theMonths,
SALOMEDS::LongSeq_out  theYears,
CORBA::Boolean  theWithCreator 
) [virtual]

Definition at line 153 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  std::vector<std::string> aNames;
  std::vector<int> aMinutes, aHours, aDays, aMonths, aYears;
  SALOMEDSImpl_AttributeStudyProperties* aProp = dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl);
  aProp->GetModifications(aNames, aMinutes, aHours, aDays, aMonths, aYears);
  int aLength = aNames.size();
  int aRetLength = aLength - ((theWithCreator) ? 0 : 1);
  theNames = new SALOMEDS::StringSeq;
  theMinutes = new SALOMEDS::LongSeq;
  theHours = new SALOMEDS::LongSeq;
  theDays = new SALOMEDS::LongSeq;
  theMonths = new SALOMEDS::LongSeq;
  theYears = new SALOMEDS::LongSeq;
  theNames->length(aRetLength);
  theMinutes->length(aRetLength);
  theHours->length(aRetLength);
  theDays->length(aRetLength);
  theMonths->length(aRetLength);
  theYears->length(aRetLength);
  int a = 0, ind = ((theWithCreator) ? 1 : 2);
  for (; ind <= aLength; a++, ind++) {
    (*theNames)[a] = CORBA::string_dup(aNames[ind-1].c_str());
    (*theMinutes)[a] = aMinutes[ind-1];
    (*theHours)[a] = aHours[ind-1];
    (*theDays)[a] = aDays[ind-1];
    (*theMonths)[a] = aMonths[ind-1];
    (*theYears)[a] = aYears[ind-1];
  }
}

Here is the call graph for this function:

Definition at line 121 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  return dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->GetModified();
}

Here is the call graph for this function:

Definition at line 213 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  std::string U = dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->GetUnits();
  CORBA::String_var c_s = CORBA::string_dup(U.c_str());
  return c_s._retn();
}

Here is the call graph for this function:

Definition at line 41 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  std::string S = dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->GetCreatorName();
  CORBA::String_var c_s = CORBA::string_dup(S.c_str());
  return c_s._retn();
}

Here is the call graph for this function:

CORBA::Boolean SALOMEDS_AttributeStudyProperties_i::IsLocked ( ) [virtual]

Definition at line 133 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  return dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->IsLocked();
}

Here is the call graph for this function:

Definition at line 115 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  return dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->IsModified();
}

Here is the call graph for this function:

void SALOMEDS_AttributeStudyProperties_i::SetComment ( const char *  theComment) [virtual]

Definition at line 191 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  CheckLocked();
  dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->SetComment(std::string(theComment));
}

Here is the call graph for this function:

void SALOMEDS_AttributeStudyProperties_i::SetCreationDate ( CORBA::Long  theMinute,
CORBA::Long  theHour,
CORBA::Long  theDay,
CORBA::Long  theMonth,
CORBA::Long  theYear 
) [virtual]

Definition at line 49 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  CheckLocked();
  SALOMEDSImpl_AttributeStudyProperties* aProp = dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl);
  int aTmp;
  if (aProp->GetCreationDate(aTmp, aTmp, aTmp, aTmp, aTmp)) return;
  std::string S;
  aProp->SetModification(S, theMinute, theHour, theDay, theMonth, theYear);
}

Here is the call graph for this function:

void SALOMEDS_AttributeStudyProperties_i::SetCreationMode ( const char *  theMode) [virtual]

Definition at line 87 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  CheckLocked();
  SALOMEDSImpl_AttributeStudyProperties* aProp = dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl);
  if (strcmp(theMode,"from scratch")==0) aProp->SetCreationMode(CREATION_MODE_SCRATCH);
  else if (strcmp(theMode,"copy from")==0) aProp->SetCreationMode(CREATION_MODE_COPY);
  else aProp->SetCreationMode(CREATION_MODE_NOTDEFINED);
}

Here is the call graph for this function:

void SALOMEDS_AttributeStudyProperties_i::SetLocked ( CORBA::Boolean  theLocked) [virtual]

Definition at line 127 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->SetLocked(theLocked);
}

Here is the call graph for this function:

void SALOMEDS_AttributeStudyProperties_i::SetModification ( const char *  theName,
CORBA::Long  theMinute,
CORBA::Long  theHour,
CORBA::Long  theDay,
CORBA::Long  theMonth,
CORBA::Long  theYear 
) [virtual]

Definition at line 139 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  CheckLocked();
  SALOMEDSImpl_AttributeStudyProperties* aProp = dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl);
  aProp->SetModification((char*)theName, (int)theMinute, (int)theHour,
                         (int)theDay, (int)theMonth, (int)theYear);
}

Here is the call graph for this function:

void SALOMEDS_AttributeStudyProperties_i::SetModified ( CORBA::Long  theModified) [virtual]

Definition at line 109 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->SetModified(theModified);
}

Here is the call graph for this function:

void SALOMEDS_AttributeStudyProperties_i::SetUnits ( const char *  theUnits) [virtual]

Definition at line 206 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  CheckLocked();
  dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->SetUnits(std::string(theUnits));
}

Here is the call graph for this function:

void SALOMEDS_AttributeStudyProperties_i::SetUserName ( const char *  theName) [virtual]

Definition at line 34 of file SALOMEDS_AttributeStudyProperties_i.cxx.

{
  SALOMEDS::Locker lock;
  CheckLocked();
  dynamic_cast<SALOMEDSImpl_AttributeStudyProperties*>(_impl)->ChangeCreatorName((char*)theName);
}

Here is the call graph for this function:


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