virtual class use to parse the cluster data More...
#include <RagTime5ClusterManager.hxx>
Public Member Functions | |
ClusterParser (RagTime5ClusterManager &parser, int type, std::string const &zoneName) | |
constructor More... | |
virtual | ~ClusterParser () |
destructor More... | |
virtual std::shared_ptr< Cluster > | getCluster ()=0 |
return the current cluster More... | |
virtual std::string | getZoneName () const |
return the debug name corresponding to a zone More... | |
virtual std::string | getZoneName (int n, int m=-1) const |
return the debug name corresponding to a cluster More... | |
virtual void | startZone () |
start a new zone More... | |
virtual bool | parseZone (MWAWInputStreamPtr &, long, int, int, libmwaw::DebugStream &) |
parse a zone More... | |
virtual void | endZone () |
end of a start zone call More... | |
virtual bool | parseField (RagTime5StructManager::Field const &, int, libmwaw::DebugStream &) |
parse a the data of a zone, n_dataId:m More... | |
virtual int | getNewZoneToParse () |
returns to new zone to parse. More... | |
bool | isANameHeader (long N) const |
return true if N correspond to a file/script name More... | |
bool | readLinkHeader (MWAWInputStreamPtr &input, long fSz, Link &link, long(&values)[4], std::string &message) |
try to read a link header More... | |
std::string | getClusterDebugName (int id) |
returns "data"+id+"A" ( followed by the cluster type and name if know) More... | |
Public Attributes | |
RagTime5ClusterManager & | m_parser |
the main parser More... | |
int | m_type |
the cluster type More... | |
bool | m_hiLoEndian |
zone endian More... | |
std::string | m_name |
the cluster name More... | |
int | m_dataId |
the actual zone id More... | |
Link | m_link |
the actual link More... | |
Private Member Functions | |
ClusterParser (ClusterParser const &orig)=delete | |
ClusterParser & | operator= (ClusterParser const &orig)=delete |
virtual class use to parse the cluster data
|
inline |
constructor
|
virtual |
destructor
|
explicitprivatedelete |
|
inlinevirtual |
end of a start zone call
Reimplemented in RagTime5GraphInternal::GraphicCParser, RagTime5GraphInternal::PictCParser, RagTime5GraphInternal::ButtonCParser, RagTime5ClusterManagerInternal::StyleCParser, RagTime5SpreadsheetInternal::SpreadsheetCParser, RagTime5ClusterManagerInternal::SoundCParser, RagTime5ClusterManagerInternal::GroupCParser, RagTime5ClusterManagerInternal::RootChildCParser, RagTime5TextInternal::TextCParser, RagTime5ClusterManagerInternal::RootCParser, RagTime5ChartInternal::ChartCParser, and RagTime5LayoutInternal::LayoutCParser.
Referenced by RagTime5ClusterManager::readCluster().
|
pure virtual |
return the current cluster
Implemented in RagTime5GraphInternal::GraphicCParser, RagTime5GraphInternal::PictCParser, RagTime5ClusterManagerInternal::UnknownCParser, RagTime5SpreadsheetInternal::SpreadsheetCParser, RagTime5GraphInternal::ButtonCParser, RagTime5ClusterManagerInternal::StyleCParser, RagTime5ClusterManagerInternal::SoundCParser, RagTime5ClusterManagerInternal::GroupCParser, RagTime5ClusterManagerInternal::RootChildCParser, RagTime5TextInternal::TextCParser, RagTime5ClusterManagerInternal::RootCParser, RagTime5ClusterManagerInternal::ColPatCParser, RagTime5ChartInternal::ChartCParser, RagTime5LayoutInternal::LayoutCParser, and RagTime5PipelineInternal::PipelineCParser.
Referenced by RagTime5ClusterManager::readCluster().
std::string RagTime5ClusterManager::ClusterParser::getClusterDebugName | ( | int | id | ) |
returns "data"+id+"A" ( followed by the cluster type and name if know)
Referenced by RagTime5LayoutInternal::LayoutCParser::parseHeaderZone(), RagTime5LayoutInternal::LayoutCParser::parsePageZone(), RagTime5PipelineInternal::PipelineCParser::parseZone(), and RagTime5LayoutInternal::LayoutCParser::parseZone().
|
inlinevirtual |
returns to new zone to parse.
-1: means no preference, 0: means first zone, ...
Reimplemented in RagTime5GraphInternal::GraphicCParser, RagTime5GraphInternal::PictCParser, RagTime5SpreadsheetInternal::SpreadsheetCParser, RagTime5GraphInternal::ButtonCParser, RagTime5ClusterManagerInternal::SoundCParser, RagTime5ClusterManagerInternal::RootCParser, RagTime5ChartInternal::ChartCParser, and RagTime5LayoutInternal::LayoutCParser.
Referenced by RagTime5ClusterManager::readCluster().
|
inlinevirtual |
return the debug name corresponding to a zone
Referenced by RagTime5ClusterManager::readCluster().
|
inlinevirtual |
return the debug name corresponding to a cluster
|
inline |
return true if N correspond to a file/script name
Referenced by RagTime5GraphInternal::ButtonCParser::parseZone().
|
privatedelete |
|
inlinevirtual |
parse a the data of a zone, n_dataId:m
Reimplemented in RagTime5GraphInternal::GraphicCParser, RagTime5GraphInternal::PictCParser, RagTime5SpreadsheetInternal::SpreadsheetCParser, RagTime5GraphInternal::ButtonCParser, RagTime5ClusterManagerInternal::StyleCParser, RagTime5ClusterManagerInternal::SoundCParser, RagTime5ClusterManagerInternal::GroupCParser, RagTime5ClusterManagerInternal::RootChildCParser, RagTime5TextInternal::TextCParser, RagTime5ClusterManagerInternal::RootCParser, RagTime5ChartInternal::ChartCParser, RagTime5LayoutInternal::LayoutCParser, RagTime5ClusterManagerInternal::ColPatCParser, and RagTime5PipelineInternal::PipelineCParser.
Referenced by RagTime5ClusterManager::readCluster().
|
inlinevirtual |
parse a zone
Reimplemented in RagTime5GraphInternal::GraphicCParser, RagTime5GraphInternal::PictCParser, RagTime5SpreadsheetInternal::SpreadsheetCParser, RagTime5GraphInternal::ButtonCParser, RagTime5ClusterManagerInternal::StyleCParser, RagTime5ClusterManagerInternal::SoundCParser, RagTime5ClusterManagerInternal::GroupCParser, RagTime5ClusterManagerInternal::RootChildCParser, RagTime5TextInternal::TextCParser, RagTime5ClusterManagerInternal::RootCParser, RagTime5ChartInternal::ChartCParser, RagTime5ClusterManagerInternal::ColPatCParser, RagTime5LayoutInternal::LayoutCParser, and RagTime5PipelineInternal::PipelineCParser.
Referenced by RagTime5ClusterManager::readCluster().
bool RagTime5ClusterManager::ClusterParser::readLinkHeader | ( | MWAWInputStreamPtr & | input, |
long | fSz, | ||
Link & | link, | ||
long(&) | values[4], | ||
std::string & | message | ||
) |
try to read a link header
Referenced by RagTime5LayoutInternal::LayoutCParser::parseZone(), and RagTime5GraphInternal::ButtonCParser::parseZone().
|
inlinevirtual |
start a new zone
Reimplemented in RagTime5LayoutInternal::LayoutCParser.
Referenced by RagTime5ClusterManager::readCluster().
int RagTime5ClusterManager::ClusterParser::m_dataId |
the actual zone id
Referenced by RagTime5TextInternal::TextCParser::endZone(), RagTime5GraphInternal::ButtonCParser::endZone(), RagTime5LayoutInternal::LayoutCParser::parseField(), RagTime5GraphInternal::ButtonCParser::parseField(), RagTime5LayoutInternal::LayoutCParser::parseHeaderZone(), RagTime5GraphInternal::ButtonCParser::parseHeaderZone(), RagTime5PipelineInternal::PipelineCParser::parseZone(), RagTime5LayoutInternal::LayoutCParser::parseZone(), RagTime5GraphInternal::ButtonCParser::parseZone(), RagTime5ClusterManager::readCluster(), and RagTime5LayoutInternal::LayoutCParser::startZone().
bool RagTime5ClusterManager::ClusterParser::m_hiLoEndian |
zone endian
Referenced by RagTime5ClusterManager::readCluster().
Link RagTime5ClusterManager::ClusterParser::m_link |
the actual link
Referenced by RagTime5LayoutInternal::LayoutCParser::endZone(), RagTime5TextInternal::TextCParser::endZone(), RagTime5GraphInternal::ButtonCParser::endZone(), RagTime5LayoutInternal::LayoutCParser::parseField(), RagTime5GraphInternal::ButtonCParser::parseField(), RagTime5PipelineInternal::PipelineCParser::parseZone(), RagTime5LayoutInternal::LayoutCParser::parseZone(), RagTime5GraphInternal::ButtonCParser::parseZone(), and RagTime5ClusterManager::readCluster().
std::string RagTime5ClusterManager::ClusterParser::m_name |
the cluster name
RagTime5ClusterManager& RagTime5ClusterManager::ClusterParser::m_parser |
the main parser
int RagTime5ClusterManager::ClusterParser::m_type |