X-Git-Url: http://rtime.felk.cvut.cz/gitweb/boost-statechart-viewer.git/blobdiff_plain/cfa2f35ab26fd61f13dcf8c5e3eb222ae7745c91..cecfba7b6fd2bf47cae4308e565babb2c7bf8a8d:/src/iooper.h diff --git a/src/iooper.h b/src/iooper.h index a8a8910..a5bd254 100644 --- a/src/iooper.h +++ b/src/iooper.h @@ -1,4 +1,4 @@ - +/** @file */ //////////////////////////////////////////////////////////////////////////////////////// // // This file is part of Boost Statechart Viewer. @@ -30,14 +30,14 @@ using namespace std; * This class provides saving information about state machine to a specified output file. It saves states and transitions and also it creates the transition table. */ class IO_operations -{ - list transitions; - list states; - list events; - string outputFilename; +{ + list transitions; /** list of transitions */ + list states; /** list of states */ + list events; /** list of events */ + string outputFilename; string name_of_machine; string name_of_first_state; - string *table; + string *table; /** transition table. It is being allocated when starting the creation of output file. */ int nState; int cols, rows; /** This function finds place in the transition table to put a transition there. */ @@ -58,7 +58,8 @@ class IO_operations return -1; } public: - IO_operations() {} + IO_operations() {} /** Implicit constructor */ + /** Constructor that fill in all private variables in this class */ IO_operations( const string outputFile, const string FSM_name, const string firstState, const list trans, const list state, const list ev ) { outputFilename = outputFile; @@ -68,7 +69,8 @@ class IO_operations states = state; events = ev; } - ~IO_operations() + + ~IO_operations() /** destructor. It deallocates the transition table.*/ { delete table; }