StarBoard Orange - Example application No.1 GoogleChartLogger with StarBoard Orange
Dependencies: EthernetNetIf mbed
Diff: GoogleChart/Axis.cpp
- Revision:
- 0:77d8b45a8f42
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GoogleChart/Axis.cpp Wed Aug 11 01:53:35 2010 +0000 @@ -0,0 +1,40 @@ +/** + * GoogleChart API interface driver. (Version 0.0.1) + * + * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems) + * http://shinta.main.jp/ + */ + +#include "Axis.h" + +Axis::Axis(int number, Type type) : number(number), type(type), rangeStart(0), rangeEnd(100) {} + +Axis::~Axis() {} + +int Axis::getNumber() const { + return number; +} + +void Axis::setType(Axis::Type type) { + Axis::type = type; +} + +Axis::Type Axis::getType() const { + return type; +} + +void Axis::setRangeStart(int rangeStart) { + Axis::rangeStart = rangeStart; +} + +int Axis::getRangeStart() const { + return rangeStart; +} + +void Axis::setRangeEnd(int rangeEnd) { + Axis::rangeEnd = rangeEnd; +} + +int Axis::getRangeEnd() const { + return rangeEnd; +}