| 11 | } |
| 12 | |
| 13 | void PricesContainer::setup(uint8_t resolutionInMinutes, uint8_t numberOfPoints, bool differentExportPrices) { |
| 14 | this->resolutionInMinutes = resolutionInMinutes; |
| 15 | this->differentExportPrices = differentExportPrices; |
| 16 | this->numberOfPoints = numberOfPoints; |
| 17 | this->points = new int32_t[numberOfPoints * (differentExportPrices ? 2 : 1)]; |
| 18 | memset(this->points, PRICE_NO_VALUE * 10000, numberOfPoints * (differentExportPrices ? 2 : 1) * sizeof(int32_t)); |
| 19 | } |
| 20 | |
| 21 | char* PricesContainer::getSource() { |
| 22 | return this->source; |
nothing calls this directly
no outgoing calls
no test coverage detected