mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
clang formatting
This commit is contained in:
parent
365502d819
commit
e2f8892278
@ -421,7 +421,7 @@ class LinkerImpl final : public Linker
|
|||||||
SearchPaths& sourceSearchPaths) const
|
SearchPaths& sourceSearchPaths) const
|
||||||
{
|
{
|
||||||
SoundBankWriter::OutputPath = fs::path(m_args.GetOutputFolderPathForProject(projectName));
|
SoundBankWriter::OutputPath = fs::path(m_args.GetOutputFolderPathForProject(projectName));
|
||||||
|
|
||||||
const auto zone = CreateZoneForDefinition(targetName, zoneDefinition, &assetSearchPaths, &gdtSearchPaths, &sourceSearchPaths);
|
const auto zone = CreateZoneForDefinition(targetName, zoneDefinition, &assetSearchPaths, &gdtSearchPaths, &sourceSearchPaths);
|
||||||
auto result = zone != nullptr;
|
auto result = zone != nullptr;
|
||||||
if (zone)
|
if (zone)
|
||||||
|
@ -14,7 +14,7 @@ const std::string ParsedCsvRow::GetValue(const std::string& header, bool require
|
|||||||
std::cerr << "ERROR: Required column \"" << header << "\" was not found";
|
std::cerr << "ERROR: Required column \"" << header << "\" was not found";
|
||||||
else
|
else
|
||||||
std::cerr << "WARNING: Expected column \"" << header << "\" was not found";
|
std::cerr << "WARNING: Expected column \"" << header << "\" was not found";
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ public:
|
|||||||
explicit ParsedCsvRow(std::unordered_map<std::string, size_t>& headers, std::vector<std::string>& row);
|
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 std::string GetValue(const std::string& header, bool required = false) const;
|
||||||
const float GetValueFloat(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
|
template<typename T> T GetValueInt(const std::string& header, bool required = false) const
|
||||||
{
|
{
|
||||||
const auto& value = this->GetValue(header, required);
|
const auto& value = this->GetValue(header, required);
|
||||||
@ -35,8 +35,8 @@ class ParsedCsv
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit ParsedCsv(const CsvInputStream& inputStream, bool hasHeaders = true);
|
explicit ParsedCsv(const CsvInputStream& inputStream, bool hasHeaders = true);
|
||||||
|
|
||||||
size_t Size() const;
|
size_t Size() const;
|
||||||
|
|
||||||
ParsedCsvRow operator[](size_t index) const;
|
ParsedCsvRow operator[](size_t index) const;
|
||||||
};
|
};
|
||||||
|
@ -44,4 +44,4 @@ struct WavHeader
|
|||||||
WavChunkHeader chunkHeader;
|
WavChunkHeader chunkHeader;
|
||||||
WavFormatChunkPcm formatChunk;
|
WavFormatChunkPcm formatChunk;
|
||||||
WavChunkHeader subChunkHeader;
|
WavChunkHeader subChunkHeader;
|
||||||
};
|
};
|
||||||
|
@ -19,7 +19,7 @@ std::unordered_map<unsigned int, unsigned char> INDEX_FOR_FRAMERATE{
|
|||||||
{44100, 5},
|
{44100, 5},
|
||||||
{48000, 6},
|
{48000, 6},
|
||||||
{96000, 7},
|
{96000, 7},
|
||||||
{192000, 8},
|
{192000, 8},
|
||||||
};
|
};
|
||||||
|
|
||||||
class SoundBankWriterImpl : public SoundBankWriter
|
class SoundBankWriterImpl : public SoundBankWriter
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "SearchPath/ISearchPath.h"
|
#include "SearchPath/ISearchPath.h"
|
||||||
|
|
||||||
|
#include <filesystem>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <filesystem>
|
|
||||||
|
|
||||||
class SoundBankWriter
|
class SoundBankWriter
|
||||||
{
|
{
|
||||||
@ -22,4 +22,4 @@ public:
|
|||||||
static std::unique_ptr<SoundBankWriter> Create(const std::string& fileName, std::ostream& stream, ISearchPath* assetSearchPath);
|
static std::unique_ptr<SoundBankWriter> Create(const std::string& fileName, std::ostream& stream, ISearchPath* assetSearchPath);
|
||||||
|
|
||||||
static std::filesystem::path OutputPath;
|
static std::filesystem::path OutputPath;
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <ostream>
|
|
||||||
#include <Sound/WavTypes.h>
|
#include <Sound/WavTypes.h>
|
||||||
|
#include <ostream>
|
||||||
|
|
||||||
class WavWriter
|
class WavWriter
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "StringUtils.h"
|
#include "StringUtils.h"
|
||||||
|
|
||||||
#include <sstream>
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
namespace utils
|
namespace utils
|
||||||
{
|
{
|
||||||
@ -106,7 +106,7 @@ namespace utils
|
|||||||
{
|
{
|
||||||
std::vector<std::string> strings{};
|
std::vector<std::string> strings{};
|
||||||
std::istringstream stream(str);
|
std::istringstream stream(str);
|
||||||
|
|
||||||
std::string s;
|
std::string s;
|
||||||
while (std::getline(stream, s, delim))
|
while (std::getline(stream, s, delim))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user