RagTime5ClusterManager::ClusterParser Struct Referenceabstract

virtual class use to parse the cluster data More...

#include <RagTime5ClusterManager.hxx>

Inheritance diagram for RagTime5ClusterManager::ClusterParser:
RagTime5ChartInternal::ChartCParser RagTime5ClusterManagerInternal::ColPatCParser RagTime5ClusterManagerInternal::GroupCParser RagTime5ClusterManagerInternal::RootChildCParser RagTime5ClusterManagerInternal::RootCParser RagTime5ClusterManagerInternal::SoundCParser RagTime5ClusterManagerInternal::StyleCParser RagTime5ClusterManagerInternal::UnknownCParser RagTime5GraphInternal::ButtonCParser RagTime5GraphInternal::GraphicCParser RagTime5GraphInternal::PictCParser RagTime5LayoutInternal::LayoutCParser RagTime5PipelineInternal::PipelineCParser RagTime5SpreadsheetInternal::SpreadsheetCParser RagTime5TextInternal::TextCParser

Public Member Functions

 ClusterParser (RagTime5ClusterManager &parser, int type, std::string const &zoneName)
 constructor More...
 
virtual ~ClusterParser ()
 destructor More...
 
virtual std::shared_ptr< ClustergetCluster ()=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

RagTime5ClusterManagerm_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
 
ClusterParseroperator= (ClusterParser const &orig)=delete
 

Detailed Description

virtual class use to parse the cluster data

Constructor & Destructor Documentation

◆ ClusterParser() [1/2]

RagTime5ClusterManager::ClusterParser::ClusterParser ( RagTime5ClusterManager parser,
int  type,
std::string const &  zoneName 
)
inline

constructor

◆ ~ClusterParser()

RagTime5ClusterManager::ClusterParser::~ClusterParser ( )
virtual

destructor

◆ ClusterParser() [2/2]

RagTime5ClusterManager::ClusterParser::ClusterParser ( ClusterParser const &  orig)
explicitprivatedelete

Member Function Documentation

◆ endZone()

◆ getCluster()

◆ getClusterDebugName()

std::string RagTime5ClusterManager::ClusterParser::getClusterDebugName ( int  id)

◆ getNewZoneToParse()

◆ getZoneName() [1/2]

virtual std::string RagTime5ClusterManager::ClusterParser::getZoneName ( ) const
inlinevirtual

return the debug name corresponding to a zone

Referenced by RagTime5ClusterManager::readCluster().

◆ getZoneName() [2/2]

virtual std::string RagTime5ClusterManager::ClusterParser::getZoneName ( int  n,
int  m = -1 
) const
inlinevirtual

return the debug name corresponding to a cluster

◆ isANameHeader()

bool RagTime5ClusterManager::ClusterParser::isANameHeader ( long  N) const
inline

return true if N correspond to a file/script name

Referenced by RagTime5GraphInternal::ButtonCParser::parseZone().

◆ operator=()

ClusterParser& RagTime5ClusterManager::ClusterParser::operator= ( ClusterParser const &  orig)
privatedelete

◆ parseField()

◆ parseZone()

◆ readLinkHeader()

bool RagTime5ClusterManager::ClusterParser::readLinkHeader ( MWAWInputStreamPtr input,
long  fSz,
Link link,
long(&)  values[4],
std::string &  message 
)

◆ startZone()

virtual void RagTime5ClusterManager::ClusterParser::startZone ( )
inlinevirtual

start a new zone

Reimplemented in RagTime5LayoutInternal::LayoutCParser.

Referenced by RagTime5ClusterManager::readCluster().

Member Data Documentation

◆ m_dataId

◆ m_hiLoEndian

bool RagTime5ClusterManager::ClusterParser::m_hiLoEndian

zone endian

Referenced by RagTime5ClusterManager::readCluster().

◆ m_link

◆ m_name

std::string RagTime5ClusterManager::ClusterParser::m_name

the cluster name

◆ m_parser

RagTime5ClusterManager& RagTime5ClusterManager::ClusterParser::m_parser

the main parser

◆ m_type


The documentation for this struct was generated from the following files:

Generated on Fri Sep 18 2020 18:14:52 for libmwaw by doxygen 1.8.20