NDEVR
API Documentation
ZipCodeLookup.h
1#pragma once
2#include "DLLInfo.h"
3#include "Design/Headers/DatasetManager.h"
4#include "Base/Headers/Vertex.hpp"
5namespace NDEVR
6{
10 class ZipCodeLookup : public Dataset
11 {
12 public:
15 virtual String name() const override
16 {
18 }
19
22 virtual bool setupModel(Model& model) override;
25 virtual Buffer<Dataset*> children() override;
29 virtual Dataset* child(const String& name) override;
32 virtual uint04 childCount() const override;
36 static GIS_DATA_API Vertex<2, fltp08> Coordinate(uint04 zip_code);
37 };
38}
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
Forward declaration of the Model class.
A core class that represents a node on model hierarchy.
Definition Model.h:292
The core String class for the NDEVR API.
Definition String.h:95
A point in N-dimensional space, used primarily for spatial location information.
Definition Vertex.hpp:44
Provides lookup of US zip codes and their geographic coordinates as a dataset.
static Vertex< 2, fltp08 > Coordinate(uint04 zip_code)
Returns the geographic coordinate (latitude, longitude) for a US zip code.
virtual uint04 childCount() const override
Returns the number of child datasets.
virtual bool setupModel(Model &model) override
Sets up a model with zip code data.
virtual Buffer< Dataset * > children() override
Returns the list of child datasets.
virtual String name() const override
Returns the dataset name identifier.
virtual Dataset * child(const String &name) override
Returns the child dataset matching the given name.
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
constexpr StringView ZIP_CODE_DATASET
Dataset name constant for US zip code data.