clang formatting

This commit is contained in:
Alex
2024-01-26 13:05:07 -05:00
parent 365502d819
commit e2f8892278
8 changed files with 12 additions and 12 deletions

View File

@ -14,7 +14,7 @@ const std::string ParsedCsvRow::GetValue(const std::string& header, bool require
std::cerr << "ERROR: Required column \"" << header << "\" was not found";
else
std::cerr << "WARNING: Expected column \"" << header << "\" was not found";
return {};
}

View File

@ -12,7 +12,7 @@ public:
explicit ParsedCsvRow(std::unordered_map<std::string, size_t>& headers, std::vector<std::string>& row);
const std::string GetValue(const std::string& header, bool required = false) const;
const float GetValueFloat(const std::string& header, bool required = false) const;
template<typename T> T GetValueInt(const std::string& header, bool required = false) const
{
const auto& value = this->GetValue(header, required);
@ -35,8 +35,8 @@ class ParsedCsv
public:
explicit ParsedCsv(const CsvInputStream& inputStream, bool hasHeaders = true);
size_t Size() const;
ParsedCsvRow operator[](size_t index) const;
};
};

View File

@ -44,4 +44,4 @@ struct WavHeader
WavChunkHeader chunkHeader;
WavFormatChunkPcm formatChunk;
WavChunkHeader subChunkHeader;
};
};