From 2d7c26e3e54b77be9b68c5b7032e729177d90f6d Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Sat, 9 Nov 2013 00:01:53 +0100 Subject: [PATCH] Add ol.format.IReader --- src/ol/format/iformat.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/ol/format/iformat.js diff --git a/src/ol/format/iformat.js b/src/ol/format/iformat.js new file mode 100644 index 0000000000..3ee5601845 --- /dev/null +++ b/src/ol/format/iformat.js @@ -0,0 +1,34 @@ +// FIXME add XML +// FIXME add IWriter + +goog.provide('ol.format.IReader'); + + + +/** + * @interface + */ +ol.format.IReader = function() { +}; + + +/** + * @param {Object} object Object. + * @param {function(this: S, ol.Feature): T} callback Callback. + * @param {S=} opt_obj Scope. + * @return {T|undefined} Callback result. + * @template S,T + */ +ol.format.IReader.prototype.readObject = function(object, callback, opt_obj) { +}; + + +/** + * @param {string} string String. + * @param {function(this: S, ol.Feature): T} callback Callback. + * @param {S=} opt_obj Scope. + * @return {T|undefined} Callback result. + * @template S,T + */ +ol.format.IReader.prototype.readString = function(string, callback, opt_obj) { +};