StarBoard Orange - Example application No.1 GoogleChartLogger with StarBoard Orange

Dependencies:   EthernetNetIf mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Axis.cpp Source File

Axis.cpp

00001 /**
00002  * GoogleChart API interface driver. (Version 0.0.1)
00003  *
00004  * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems)
00005  * http://shinta.main.jp/
00006  */
00007 
00008 #include "Axis.h"
00009 
00010 Axis::Axis(int number, Type type) : number(number), type(type), rangeStart(0), rangeEnd(100) {}
00011 
00012 Axis::~Axis() {}
00013 
00014 int Axis::getNumber() const {
00015     return number;
00016 }
00017 
00018 void Axis::setType(Axis::Type type) {
00019     Axis::type = type;
00020 }
00021 
00022 Axis::Type Axis::getType() const {
00023     return type;
00024 }
00025 
00026 void Axis::setRangeStart(int rangeStart) {
00027     Axis::rangeStart = rangeStart;
00028 }
00029 
00030 int Axis::getRangeStart() const {
00031     return rangeStart;
00032 }
00033 
00034 void Axis::setRangeEnd(int rangeEnd) {
00035     Axis::rangeEnd = rangeEnd;
00036 }
00037 
00038 int Axis::getRangeEnd() const {
00039     return rangeEnd;
00040 }