Version: 8.3.0
SALOMEDS::AttributeFlags Interface Reference

Flags attribute. More...

import "SALOMEDS_Attributes.idl";

Inheritance diagram for SALOMEDS::AttributeFlags:

Public Member Functions

long GetFlags ()
 Returns the value of the attribute. More...
 
void SetFlags (in long flags)
 Sets the value of the attribute. More...
 
boolean Get (in long flags)
 Test the value for the specified flag or set of flags. More...
 
void Set (in long flags, in boolean value)
 Set/clear specific flag or set of flags. More...
 
void CheckLocked () raises (LockProtection)
 Method CheckLocked. More...
 
string Type ()
 Get Type. More...
 
string GetClassType ()
 Get the class type. More...
 
SObject GetSObject ()
 Get SObject. More...
 
long long GetLocalImpl (in string theHostname, in long thePID, out boolean isLocal)
 Private method, returns an implementation of this GenericAttribute. More...
 
void Register ()
 Increase the reference count (mark as used by another object). More...
 
void UnRegister ()
 Decrease the reference count (release by another object). More...
 
void Destroy ()
 Obsolete, left for compatibility reasons only. More...
 

Detailed Description

Flags attribute.

The interface is intended for storing different object attributes that have only two states: 0 (false) or 1 (true).

Note
The interpretation of the flag values attribute is a matter of the user.
The total number of flags which can be stored in a single attribute is defined by the size of CORBA::Long data type.

Member Function Documentation

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

Method CheckLocked.

Checks whether the Study is protected for modifications.

Note

This exception is raised only outside a transaction.
void SALOME::GenericObj::Destroy ( )
inherited

Obsolete, left for compatibility reasons only.

Use UnRegister() instead.

boolean SALOMEDS::AttributeFlags::Get ( in long  flags)

Test the value for the specified flag or set of flags.

Parameters
flagsflag or set of flags being tested.
Returns
true if all bits correspoding to the flags are currently set or false otherwise
string SALOMEDS::GenericAttribute::GetClassType ( )
inherited

Get the class type.

long SALOMEDS::AttributeFlags::GetFlags ( )

Returns the value of the attribute.

Returns
set of flags currently set to the attribute
long long SALOMEDS::GenericAttribute::GetLocalImpl ( in string  theHostname,
in long  thePID,
out boolean  isLocal 
)
inherited

Private method, returns an implementation of this GenericAttribute.

Parameters
theHostnameis a hostname of the caller
thePIDis a process ID of the caller
isLocalis set True if the GenericAttribute is launched locally with the caller
SObject SALOMEDS::GenericAttribute::GetSObject ( )
inherited

Get SObject.

void SALOME::GenericObj::Register ( )
inherited

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

void SALOMEDS::AttributeFlags::Set ( in long  flags,
in boolean  value 
)

Set/clear specific flag or set of flags.

Parameters
flagsflag or set of flags being set / cleared
valuetrue if all bits correspoding to the flags should be set or false if flag(s) should be cleared
void SALOMEDS::AttributeFlags::SetFlags ( in long  flags)

Sets the value of the attribute.

Parameters
flagsnew set of flags to be stored in the attribute
string SALOMEDS::GenericAttribute::Type ( )
inherited

Get Type.

void SALOME::GenericObj::UnRegister ( )
inherited

Decrease the reference count (release by another object).