33# if defined(DEBUG_WITH_FILES)
48bool dumpFile(librevenge::RVNGBinaryData
const &data,
char const *fileName);
82 bool open(std::string
const &filename);
90 m_skipZones.resize(0);
101 void skipZone(
long beginPos,
long endPos)
103 if (m_on) m_skipZones.push_back(Vec2<long>(beginPos, endPos));
114 mutable std::ofstream m_file;
128 , m_breaking(false) { }
131 NotePos(
long p, std::string
const &n,
bool br=
true)
143 bool operator<(NotePos
const &p)
const
145 long diff = m_pos-p.m_pos;
146 if (diff)
return (diff < 0) ? true :
false;
147 if (m_breaking != p.m_breaking)
return m_breaking;
148 return m_text < p.m_text;
156 bool operator()(NotePos
const &s1, NotePos
const &s2)
const
164 typedef std::map<NotePos, int,struct NotePosLt> Map;
170 std::vector<NotePos> m_notes;
172 std::vector<Vec2<long> > m_skipZones;
180inline bool dumpFile(librevenge::RVNGBinaryData
const &,
char const *)
202 return std::string(
"");
204 static void str(std::string
const &) { }
215 static bool open(std::string
const &)
Definition WPSDebug.h:208
static void reset()
Definition WPSDebug.h:224
~DebugFile()
Definition WPSDebug.h:213
static void addDelimiter(long, char)
Definition WPSDebug.h:222
DebugFile()
Definition WPSDebug.h:211
static void addPos(long)
Definition WPSDebug.h:220
DebugFile(RVNGInputStreamPtr)
Definition WPSDebug.h:210
static bool open(std::string const &)
Definition WPSDebug.h:215
static void setStream(RVNGInputStreamPtr)
Definition WPSDebug.h:212
static void addNote(char const *)
Definition WPSDebug.h:221
static void skipZone(long, long)
Definition WPSDebug.h:226
Definition WPSDebug.h:192
DebugStream & operator<<(T const &)
Definition WPSDebug.h:195
static void str(std::string const &)
Definition WPSDebug.h:204
static std::string str()
Definition WPSDebug.h:200
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition libwps_internal.h:87
Definition WPSDebug.h:179
std::string flattenFileName(std::string const &name)
Definition WPSDebug.h:185
bool dumpFile(librevenge::RVNGBinaryData const &, char const *)
Definition WPSDebug.h:180
Definition libwps_internal.cpp:39