Sha256: 2790dbb297c3105fa107466add730d7a134bb3e088636ccc5409eaa0c1628659

Contents?: true

Size: 719 Bytes

Versions: 6

Compression:

Stored size: 719 Bytes

Contents

#ifndef SVG_ATTRIBUTE_PARSER_H
#define SVG_ATTRIBUTE_PARSER_H

#include <string>
#include <map>
#include <iostream>
#include <libxml/tree.h>
#include "Parser.h"



namespace SWF {

class AttributeParser : public Parser {
	public:
		AttributeParser() :
			Parser(':', ';') {
		}

		void parseNode(xmlNodePtr node);
		std::map<std::string, std::string>& getAttributes();

		double getDouble(const char* attribute, double defaultValue = 0,
				double value100 = 1);
		const char* getString(const char* attribute);
		const char* operator[](const char* attribute);

	private:
		std::map<std::string, std::string> attributes;
		void handleData(const std::string& attrib, const std::vector<std::string>& value);
};

}

#endif

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
swfmill-0.0.6 ext/swfmill/src/swft/SVGAttributeParser.h
swfmill-0.0.5 ext/swfmill/src/swft/SVGAttributeParser.h
swfmill-0.0.4 ext/swfmill/src/swft/SVGAttributeParser.h
swfmill-0.0.3 ext/swfmill/src/swft/SVGAttributeParser.h
swfmill-0.0.2 ext/swfmill/src/swft/SVGAttributeParser.h
swfmill-0.0.1 ext/swfmill/src/swft/SVGAttributeParser.h