Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SA Class Reference

#include <session_attribute.h>

Inheritance diagram for SA:
Inheritance graph
Collaboration diagram for SA:
Collaboration graph

Protected Member Functions

void reserve_attribute ()
 insert attribute in to the set, throw exception, if there is already one with the same name More...
 
void cancel_attribute ()
 remove attribute from the set of used attribute More...
 
 SA (std::string name)
 
virtual ~SA ()
 

Protected Attributes

const std::string m_name
 name of attribute More...
 

Static Protected Attributes

static std::set< std::stringRESERVED_ATTR
 static set that keeps attributes in use More...
 

Detailed Description

Works with MscElements attrubutes: setter and getter. What was set through SesstionAttribute is automaticly removed when the object is destroyed.

Definition at line 35 of file session_attribute.h.

Constructor & Destructor Documentation

SA::SA ( std::string  name)
inlineprotected

Definition at line 49 of file session_attribute.h.

SA::~SA ( )
protectedvirtual

Definition at line 35 of file session_attribute.cpp.

References cancel_attribute().

Member Function Documentation

void SA::cancel_attribute ( )
protected

remove attribute from the set of used attribute

Definition at line 30 of file session_attribute.cpp.

References m_name, and RESERVED_ATTR.

Referenced by ~SA().

void SA::reserve_attribute ( )
protected

insert attribute in to the set, throw exception, if there is already one with the same name

Definition at line 22 of file session_attribute.cpp.

References m_name, RESERVED_ATTR, and string.

Member Data Documentation

const std::string SA::m_name
protected
std::set< std::string > SA::RESERVED_ATTR
staticprotected

static set that keeps attributes in use

Definition at line 39 of file session_attribute.h.

Referenced by cancel_attribute(), and reserve_attribute().


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

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:59 for Sequence Chart Studio by  doxygen