34 #ifndef RAG_TIME_5_STRUCT_MANAGER
35 # define RAG_TIME_5_STRUCT_MANAGER
58 for (
int i=0; i<2; ++i)
m_kinds[i]=
"";
68 std::string res(
m_kinds[main ? 0 : 1]);
69 std::string::size_type pos = res.find_last_of(
':');
70 if (pos == std::string::npos)
return res;
71 return res.substr(pos+1);
169 Field &field,
long fSz=0);
203 o <<
":#type=" << tab.
m_type;
276 MWAW_DEBUG_MSG((
"RagTime5StructManager::ZoneLink::getSubZoneId: called with bad value=%d\n", i));
friend std::ostream & operator<<(std::ostream &o, ZoneLink const &link)
operator<<
Definition: RagTime5StructManager.hxx:282
a tabulation in RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:178
Definition: RagTime5StructManager.hxx:221
std::string m_asciiName
the ascii file name ( used if we need to create a ascii file)
Definition: RagTime5StructManager.hxx:143
libmwaw::DebugFile & ascii()
returns the current ascii file
Definition: RagTime5StructManager.hxx:93
Definition: RagTime5StructManager.hxx:220
virtual bool parseField(Field &field, RagTime5Zone &zone, int n, libmwaw::DebugStream &f)
parse a field
Definition: RagTime5StructManager.cxx:1454
Definition: RagTime5StructManager.hxx:220
FieldParser(std::string const &zoneName)
constructor
Definition: RagTime5StructManager.hxx:310
long m_fileType
the file type
Definition: RagTime5StructManager.hxx:239
Definition: RagTime5StructManager.hxx:220
std::string m_name
the field name
Definition: RagTime5StructManager.hxx:371
virtual std::string getZoneName() const
return the debug name corresponding to a zone
Definition: RagTime5StructManager.hxx:314
virtual ~FieldParser()
destructor
Definition: RagTime5StructManager.hxx:312
std::string getKindLastPart(bool main=true) const
returns the main type
Definition: RagTime5StructManager.hxx:66
TabStop()
constructor
Definition: RagTime5StructManager.hxx:180
virtual std::string getZoneName(int n) const
return the debug name corresponding to a field
Definition: RagTime5StructManager.hxx:358
bool readTypeDefinitions(RagTime5Zone &zone)
try to read a list of type definition
Definition: RagTime5StructManager.cxx:75
bool isMainInput() const
returns true if the input correspond to the basic file
Definition: RagTime5StructManager.hxx:88
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
long m_longValue[2]
the long value
Definition: RagTime5StructManager.hxx:243
~RagTime5StructManager()
destructor
Definition: RagTime5StructManager.cxx:52
Definition: RagTime5StructManager.hxx:220
int m_idsFlag[3]
the zone flag
Definition: RagTime5StructManager.hxx:126
int m_variableD[2]
the content of the zone D if it exists
Definition: RagTime5StructManager.hxx:132
double m_doubleValue
the double value
Definition: RagTime5StructManager.hxx:245
libmwaw::DebugFile * m_asciiFile
the ascii file corresponding to an input
Definition: RagTime5StructManager.hxx:145
void addErrorInDebugFile(std::string const &zoneName)
mark a zone as bad
Definition: RagTime5StructManager.cxx:1624
~Field()
destructor
Definition: RagTime5StructManager.hxx:231
uint16_t m_leaderChar
the unicode leader char
Definition: RagTime5StructManager.hxx:215
virtual class use to parse the field data
Definition: RagTime5StructManager.hxx:308
shared_ptr< libmwaw::DebugFile > m_localAsciiFile
the local ascii file ( if we need to create a new input)
Definition: RagTime5StructManager.hxx:149
main zone in a RagTime v5-v6 document
Definition: RagTime5StructManager.hxx:48
the class to store a color
Definition: libmwaw_internal.hxx:176
virtual ~RagTime5Zone()
destructor
Definition: RagTime5StructManager.hxx:62
int m_type
the type
Definition: RagTime5StructManager.hxx:213
int getSubZoneId(int i) const
returns the sub zone id
Definition: RagTime5StructManager.hxx:273
Definition: RagTime5StructManager.hxx:221
int m_level
the zone level
Definition: RagTime5StructManager.hxx:110
std::vector< double > m_doubleList
the list of double value
Definition: RagTime5StructManager.hxx:253
virtual std::string getZoneName() const
return the debug name corresponding to a zone
Definition: RagTime5StructManager.hxx:353
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:126
virtual class use to parse the unstructured data
Definition: RagTime5StructManager.hxx:347
Type m_type
the field type
Definition: RagTime5StructManager.hxx:237
std::vector< long > m_valuesList
list of potential values
Definition: RagTime5StructManager.hxx:303
friend std::ostream & operator<<(std::ostream &o, RagTime5Zone const &z)
operator<<
Definition: RagTime5StructManager.cxx:1641
a zone link in RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:266
static bool readDataIdList(MWAWInputStreamPtr input, int n, std::vector< int > &listIds)
try to read n data id
Definition: RagTime5StructManager.cxx:261
bool readField(MWAWInputStreamPtr input, long endPos, libmwaw::DebugFile &ascFile, Field &field, long fSz=0)
try to read a field
Definition: RagTime5StructManager.cxx:282
int m_dataId
the data id (or 0)
Definition: RagTime5StructManager.hxx:299
Definition: RagTime5StructManager.hxx:220
Definition: RagTime5StructManager.hxx:221
bool m_isParsed
a flag to know if the zone is parsed
Definition: RagTime5StructManager.hxx:134
long m_defPosition
the position of the definition in the main zones
Definition: RagTime5StructManager.hxx:114
static bool readUnicodeString(MWAWInputStreamPtr input, long endPos, librevenge::RVNGString &string)
try to read a unicode string
Definition: RagTime5StructManager.cxx:232
Definition: RagTime5StructManager.hxx:221
FieldParser & operator=(FieldParser const &orig)
void setAsciiFileName(std::string const &name)
defines the ascii name
Definition: RagTime5StructManager.hxx:100
Definition: RagTime5StructManager.hxx:221
std::string m_kinds[2]
the zone types: normal and packing
Definition: RagTime5StructManager.hxx:116
libmwaw::DebugFile * m_mainAsciiFile
the main ascii file (used to print error)
Definition: RagTime5StructManager.hxx:147
RagTime5StructManager operator=(RagTime5StructManager const &orig)
std::string m_name
the field type name
Definition: RagTime5StructManager.hxx:241
RagTime5Zone(MWAWInputStreamPtr input, libmwaw::DebugFile &asc)
constructor
Definition: RagTime5StructManager.hxx:52
a field of RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:218
virtual std::string getZoneName(int n) const
return the debug name corresponding to a field
Definition: RagTime5StructManager.hxx:319
std::vector< long > m_longList
the list of long value
Definition: RagTime5StructManager.hxx:251
bool m_regroupFields
a flag use to decide if we output one debug message by field or not
Definition: RagTime5StructManager.hxx:338
void createAsciiFile()
creates the ascii file
Definition: RagTime5StructManager.cxx:1590
std::string getZoneName() const
returns the zone name
Definition: RagTime5StructManager.cxx:1604
Definition: RagTime5StructManager.hxx:220
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:489
std::vector< MWAWEntry > m_entriesList
the list of original entries
Definition: RagTime5StructManager.hxx:128
Field()
constructor
Definition: RagTime5StructManager.hxx:225
MWAWEntry m_entry
the zone entry
Definition: RagTime5StructManager.hxx:118
Definition: RagTime5StructManager.hxx:220
int m_clusterId
the id of the zone corresponding to this property (always a clust graph ?)
Definition: RagTime5StructManager.hxx:387
std::string m_name
the field name
Definition: RagTime5StructManager.hxx:341
std::vector< TabStop > m_tabList
the list of tabStop
Definition: RagTime5StructManager.hxx:257
std::string m_name
the zone name ( mainly used for debugging)
Definition: RagTime5StructManager.hxx:120
Definition: RagTime5StructManager.hxx:220
std::map< int, shared_ptr< RagTime5Zone > > m_childIdToZoneMap
the child zones
Definition: RagTime5StructManager.hxx:130
MWAWColor m_color
the color
Definition: RagTime5StructManager.hxx:247
Definition: RagTime5StructManager.hxx:221
void setInput(MWAWInputStreamPtr input)
reset the current input
Definition: RagTime5StructManager.hxx:82
long m_subZoneId[2]
the sub id zones
Definition: RagTime5StructManager.hxx:301
Definition: RagTime5StructManager.hxx:221
std::string m_extra
extra data
Definition: RagTime5StructManager.hxx:263
GObjPropFieldParser(std::string const &name)
constructor
Definition: RagTime5StructManager.hxx:380
float m_position
the position
Definition: RagTime5StructManager.hxx:211
int m_numLongByData
the number of long by data (in m_longList)
Definition: RagTime5StructManager.hxx:255
virtual bool parseHeaderField(Field &field, RagTime5Zone &, int, libmwaw::DebugStream &f)
parse a header field
Definition: RagTime5StructManager.hxx:326
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
Definition: RagTime5StructManager.hxx:221
Type
the different type
Definition: RagTime5StructManager.hxx:220
DataParser(std::string const &zoneName)
constructor
Definition: RagTime5StructManager.hxx:349
virtual ~DataParser()
destructor
Definition: RagTime5StructManager.hxx:351
std::string m_parentName
the parent name
Definition: RagTime5StructManager.hxx:112
RagTime5StructManager()
constructor
Definition: RagTime5StructManager.cxx:48
RagTime5Zone & operator=(RagTime5Zone const &orig)
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
basic class used to store RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:156
friend std::ostream & operator<<(std::ostream &o, TabStop const &tab)
operator<<
Definition: RagTime5StructManager.hxx:184
bool m_hiLoEndian
true if the endian is hilo
Definition: RagTime5StructManager.hxx:122
bool m_defaultInput
a flag used to know if the input is or not the default input
Definition: RagTime5StructManager.hxx:141
int m_ids[3]
the zone id
Definition: RagTime5StructManager.hxx:124
std::string m_extra
extra data
Definition: RagTime5StructManager.hxx:305
DataParser & operator=(DataParser const &orig)
ZoneLink()
constructor
Definition: RagTime5StructManager.hxx:268
std::vector< Field > m_fieldList
the list of field
Definition: RagTime5StructManager.hxx:259
virtual bool parseField(Field &field, RagTime5Zone &, int, libmwaw::DebugStream &f)
parse a field
Definition: RagTime5StructManager.hxx:332
Definition: RagTime5StructManager.hxx:220
MWAWInputStreamPtr m_input
the main input
Definition: RagTime5StructManager.hxx:139
MWAWEntry m_entry
entry to defined the position of a String or Unstructured data
Definition: RagTime5StructManager.hxx:261
friend std::ostream & operator<<(std::ostream &o, Field const &field)
operator<<
Definition: RagTime5StructManager.cxx:1340
basic parser to read image/main graphic position properties
Definition: RagTime5StructManager.hxx:378
MWAWInputStreamPtr getInput()
returns the current input
Definition: RagTime5StructManager.hxx:77
std::string m_extra
extra data
Definition: RagTime5StructManager.hxx:136
Definition: RagTime5StructManager.hxx:221
virtual bool parseData(MWAWInputStreamPtr &, long, RagTime5Zone &, int, libmwaw::DebugStream &)
parse a data
Definition: RagTime5StructManager.hxx:365
static bool readCompressedLong(MWAWInputStreamPtr &input, long endPos, long &val)
try to read a compressed long
Definition: RagTime5StructManager.cxx:59
librevenge::RVNGString m_string
small string use to store a string or a 4 char code
Definition: RagTime5StructManager.hxx:249