#include <DdSyncDescriptor.hh>
|
bool | analyseSynchronisationLine (const std::string &syncLine, std::string &error) |
|
bool | analyseQuoteLabels (const std::string &syncLine, Size currentIndex, QuoteIndexesVector "eIndexes, std::string &error) |
|
ParsingState | analyseOut (const std::string &syncLine, Size ¤tIndex, std::string &error) |
|
ParsingState | analyseLeftP (const std::string &syncLine, const QuoteIndexesVector "eIndexes, size_t currentQuoteIndex, Size ¤tIndex, std::string &error) |
|
ParsingState | analyseName (const std::string &syncLine, Size ¤tIndex, std::string &label, std::string &error) |
|
ParsingState | analyseQuoteName (const std::string &syncLine, const QuoteIndexesVector "eIndexes, size_t ¤tQuoteIndex, Size ¤tIndex, std::string &label, std::string &error) |
|
ParsingState | analyseComma (const std::string &syncLine, Size ¤tIndex, std::string &error) |
|
ParsingState | analyseEvt (const std::string &syncLine, Size ¤tIndex, DdAutEventId &evt, std::string &error) |
|
ParsingState | analyseRightP (const std::string &syncLine, Size ¤tIndex, std::string &error) |
|
|
static constexpr Size | NPOS = std::string::npos |
|
Descriptor of ddsync file. It contains the synchronisation rules between component events
Definition at line 28 of file DdSyncDescriptor.hh.
◆ ConstIterator
◆ Iterator
◆ QuoteIndexes
◆ QuoteIndexesVector
◆ Size
◆ SynchronisationList
◆ ParsingState
Enumerator |
---|
LeftP | |
RightP | |
Name | |
QuoteName | |
Comma | |
Evt | |
Out | |
Error | |
End | |
Definition at line 282 of file DdSyncDescriptor.hh.
◆ DdSyncDescriptor() [1/3]
Diades::Automata::Experimental::DdSyncDescriptor::DdSyncDescriptor |
( |
| ) |
|
|
default |
◆ DdSyncDescriptor() [2/3]
Diades::Automata::Experimental::DdSyncDescriptor::DdSyncDescriptor |
( |
DdSyncDescriptor const & |
other | ) |
|
|
default |
Copy constructor (default)
- Parameters
-
◆ DdSyncDescriptor() [3/3]
Diades::Automata::Experimental::DdSyncDescriptor::DdSyncDescriptor |
( |
DdSyncDescriptor && |
other | ) |
|
|
default |
Move constructor (default)
- Parameters
-
◆ ~DdSyncDescriptor()
Diades::Automata::Experimental::DdSyncDescriptor::~DdSyncDescriptor |
( |
| ) |
|
|
default |
◆ analyseComma()
ParsingState Diades::Automata::Experimental::DdSyncDescriptor::analyseComma |
( |
const std::string & |
syncLine, |
|
|
Size & |
currentIndex, |
|
|
std::string & |
error |
|
) |
| |
|
private |
- Parameters
-
syncLine | the line to analyse |
currentIndex | the index to start the analysis from and the update if no error |
error | an error message is appended here in case of error in the parsing |
- Returns
- the new parsing state, if error the parsing has failed.
◆ analyseEvt()
ParsingState Diades::Automata::Experimental::DdSyncDescriptor::analyseEvt |
( |
const std::string & |
syncLine, |
|
|
Size & |
currentIndex, |
|
|
DdAutEventId & |
evt, |
|
|
std::string & |
error |
|
) |
| |
|
private |
- Parameters
-
syncLine | the line to analyse |
currentIndex | the index to start the analysis from and the update if no error |
evt | the result event if no error |
error | an error message is appended here in case of error in the parsing |
- Returns
- the new parsing state, if error the parsing has failed.
◆ analyseLeftP()
ParsingState Diades::Automata::Experimental::DdSyncDescriptor::analyseLeftP |
( |
const std::string & |
syncLine, |
|
|
const QuoteIndexesVector & |
quoteIndexes, |
|
|
size_t |
currentQuoteIndex, |
|
|
Size & |
currentIndex, |
|
|
std::string & |
error |
|
) |
| |
|
private |
- Parameters
-
syncLine | the line to analyse |
quoteIndexes | the preinitialised set of pairs (left quote index, right quote index) |
currentQuoteIndex | the current pair in quoteIndexes updated if no parsing error |
currentIndex | the index to start the analysis from and the update if no error |
error | an error message is appended here in case of error in the parsing |
- Returns
- the new parsing state, if error the parsing has failed.
◆ analyseName()
ParsingState Diades::Automata::Experimental::DdSyncDescriptor::analyseName |
( |
const std::string & |
syncLine, |
|
|
Size & |
currentIndex, |
|
|
std::string & |
label, |
|
|
std::string & |
error |
|
) |
| |
|
private |
- Parameters
-
syncLine | the line to analyse |
currentIndex | the index to start the analysis from and the update if no error |
label | the resulting component name if no error |
error | an error message is appended here in case of error in the parsing |
- Returns
- the new parsing state, if error the parsing has failed.
◆ analyseOut()
ParsingState Diades::Automata::Experimental::DdSyncDescriptor::analyseOut |
( |
const std::string & |
syncLine, |
|
|
Size & |
currentIndex, |
|
|
std::string & |
error |
|
) |
| |
|
private |
- Parameters
-
syncLine | the line to analyse |
currentIndex | the index to start the analysis from and the update if no error |
error | an error message is appended here in case of error in the parsing |
- Returns
- the new parsing state, if error the parsing has failed.
◆ analyseQuoteLabels()
bool Diades::Automata::Experimental::DdSyncDescriptor::analyseQuoteLabels |
( |
const std::string & |
syncLine, |
|
|
Size |
currentIndex, |
|
|
QuoteIndexesVector & |
quoteIndexes, |
|
|
std::string & |
error |
|
) |
| |
|
private |
- Parameters
-
syncLine | the line to analyse |
currentIndex | the index to start the analysis from |
quoteIndexes | the resulting set of pairs (left quote index, right quote index) |
error | an error message is appended here in case of error in the parsing |
- Returns
- true if there is a even pair of quotes in the analysed syncLine
◆ analyseQuoteName()
ParsingState Diades::Automata::Experimental::DdSyncDescriptor::analyseQuoteName |
( |
const std::string & |
syncLine, |
|
|
const QuoteIndexesVector & |
quoteIndexes, |
|
|
size_t & |
currentQuoteIndex, |
|
|
Size & |
currentIndex, |
|
|
std::string & |
label, |
|
|
std::string & |
error |
|
) |
| |
|
private |
- Parameters
-
syncLine | the line to analyse |
quoteIndexes | the preinitialised set of pairs (left quote index, right quote index) |
currentQuoteIndex | the current pair in quoteIndexes updated if no parsing error |
currentIndex | the index to start the analysis from and the update if no error |
label | the resulting component name if no error |
error | an error message is appended here in case of error in the parsing |
- Returns
- the new parsing state, if error the parsing has failed.
◆ analyseRightP()
ParsingState Diades::Automata::Experimental::DdSyncDescriptor::analyseRightP |
( |
const std::string & |
syncLine, |
|
|
Size & |
currentIndex, |
|
|
std::string & |
error |
|
) |
| |
|
private |
- Parameters
-
syncLine | the line to analyse |
currentIndex | the index to start the analysis from and the update if no error |
error | an error message is appended here in case of error in the parsing |
- Returns
- the new parsing state, if error the parsing has failed.
◆ analyseSynchronisationLine()
bool Diades::Automata::Experimental::DdSyncDescriptor::analyseSynchronisationLine |
( |
const std::string & |
syncLine, |
|
|
std::string & |
error |
|
) |
| |
|
private |
- Parameters
-
syncLine | the line to analyse |
error | an error message is appended here in case of error in the parsing |
- Returns
- true if the analysis is correct. The syncLine should contains something like this: (compName1,eventId1) (compName2,eventId2) ... (compNameN,eventIdN) with N >=2 , compNameI being either an identifier or a double quote string, and eventIdI should be a positive integer representing an event from the component of the given name. If the analysis is correct then the DdSyncDescriptor records this synchronisation rule.
◆ begin() [1/2]
ConstIterator Diades::Automata::Experimental::DdSyncDescriptor::begin |
( |
| ) |
const |
◆ begin() [2/2]
Iterator Diades::Automata::Experimental::DdSyncDescriptor::begin |
( |
| ) |
|
◆ clear()
void Diades::Automata::Experimental::DdSyncDescriptor::clear |
( |
| ) |
|
Clear the synchronisation list
◆ end() [1/2]
ConstIterator Diades::Automata::Experimental::DdSyncDescriptor::end |
( |
| ) |
const |
◆ end() [2/2]
Iterator Diades::Automata::Experimental::DdSyncDescriptor::end |
( |
| ) |
|
◆ insertSynchronisation()
Iterator Diades::Automata::Experimental::DdSyncDescriptor::insertSynchronisation |
( |
Synchronisation && |
synchronisation | ) |
|
◆ numberOfSynchronisations()
SynchronisationList::size_type Diades::Automata::Experimental::DdSyncDescriptor::numberOfSynchronisations |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
Assignement (default)
- Parameters
-
- Returns
- the current Transition
◆ operator=() [2/2]
Move assignement (default)
- Parameters
-
- Returns
- the current Transition
◆ readStream()
virtual bool Diades::Automata::Experimental::DdSyncDescriptor::readStream |
( |
std::istream & |
stream, |
|
|
std::string & |
error |
|
) |
| |
|
virtual |
- Parameters
-
stream | input stream |
error | an error message is appended here in case of error in the parsing Reads the stream to fill the DdSyncFileDescriptor If the DdSyncDescriptor was already filled, it is cleared first |
- Returns
- true if the file parsing is a success. If not a success, the DdAutFileDescriptor is cleared.
Referenced by exportDdSyncToDot(), and synchroniseDdAut().
◆ toDot()
ostream& Diades::Automata::Experimental::DdSyncDescriptor::toDot |
( |
ostream & |
os | ) |
const |
◆ toStream()
virtual bool Diades::Automata::Experimental::DdSyncDescriptor::toStream |
( |
std::ostream & |
stream | ) |
|
|
virtual |
- Parameters
-
stream | output stream Write the content of the DdSyncFileDescriptor in the output stream |
- Returns
- true if the writing is a success (valid DdSyncFileDescriptor).
◆ _syncList
◆ NPOS
constexpr Size Diades::Automata::Experimental::DdSyncDescriptor::NPOS = std::string::npos |
|
staticprivate |
The documentation for this class was generated from the following file:
- /home/yannick/laas/redmine/tools/diades/include/diades/automata/experimental/DdSyncDescriptor.hh