Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C++ code > Generating C++ code > Generating C++ code > Mapping Information > Mapping information for state diagrams > State diagram mappings - history state (C++ code)
  
State diagram mappings - history state (C++ code)
For each History State on a State Diagram that is being generated, ACS generates the following code elements.
History state attribute
A private attribute that on exiting a sequential state or concurrent state, stores the last current substate within that state.
The name of each history state attribute is as follows:
RtsAttHistory_<parent sequential state, concurrent state or state diagram name>
The history state attribute uses the states type enumeration type that is generated for the owning state or diagram.
History state operation
A private operation which on entering a state makes the last state (as stored by the history state attribute) current.
The name of each history state operation is as follows:
RtsHistory_<parent sequential state, concurrent state or state diagram name>