104 lines
2.7 KiB
HTML
104 lines
2.7 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>JSDoc: Source: gpxMetaData.js</title>
|
||
|
|
||
|
<script src="scripts/prettify/prettify.js"> </script>
|
||
|
<script src="scripts/prettify/lang-css.js"> </script>
|
||
|
<!--[if lt IE 9]>
|
||
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||
|
<![endif]-->
|
||
|
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
|
||
|
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
|
||
|
<div id="main">
|
||
|
|
||
|
<h1 class="page-title">Source: gpxMetaData.js</h1>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<section>
|
||
|
<article>
|
||
|
<pre class="prettyprint source"><code>/**
|
||
|
* Contructor for the gpx metadata class
|
||
|
* @class
|
||
|
* @classdesc Stores all the metadata associated with the gpx file.
|
||
|
* @param {string} creator The creator of the gpx file.
|
||
|
* @param {string} time The string representation of the datetime from the file.
|
||
|
*/
|
||
|
function GpxMetaData(creator, time, bounds, name, desc, author, copyright, links, keywords) {
|
||
|
|
||
|
creator = creator || null;
|
||
|
time = new Date(time) || null;
|
||
|
bounds = bounds || null;
|
||
|
name = name || "";
|
||
|
desc = desc || "";
|
||
|
|
||
|
this.__defineGetter__("creator", function() {
|
||
|
return creator;
|
||
|
});
|
||
|
|
||
|
this.__defineGetter__("time", function() {
|
||
|
return time;
|
||
|
});
|
||
|
|
||
|
this.__defineGetter__("bounds", function() {
|
||
|
return bounds;
|
||
|
});
|
||
|
|
||
|
this.__defineGetter__("name", function() {
|
||
|
return name;
|
||
|
});
|
||
|
|
||
|
this.__defineGetter__("description", function() {
|
||
|
return desc;
|
||
|
});
|
||
|
|
||
|
this.__defineGetter__("author", function() {
|
||
|
return author;
|
||
|
});
|
||
|
|
||
|
this.__defineGetter__("copyright", function() {
|
||
|
return copyright;
|
||
|
});
|
||
|
|
||
|
this.__defineGetter__("links", function() {
|
||
|
return links;
|
||
|
});
|
||
|
|
||
|
this.__defineGetter__("keywords", function() {
|
||
|
return keywords;
|
||
|
});
|
||
|
}
|
||
|
|
||
|
module.exports = GpxMetaData;
|
||
|
</code></pre>
|
||
|
</article>
|
||
|
</section>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<nav>
|
||
|
<h2><a href="index.html">Index</a></h2><h3>Modules</h3><ul><li><a href="module-geomutils.html">geomutils</a></li><li><a href="module-gpx-parse.html">gpx-parse</a></li></ul><h3>Classes</h3><ul><li><a href="GpxExtent.html">GpxExtent</a></li><li><a href="GpxMetaData.html">GpxMetaData</a></li><li><a href="GpxResult.html">GpxResult</a></li><li><a href="GpxRoute.html">GpxRoute</a></li><li><a href="GpxTrack.html">GpxTrack</a></li><li><a href="GpxWaypoint.html">GpxWaypoint</a></li></ul><h3><a href="global.html">Global</a></h3>
|
||
|
</nav>
|
||
|
|
||
|
<br clear="both">
|
||
|
|
||
|
<footer>
|
||
|
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Wed Aug 13 2014 09:19:33 GMT+0100 (BST)
|
||
|
</footer>
|
||
|
|
||
|
<script> prettyPrint(); </script>
|
||
|
<script src="scripts/linenumber.js"> </script>
|
||
|
</body>
|
||
|
</html>
|