41 # if defined(DEBUG_WITH_FILES) 55 bool dumpFile(librevenge::RVNGBinaryData &data,
char const *fileName);
61 typedef std::stringstream DebugStream;
89 bool open(std::string
const &filename);
98 m_skipZones.resize(0);
106 void addNote(
char const *note);
111 void skipZone(
long beginPos,
long endPos)
121 mutable std::string m_fileName;
123 mutable std::ofstream m_file;
136 , m_breaking(false) { }
139 NotePos(
long p, std::string
const &n,
bool br=
true)
151 bool operator<(NotePos
const &p)
const 153 long diff = m_pos-p.m_pos;
154 if (diff)
return (diff < 0) ? true :
false;
155 if (m_breaking != p.m_breaking)
return m_breaking;
156 return m_text < p.m_text;
163 bool operator()(NotePos
const &s1, NotePos
const &s2)
const 173 std::vector<NotePos> m_notes;
175 std::vector<STOFFVec2<long> > m_skipZones;
183 inline bool dumpFile(librevenge::RVNGBinaryData &,
char const *)
205 return std::string(
"");
207 static void str(std::string
const &) { }
218 static bool open(std::string
const &)
static void addDelimiter(long, char)
Definition: STOFFDebug.hxx:225
static void write()
Definition: STOFFDebug.hxx:227
Definition: STOFFDebug.hxx:210
small class which defines a vector with 2 elements
Definition: libstaroffice_internal.hxx:584
static void addPos(long)
Definition: STOFFDebug.hxx:223
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:485
DebugFile()
Definition: STOFFDebug.hxx:214
bool dumpFile(librevenge::RVNGBinaryData &, char const *)
Definition: STOFFDebug.hxx:183
static void reset()
Definition: STOFFDebug.hxx:228
DebugStream & operator<<(T const &)
Definition: STOFFDebug.hxx:198
~DebugFile()
Definition: STOFFDebug.hxx:216
std::string flattenFileName(std::string const &name)
returns a file name from an ole/... name
Definition: STOFFDebug.hxx:188
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libstaroffice_internal.cxx:50
DebugFile(STOFFInputStreamPtr)
Definition: STOFFDebug.hxx:213
static void str(std::string const &)
Definition: STOFFDebug.hxx:207
static std::string str()
Definition: STOFFDebug.hxx:203
static void skipZone(long, long)
Definition: STOFFDebug.hxx:230
static void setStream(STOFFInputStreamPtr)
Definition: STOFFDebug.hxx:215
Definition: STOFFDebug.hxx:194
static void addNote(char const *)
Definition: STOFFDebug.hxx:224
static bool open(std::string const &)
Definition: STOFFDebug.hxx:218