Add ol.format.IReader

This commit is contained in:
Tom Payne
2013-11-09 00:01:53 +01:00
parent 80fa2dd0ef
commit 2d7c26e3e5

34
src/ol/format/iformat.js Normal file
View File

@@ -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) {
};