libvisio_utils.h File Reference
`#include <memory>`
`#include "VSDTypes.h"`
`#include <librevenge/librevenge.h>`
`#include <librevenge-stream/librevenge-stream.h>`
`#include <unicode/utypes.h>`

Go to the source code of this file.

## Classes

struct | libvisio::VSDDummyDeleter
class | libvisio::EndOfStreamException
class | libvisio::XmlParserException
class | libvisio::GenericException

## Namespaces

namespace | libvisio

## Macros

#define | VSD_EPSILON 1E-6
#define | VSD_ALMOST_ZERO(m)
#define | VSD_APPROX_EQUAL(x, y)
#define | VSD_ATTRIBUTE_PRINTF(fmt, arg)
#define | VSD_DEBUG_MSG(M)
#define | VSD_DEBUG(M)
#define | VSD_NUM_ELEMENTS(array)

## Typedefs

typedef std::shared_ptr< librevenge::RVNGInputStream > | libvisio::RVNGInputStreamPtr_t

## Functions

template<typename T>
std::unique_ptr< T > | libvisio::clone (const std::unique_ptr< T > &other)
uint8_t | libvisio::readU8 (librevenge::RVNGInputStream *input)
uint16_t | libvisio::readU16 (librevenge::RVNGInputStream *input)
int16_t | libvisio::readS16 (librevenge::RVNGInputStream *input)
uint32_t | libvisio::readU32 (librevenge::RVNGInputStream *input)
int32_t | libvisio::readS32 (librevenge::RVNGInputStream *input)
uint64_t | libvisio::readU64 (librevenge::RVNGInputStream *input)
double | libvisio::readDouble (librevenge::RVNGInputStream *input)
const librevenge::RVNGString | libvisio::getColourString (const Colour &c)
unsigned long | libvisio::getRemainingLength (librevenge::RVNGInputStream *input)
void | libvisio::appendUCS4 (librevenge::RVNGString &text, UChar32 ucs4Character)
void | libvisio::debugPrint (const char *format,...) VSD_ATTRIBUTE_PRINTF(1

## Macro Definition Documentation

## VSD_ALMOST_ZERO

#define VSD_ALMOST_ZERO | ( |  | m | ) |

Value:
(fabs(m) <= VSD_EPSILON)
VSD_EPSILON
#define VSD_EPSILON
Definition libvisio_utils.h:21

Referenced by libvisio::VSDContentCollector::_convertToPath(), libvisio::VSDContentCollector::_flushCurrentPath(), libvisio::VSDContentCollector::collectNURBSTo(), and libvisio::VSDParser::readPageProps().

## VSD_APPROX_EQUAL

#define VSD_APPROX_EQUAL | ( |  | x,
|  |  | y )

Value:
VSD_ALMOST_ZERO((x) - (y))
VSD_ALMOST_ZERO
#define VSD_ALMOST_ZERO(m)
Definition libvisio_utils.h:22

Referenced by libvisio::VSDContentCollector::_generateBezierSegmentsFromNURBS(), and libvisio::VSDContentCollector::collectInfiniteLine().

## VSD_ATTRIBUTE_PRINTF

#define VSD_ATTRIBUTE_PRINTF | ( |  | fmt,
|  |  | arg )

## VSD_DEBUG

#define VSD_DEBUG | ( |  | M | ) |

## VSD_DEBUG_MSG

#define VSD_DEBUG_MSG | ( |  | M | ) |

Referenced by libvisio::VSDContentCollector::collectEllipticalArcTo(), libvisio::VSDContentCollector::collectGeometry(), convertNumber(), libvisio::VSDXParser::extractBinaryData(), libvisio::VSDParser::handleBlob(), libvisio::VSDParser::handleChunks(), libvisio::VSDParser::handleStream(), libvisio::VSDParser::handleStreams(), libvisio::VSDXTheme::parse(), libvisio::VSDXParser::parseDocument(), libvisio::VSDParser::parseMain(), libvisio::VDXParser::processXmlNode(), libvisio::VSDXParser::processXmlNode(), libvisio::VSDXMLParserBase::readArcTo(), libvisio::VSDXMLParserBase::readBoolData(), libvisio::VSDXMLParserBase::readBoolData(), libvisio::VSDXParser::readCharacter(), libvisio::VSD5Parser::readCharIX(), libvisio::VSD6Parser::readCharIX(), libvisio::VSDParser::readCharIX(), libvisio::VSDXMLParserBase::readCharIX(), libvisio::VSD5Parser::readCharList(), libvisio::VSDXTheme::readClrScheme(), libvisio::VSDXMLParserBase::readColourOrColourIndex(), libvisio::VSDXMLParserBase::readColours(), libvisio::VSDXMetaData::readCoreProperties(), libvisio::VSDXMLParserBase::readDoubleData(), libvisio::VSDXMLParserBase::readDoubleData(), libvisio::VSDXMLParserBase::readEllipse(), libvisio::VSDXMLParserBase::readEllipticalArcTo(), libvisio::VSDXMLParserBase::readExtendedColourData(), libvisio::VSD5Parser::readFieldList(), libvisio::VDXParser::readFillAndShadow(), libvisio::VSD5Parser::readFillAndShadow(), libvisio::VSD6Parser::readFillAndShadow(), libvisio::VSDParser::readFillAndShadow(), libvisio::VSDXTheme::readFillStyleLst(), libvisio::VSDXTheme::readFmtScheme(), libvisio::VSDXTheme::readFont(), libvisio::VDXParser::readFonts(), libvisio::VSDXParser::readFonts(), libvisio::VSDXTheme::readFontScheme(), libvisio::VSDXMLParserBase::readForeignData(), libvisio::VDXParser::readForeignInfo(), libvisio::VSD5Parser::readGeomList(), libvisio::VSDXTheme::readGradFill(), libvisio::VSDXTheme::readGradFillLst(), libvisio::VSDXMLParserBase::readInfiniteLine(), libvisio::VSDXParser::readLayer(), libvisio::VSDXMLParserBase::readLayerIX(), libvisio::VDXParser::readLayerMem(), libvisio::VDXParser::readLine(), libvisio::VSDXMLParserBase::readLineTo(), libvisio::VSDXMLParserBase::readLongData(), libvisio::VSDXMLParserBase::readLongData(), libvisio::VDXParser::readMisc(), libvisio::VSDXMLParserBase::readMoveTo(), libvisio::VSD5Parser::readNameIDX(), libvisio::VSDParser::readNameIDX(), libvisio::VSD5Parser::readNameList2(), libvisio::VSDXMLParserBase::readNURBSTo(), libvisio::VDXParser::readPageProps(), libvisio::VSDXParser::readPageSheetProperties(), libvisio::VSDXParser::readParagraph(), libvisio::VSD5Parser::readParaIX(), libvisio::VSD6Parser::readParaIX(), libvisio::VSDParser::readParaIX(), libvisio::VSDXMLParserBase::readParaIX(), libvisio::VSD5Parser::readParaList(), libvisio::VSD5Parser::readPointerInfo(), libvisio::VSDParser::readPointerInfo(), libvisio::VSDXMLParserBase::readPolylineTo(), libvisio::VSD5Parser::readPropList(), libvisio::VSDXMLParserBase::readRelCubBezTo(), libvisio::VSDXMLParserBase::readRelEllipticalArcTo(), libvisio::VSDXMLParserBase::readRelLineTo(), libvisio::VSDXMLParserBase::readRelMoveTo(), libvisio::VSDXMLParserBase::readRelQuadBezTo(), libvisio::VSDXTheme::readSchemeClr(), libvisio::VSD5Parser::readShapeList(), libvisio::VSDXParser::readShapeProperties(), libvisio::VSDXMLParserBase::readSplineKnot(), libvisio::VSDXMLParserBase::readSplineStart(), libvisio::VDXParser::readStringData(), libvisio::VSDXMLParserBase::readStringData(), libvisio::VSDXParser::readStringData(), libvisio::VSDXParser::readStyleProperties(), libvisio::VDXParser::readTab(), libvisio::VSDXParser::readTabRow(), libvisio::VDXParser::readTabs(), libvisio::VSDXParser::readTabs(), libvisio::VSD5Parser::readTabsDataList(), libvisio::VSD6Parser::readText(), libvisio::VSDParser::readText(), libvisio::VSDXMLParserBase::readText(), libvisio::VSDXTheme::readThemeColour(), libvisio::VDXParser::readTxtXForm(), libvisio::readU16(), libvisio::readU32(), libvisio::readU64(), libvisio::readU8(), libvisio::VSDXTheme::readVariationClrScheme(), libvisio::VSDXTheme::readVariationClrSchemeLst(), libvisio::VSDXTheme::readVariationStyleScheme(), libvisio::VSDXTheme::readVariationStyleSchemeLst(), libvisio::VDXParser::readXForm1D(), libvisio::VDXParser::readXFormData(), libvisio::VSDXTheme::skipUnimplemented(), libvisio::xmlStringToBool(), libvisio::xmlStringToColour(), and libvisio::xmlStringToLong().

## VSD_EPSILON

#define VSD_EPSILON 1E-6

Referenced by libvisio::VSDContentCollector::collectNURBSTo().

## VSD_NUM_ELEMENTS

#define VSD_NUM_ELEMENTS | ( |  | array | ) |

Value:
(sizeof(array)/sizeof((array)[0]))