|
WSF
|
#include <Segment.hpp>
Public Types | |
| using | SetPosition = size_t |
| Location in file, useful for logging errors. | |
| using | SetLocation = std::pair<const Set&, SetPosition> |
| using | SetLocations = std::vector<SetLocation> |
Public Member Functions | |
| Segment (const SetLocations &aSets) noexcept | |
| const SetLocation | GetSet (const std::string &aSTF) const |
| const Set & | GetSet (SetPosition aSetIndex) const |
| std::vector< SetLocations > | GetSubSegments (const std::string &aSTF) const |
| SetLocations | GetSubSegment (const SetPosition &startPosition, const SetPosition &stopPosition) const |
| SetLocations | GetSets (const std::string &aSTF) const noexcept |
| size_t | GetNumberOfSets () const noexcept |
| bool | HasSet (const std::string &aSTF) const |
| SetLocations::const_iterator | begin () const |
| Iteration support. | |
| SetLocations::const_iterator | end () const |
A segment is an extracted aggregation of Sets from a message, usually indicating some logical idea. Transforms will take segments and create script blocks out of them The reason they are their own class is for some convenience while working with them. They are similar to a Message in that they are a collection of sets with some similar convenience methods, however they are distinct in that they are just an arbitrary collection of sets, not a USMTF governed collection. Simply think of them as an excerpt from a Message. Segment is actual USMTF Parlance or id have called this message excerpt. Segments are the paragraph of the USMTF if you will.
| using usmtf::Segment::SetLocation = std::pair<const Set&, SetPosition> |
| using usmtf::Segment::SetLocations = std::vector<SetLocation> |
| using usmtf::Segment::SetPosition = size_t |
Location in file, useful for logging errors.
|
explicitnoexcept |
| Segment::SetLocations::const_iterator usmtf::Segment::begin | ( | ) | const |
Iteration support.
| Segment::SetLocations::const_iterator usmtf::Segment::end | ( | ) | const |
|
noexcept |
Referenced by GetSubSegments().
| const Segment::SetLocation usmtf::Segment::GetSet | ( | const std::string & | aSTF | ) | const |
Referenced by GetSubSegment().
| const Set & usmtf::Segment::GetSet | ( | Segment::SetPosition | aSetIndex | ) | const |
|
noexcept |
Referenced by GetSubSegments().
| Segment::SetLocations usmtf::Segment::GetSubSegment | ( | const SetPosition & | startPosition, |
| const SetPosition & | stopPosition ) const |
References GetSet().
Referenced by GetSubSegments().
| std::vector< Segment::SetLocations > usmtf::Segment::GetSubSegments | ( | const std::string & | aSTF | ) | const |
References GetNumberOfSets(), GetSets(), and GetSubSegment().
| bool usmtf::Segment::HasSet | ( | const std::string & | aSTF | ) | const |