RagTime5ClusterManager::ClusterParser Struct Reference

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

#include <RagTime5ClusterManager.hxx>

Inheritance diagram for RagTime5ClusterManager::ClusterParser:
RagTime5ClusterManagerInternal::ColPatCParser RagTime5ClusterManagerInternal::LayoutCParser RagTime5ClusterManagerInternal::PipelineCParser RagTime5ClusterManagerInternal::RootChildCParser RagTime5ClusterManagerInternal::RootCParser RagTime5ClusterManagerInternal::ScriptCParser RagTime5ClusterManagerInternal::StyleCParser RagTime5ClusterManagerInternal::UnknownCParser RagTime5GraphInternal::GraphicCParser RagTime5GraphInternal::PictCParser RagTime5SpreadsheetInternal::ChartCParser RagTime5SpreadsheetInternal::SpreadsheetCParser RagTime5TextInternal::TextCParser

List of all members.

Public Member Functions

 ClusterParser (RagTime5ClusterManager &parser, int type, std::string const &zoneName)
 constructor
virtual ~ClusterParser ()
 destructor
virtual shared_ptr< ClustergetCluster ()=0
 return the current cluster
virtual std::string getZoneName () const
 return the debug name corresponding to a zone
virtual std::string getZoneName (int n, int m=-1) const
 return the debug name corresponding to a cluster
virtual void startZone ()
 start a new zone
virtual bool parseZone (MWAWInputStreamPtr &, long, int, int, libmwaw::DebugStream &)
 parse a zone
virtual void endZone ()
 end of a start zone call
virtual bool parseField (RagTime5StructManager::Field const &, int, libmwaw::DebugStream &)
 parse a n_dataId:m
bool isANameHeader (long N) const
 return true if N correspond to a file/script name
bool readLinkHeader (MWAWInputStreamPtr &input, long fSz, Link &link, long(&values)[4], std::string &message)
 try to read a link header
std::string getClusterName (int id)
 returns "data"+id+"A" ( followed by the cluster type and name if know)

Public Attributes

RagTime5ClusterManagerm_parser
 the main parser
int m_type
 the cluster type
bool m_hiLoEndian
 zone endian
std::string m_name
 the cluster name
int m_dataId
 the actual zone id
Link m_link
 the actual link

Private Member Functions

 ClusterParser (ClusterParser const &orig)
ClusterParseroperator= (ClusterParser const &orig)

Detailed Description

virtual class use to parse the cluster data


Constructor & Destructor Documentation

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

constructor

destructor


Member Function Documentation

returns "data"+id+"A" ( followed by the cluster type and name if know)

virtual std::string RagTime5ClusterManager::ClusterParser::getZoneName ( ) const [inline, virtual]

return the debug name corresponding to a zone

Referenced by RagTime5ClusterManager::readCluster().

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

return the debug name corresponding to a cluster

return true if N correspond to a file/script name

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

try to read a link header


Member Data Documentation

the cluster name

Referenced by getZoneName().


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