General KERNEL Documentation     End User KERNEL Services  


SALOMEDS::AttributeStudyProperties Interface Reference

AttributeStudyProperties interface More...

import "SALOMEDS_Attributes.idl";

Inheritance diagram for SALOMEDS::AttributeStudyProperties:

Inheritance graph
Collaboration diagram for SALOMEDS::AttributeStudyProperties:

Collaboration graph

Public Member Functions

void SetUserName (in string theName)
string GetUserName ()
void SetCreationDate (in long theMinute, in long theHour, in long theDay, in long theMonth, in long theYear)
boolean GetCreationDate (out long theMinute, out long theHour, out long theDay, out long theMonth, out long theYear)
void SetCreationMode (in string theMode)
string GetCreationMode ()
void SetModified (in long theModified)
boolean IsModified ()
long GetModified ()
void SetLocked (in boolean theLocked)
boolean IsLocked ()
void SetModification (in string theName, in long theMinute, in long theHour, in long theDay, in long theMonth, in long theYear)
void GetModificationsList (out StringSeq theNames, out LongSeq theMinutes, out LongSeq theHours, out LongSeq theDays, out LongSeq theMonths, out LongSeq theYears, in boolean theWithCreator)
void CheckLocked () raises (LockProtection)
 Method CheckLocked.
string Type ()
string GetClassType ()
SObject GetSObject ()
long GetLocalImpl (in string theHostname, in long thePID, out boolean isLocal)
void Register ()
void Destroy ()

Detailed Description

This attribute allows to store study properties: user name, creation date, creation mode, modified flag, locked flag.
See also an example of usage of these methods in batchmode of SALOME application.


Member Function Documentation

void SALOMEDS::AttributeStudyProperties::SetUserName in string  theName  ) 
 

Sets the name of the author of the Study

string SALOMEDS::AttributeStudyProperties::GetUserName  ) 
 

Returns the name of the user of the Study.

Note:

It returns a null string, if user name is not set

void SALOMEDS::AttributeStudyProperties::SetCreationDate in long  theMinute,
in long  theHour,
in long  theDay,
in long  theMonth,
in long  theYear
 

Sets creation date of the Study.

boolean SALOMEDS::AttributeStudyProperties::GetCreationDate out long  theMinute,
out long  theHour,
out long  theDay,
out long  theMonth,
out long  theYear
 

Returns creation date of the Study and True if creation date is set.

void SALOMEDS::AttributeStudyProperties::SetCreationMode in string  theMode  ) 
 

Sets creation mode of the Study.

Note:

Creation mode must be: "from scratch" or "copy from".

string SALOMEDS::AttributeStudyProperties::GetCreationMode  ) 
 

Returns creation mode: "from scratch", "copy from", or null string if creation mode is not set

void SALOMEDS::AttributeStudyProperties::SetModified in long  theModified  ) 
 

Sets the number of transactions executed after the last saving of the document.

boolean SALOMEDS::AttributeStudyProperties::IsModified  ) 
 

Returns True, if the document has been modified and not saved.

long SALOMEDS::AttributeStudyProperties::GetModified  ) 
 

Returns the number of transactions executed after the last saving of the document.

void SALOMEDS::AttributeStudyProperties::SetLocked in boolean  theLocked  ) 
 

Sets the document locked for modifications if theLocked is True.

boolean SALOMEDS::AttributeStudyProperties::IsLocked  ) 
 

Returns True if the document is locked for modifications.

void SALOMEDS::AttributeStudyProperties::SetModification in string  theName,
in long  theMinute,
in long  theHour,
in long  theDay,
in long  theMonth,
in long  theYear
 

Appends modification parameters to the modifications list.

void SALOMEDS::AttributeStudyProperties::GetModificationsList out StringSeq  theNames,
out LongSeq  theMinutes,
out LongSeq  theHours,
out LongSeq  theDays,
out LongSeq  theMonths,
out LongSeq  theYears,
in boolean  theWithCreator
 

Returns a list of mosdifiers user names, modification dates. /note
If theWithCreator is True, then the output list will also contain the name of the author and the date of creation.

void SALOMEDS::GenericAttribute::CheckLocked  )  raises (LockProtection) [inherited]
 

Checks whether the Study is protected for modifications.

Note:

This exception is raised only outside a transaction.

string SALOMEDS::GenericAttribute::Type  )  [inherited]
 

string SALOMEDS::GenericAttribute::GetClassType  )  [inherited]
 

SObject SALOMEDS::GenericAttribute::GetSObject  )  [inherited]
 

long SALOMEDS::GenericAttribute::GetLocalImpl in string  theHostname,
in long  thePID,
out boolean  isLocal
[inherited]
 

Private method, returns an implementation of this GenericAttribute.

Parameters:
theHostname is a hostname of the caller
thePID is a process ID of the caller
isLocal is set True if the GenericAttribute is launched locally with the caller

void SALOME::GenericObj::Register  )  [inherited]
 

Increase the reference count (mark as used by another object).

void SALOME::GenericObj::Destroy  )  [inherited]
 

Decrease the reference count (release by another object).