id int64 0 755k | file_name stringlengths 3 109 | file_path stringlengths 13 185 | content stringlengths 31 9.38M | size int64 31 9.38M | language stringclasses 1
value | extension stringclasses 11
values | total_lines int64 1 340k | avg_line_length float64 2.18 149k | max_line_length int64 7 2.22M | alphanum_fraction float64 0 1 | repo_name stringlengths 6 65 | repo_stars int64 100 47.3k | repo_forks int64 0 12k | repo_open_issues int64 0 3.4k | repo_license stringclasses 9
values | repo_extraction_date stringclasses 92
values | exact_duplicates_redpajama bool 2
classes | near_duplicates_redpajama bool 2
classes | exact_duplicates_githubcode bool 2
classes | exact_duplicates_stackv2 bool 1
class | exact_duplicates_stackv1 bool 2
classes | near_duplicates_githubcode bool 2
classes | near_duplicates_stackv1 bool 2
classes | near_duplicates_stackv2 bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
752,173 | Upgrade.cpp | Wargus_stargus/src/dat/Upgrade.cpp | /*
* Upgrade.cpp
*
* Author: Andreas Volz
*/
#include "Upgrade.h"
#include "Logger.h"
#include "PropertyNotAvailableException.h"
static Logger logger = Logger("startool.dat.Upgrade");
using namespace std;
namespace dat
{
Upgrade::Upgrade(DataHub &datahub, unsigned int id) :
ObjectAccess(datahub, id)
{
... | 2,670 | C++ | .cpp | 93 | 26.688172 | 69 | 0.673589 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,174 | Tbl.cpp | Wargus_stargus/src/dat/Tbl.cpp | /*
* Tbl.cpp
*
* Author: Andreas Volz
*/
// Local
#include "Hurricane.h"
#include "StringUtil.h"
#include "Tbl.h"
#include "Logger.h"
// System
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
namespace dat {
static Logger logger = Logger("startool.DataHub.Tbl");
// this is a... | 6,671 | C++ | .cpp | 222 | 22.513514 | 109 | 0.54296 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,329 | parse__pointers.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/parse__pointers.cpp | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// a JSON text given as string that is not null-terminated
const char* ptr = "[1,2,3]another value";
// parse and serialize JSON
json j_complete = json::parse(ptr, ptr + 7);
std::cout << ... | 360 | C++ | .cpp | 12 | 27.083333 | 62 | 0.657971 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
752,332 | parse__iterator_pair.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/parse__iterator_pair.cpp | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// a JSON text given an input with other values
std::vector<std::uint8_t> input = {'[', '1', ',', '2', ',', '3', ']', 'o', 't', 'h', 'e', 'r'};
// parse and serialize JSON
json j_complete = j... | 423 | C++ | .cpp | 12 | 32.333333 | 99 | 0.578431 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
752,339 | array_t.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/array_t.cpp | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
std::cout << std::boolalpha << std::is_same<std::vector<json>, json::array_t>::value << std::endl;
}
| 217 | C++ | .cpp | 8 | 25.375 | 102 | 0.68599 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
752,356 | binary.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/binary.cpp | #include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// create a binary vector
std::vector<std::uint8_t> vec = {0xCA, 0xFE, 0xBA, 0xBE};
// create a binary JSON value with subtype 42
json j = json::binary(vec, 42);
// output type and subtype
std::cout <<... | 408 | C++ | .cpp | 12 | 30.666667 | 101 | 0.630102 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
752,359 | number_float_t.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/number_float_t.cpp | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
std::cout << std::boolalpha << std::is_same<double, json::number_float_t>::value << std::endl;
}
| 213 | C++ | .cpp | 8 | 24.875 | 98 | 0.694581 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
752,378 | number_integer_t.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/number_integer_t.cpp | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
std::cout << std::boolalpha << std::is_same<std::int64_t, json::number_integer_t>::value << std::endl;
}
| 221 | C++ | .cpp | 8 | 25.875 | 106 | 0.691943 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
752,395 | ordered_map.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/ordered_map.cpp | #include <iostream>
#include <nlohmann/json.hpp>
// simple output function
template<typename Map>
void output(const char* prefix, const Map& m)
{
std::cout << prefix << " = { ";
for (auto& element : m)
{
std::cout << element.first << ":" << element.second << ' ';
}
std::cout << "}" << std::... | 1,109 | C++ | .cpp | 36 | 26.611111 | 88 | 0.590994 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | true | true | false | true | true | true | false |
752,411 | operator_literal_json.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/operator_literal_json.cpp | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
json j = R"( {"hello": "world", "answer": 42} )"_json;
std::cout << std::setw(2) << j << '\n';
}
| 218 | C++ | .cpp | 9 | 22 | 58 | 0.601942 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
752,416 | object_t.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/object_t.cpp | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
std::cout << std::boolalpha << std::is_same<std::map<json::string_t, json>, json::object_t>::value << std::endl;
}
| 231 | C++ | .cpp | 8 | 27.125 | 116 | 0.683258 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
752,422 | boolean_t.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/boolean_t.cpp | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
std::cout << std::boolalpha << std::is_same<bool, json::boolean_t>::value << std::endl;
}
| 206 | C++ | .cpp | 8 | 24 | 91 | 0.688776 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | true | true | false | true | true | true | false |
752,438 | string_t.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/string_t.cpp | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
std::cout << std::boolalpha << std::is_same<std::string, json::string_t>::value << std::endl;
}
| 212 | C++ | .cpp | 8 | 24.75 | 97 | 0.688119 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
752,446 | binary_t.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/binary_t.cpp | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
std::cout << std::boolalpha << std::is_same<nlohmann::byte_container_with_subtype<std::vector<std::uint8_t>>, json::binary_t>::value << std::endl;
}
| 265 | C++ | .cpp | 8 | 31.375 | 150 | 0.705882 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
752,456 | number_unsigned_t.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/number_unsigned_t.cpp | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
std::cout << std::boolalpha << std::is_same<std::uint64_t, json::number_unsigned_t>::value << std::endl;
}
| 223 | C++ | .cpp | 8 | 26.125 | 108 | 0.694836 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
752,466 | std_swap.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/std_swap.cpp | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// create JSON values
json j1 = {{"one", 1}, {"two", 2}};
json j2 = {1, 2, 4, 8, 16};
std::cout << "j1 = " << j1 << " | j2 = " << j2 << '\n';
// swap values
std::swap(j1, j2);
s... | 382 | C++ | .cpp | 14 | 23.928571 | 64 | 0.495868 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
752,472 | to_string.cpp | Wargus_stargus/subprojects/nlohmann_json/doc/examples/to_string.cpp | #include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
using std::to_string;
int main()
{
// create values
json j = {{"one", 1}, {"two", 2}};
int i = 42;
// use ADL to select best to_string function
auto j_str = to_string(j); // calling nlohmann::to_string
auto i_str =... | 472 | C++ | .cpp | 16 | 25.375 | 62 | 0.60177 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | true | false | true | true | true | false |
752,474 | CSVExporter.h | Wargus_stargus/test/gamedata/dat/CSVExporter.h | /*
* CSVExporter.h
*
* Author: Andreas Volz
*/
#ifndef CSVEXPORTER_H
#define CSVEXPORTER_H
#include "dat/DataHub.h"
/**
* Just some experiments for development to print the dat files into a csv compatible format
*/
class CSVExporter
{
public:
CSVExporter(dat::DataHub &datahub);
virtual ~CSVExporter();... | 405 | C++ | .h | 21 | 17.333333 | 92 | 0.732804 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,475 | CreateUnitLuaTest.h | Wargus_stargus/test/lua/CreateUnitLuaTest.h | /*
* CreateUnitLuaTest.h
*
* Author: Andreas Volz
*/
#ifndef CREATEUNITLUATEST_H
#define CREATEUNITLUATEST_H
#include <nlohmann/json.hpp>
using json = nlohmann::json;
class CreateUnitLuaTest
{
public:
CreateUnitLuaTest(json &unitsJson);
virtual ~CreateUnitLuaTest();
private:
};
#endif /* CREATEUNITL... | 332 | C++ | .h | 17 | 17.647059 | 37 | 0.772727 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,476 | TestHelpers.h | Wargus_stargus/test/module/TestHelpers.h | /*
* TestHelpers.h
*
* Author: Andreas Volz
*/
#ifndef TESTHELPERS_H
#define TESTHELPERS_H
#include <string>
#include <cstring>
const std::string getStringFromFile(const std::string &file);
bool compareFiles(const std::string &file1, const std::string &file2);
#endif /* TESTHELPERS_H */
| 302 | C++ | .h | 12 | 23.416667 | 70 | 0.74386 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,477 | DataChunkTest.h | Wargus_stargus/test/module/DataChunkTest.h | #ifndef DATACHUNK_TEST_H
#define DATACHUNK_TEST_H
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
// system
#include <string.h>
#include <cstdio>
// project
#include "DataChunk.h"
class DataChunkTest : public CPPUNIT_NS::TestFixture
{
CPPUNIT_TEST_SUITE(DataChunkTest);
CPPUNIT_TES... | 1,418 | C++ | .h | 45 | 28.644444 | 136 | 0.7465 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,478 | BreezeTest.h | Wargus_stargus/test/module/BreezeTest.h | #ifndef BREEZE_TEST_H
#define BREEZE_TEST_H
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
// system
#include <string.h>
#include <cstdio>
// project
#include "Breeze.h"
class BreezeTest : public CPPUNIT_NS::TestFixture
{
CPPUNIT_TEST_SUITE(BreezeTest);
CPPUNIT_TEST(test1_txt_ext... | 996 | C++ | .h | 35 | 25.8 | 117 | 0.745512 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,479 | PcxTest.h | Wargus_stargus/test/module/PcxTest.h | #ifndef PCX_TEST_H
#define PCX_TEST_H
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
// system
#include <string.h>
#include <cstdio>
#include <cstring>
// project
#include "Pcx.h"
#include "Breeze.h"
#include "TestHelpers.h"
class PcxTest : public CPPUNIT_NS::TestFixture
{
CPPUNIT_T... | 1,127 | C++ | .h | 43 | 23.372093 | 120 | 0.709193 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,481 | TiledPaletteImageTest.h | Wargus_stargus/test/module/TiledPaletteImageTest.h | #ifndef TILEDPALETTEIMAGE_TEST_H
#define TILEDPALETTEIMAGE_TEST_H
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
// system
#include <string.h>
#include <cstdio>
// project
#include "Palette.h"
class TiledPaletteImageTest : public CPPUNIT_NS::TestFixture
{
CPPUNIT_TEST_SUITE(TiledPal... | 1,121 | C++ | .h | 35 | 29.428571 | 81 | 0.771455 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,482 | StormTest.h | Wargus_stargus/test/module/StormTest.h | #ifndef STORM_TEST_H
#define STORM_TEST_H
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
// system
#include <string.h>
#include <cstdio>
// project
#include "Storm.h"
#include "StringUtil.h"
class StormTest : public CPPUNIT_NS::TestFixture
{
CPPUNIT_TEST_SUITE(StormTest);
CPPUNI... | 1,082 | C++ | .h | 36 | 27.444444 | 128 | 0.753876 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,483 | to_json.h | Wargus_stargus/tools/scdat2json/to_json.h | /*
* to_json.h
*
* Author: Andreas Volz
*/
#ifndef TO_JSON_H
#define TO_JSON_H
#include "dat/DataHub.h"
#include "dat/Unit.h"
// -> units_dat.ksy
void to_json(json &j, units_dat_t::hit_points_type_t* t);
void to_json(json &j, units_dat_t::special_ability_flags_type_t* t);
void to_json(json &j, units_dat_t:... | 1,954 | C++ | .h | 47 | 40.255319 | 77 | 0.699895 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,484 | UnitsJsonExporter.h | Wargus_stargus/tools/scdat2json/UnitsJsonExporter.h | /*
* UnitsJsonExporter.h
*
* Author: Andreas Volz
*/
#ifndef UNITSJSONEXPORTER_H
#define UNITSJSONEXPORTER_H
#include "dat/DataHub.h"
class UnitsJsonExporter
{
public:
UnitsJsonExporter(dat::DataHub &datahub);
virtual ~UnitsJsonExporter();
void exportUnit(unsigned int id, const std::string &idString... | 396 | C++ | .h | 18 | 19.944444 | 64 | 0.763441 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,485 | SCJsonExporter.h | Wargus_stargus/tools/scdat2json/SCJsonExporter.h | /*
* SCJsonExporter.h
*
* Author: Andreas Volz
*/
#ifndef SCJSONEXPORTER_H
#define SCJSONEXPORTER_H
#include "dat/DataHub.h"
class SCJsonExporter
{
public:
SCJsonExporter(dat::DataHub &datahub);
virtual ~SCJsonExporter();
json export_unit_dat();
json export_orders_dat();
json export_weapons_dat()... | 692 | C++ | .h | 29 | 21.448276 | 65 | 0.730183 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,486 | startool_mpq.h | Wargus_stargus/src/startool_mpq.h | /*
* startool_mpq.h
*
* Author: Andreas Volz
*/
#ifndef STARTOOL_MPQ_H_
#define STARTOOL_MPQ_H_
#include "startool.h"
Control Todo_bootstrap[] = {
{F,0,"","stardat.mpq" __4},
{F,0,"","StarDat.mpq" __4},
{F,0,"","broodat.mpq" __4},
{F,0,"","BrooDat.mpq" __4},
{F,0,"","remove-stardat.mpq" __4},
{... | 143,987 | C++ | .h | 1,901 | 73.733298 | 102 | 0.694303 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,487 | Font.h | Wargus_stargus/src/Font.h | /*
* Font.h
*
* Author: Andreas Volz
*/
#ifndef FONT_H
#define FONT_H
// Local
#include "Storage.h"
// System
#include <memory>
// Forward declarations
class Hurricane;
class Font
{
public:
Font(std::shared_ptr<Hurricane> hurricane);
virtual ~Font();
bool convert(const std::string &arcfile, Storage... | 630 | C++ | .h | 29 | 19.482759 | 70 | 0.717428 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,488 | Wav.h | Wargus_stargus/src/Wav.h | /*
* Wav.h
*
* Author: Andreas Volz
*/
#ifndef WAV_H
#define WAV_H
// project
#include "Converter.h"
#include "Storage.h"
// system
#include <string>
class Wav : public Converter
{
public:
Wav(std::shared_ptr<Hurricane> hurricane);
Wav(std::shared_ptr<Hurricane> hurricane, const std::string &arcfile);
... | 561 | C++ | .h | 25 | 20.32 | 115 | 0.719697 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,489 | StringUtil.h | Wargus_stargus/src/StringUtil.h | /*
* stringUtil.h
*
* Author: Andreas Volz
*/
#ifndef STRINGUTIL_H_
#define STRINGUTIL_H_
// C++
#include <sstream>
#include <iomanip>
#include <iostream>
#include <vector>
#include <string>
#include <exception>
// some functions that are very usefull for writing files
bool hasFileEnding(const std::string &... | 1,670 | C++ | .h | 61 | 25.393443 | 105 | 0.699375 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,490 | luagen.h | Wargus_stargus/src/luagen.h | /*
* luagen.h
*
* Author: Andreas Volz
*/
#ifndef LUAGEN_H
#define LUAGEN_H
// project
#include "Size.h"
#include "Pos.h"
// system
#include <iostream>
#include <string>
#include <list>
#include <initializer_list>
#include <vector>
/**
* Design of this LUA code generator is to be most simple and use strin... | 6,089 | C++ | .h | 183 | 29.459016 | 176 | 0.681036 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,491 | Scm.h | Wargus_stargus/src/Scm.h | /*
* scm.h
*
* Author: Andreas Volz
*/
#ifndef SCM_H_
#define SCM_H_
// Local
#include "Chk.h"
#include "Converter.h"
#include "Storage.h"
// System
#include <cstring>
#include <vector>
#include <string>
#include <memory>
// Forward declarations
class Hurricane;
/**
* Map Container
*
* The .scm is MPQ ... | 689 | C++ | .h | 33 | 19.151515 | 103 | 0.717156 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,492 | Breeze.h | Wargus_stargus/src/Breeze.h | /*
* Breeze.h
*
* Author: Andreas Volz
*/
#ifndef BREEZE_H_
#define BREEZE_H_
#include "Hurricane.h"
/**
* This has the same interface as Hurricane but is
* a dummy file provider to provide extracted files to the converters.
*/
class Breeze: public Hurricane
{
public:
Breeze();
/**
* @param archiv... | 1,254 | C++ | .h | 38 | 30.236842 | 123 | 0.739419 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,493 | endian.h | Wargus_stargus/src/endian.h | // _________ __ __
// / _____// |_____________ _/ |______ ____ __ __ ______
// \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
// / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ |
// /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | 3,114 | C++ | .h | 84 | 35.52381 | 84 | 0.545935 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,494 | AbstractPalette.h | Wargus_stargus/src/AbstractPalette.h | /*
* AbstractPalette.h
*
* Author: Andreas Volz
*/
#ifndef ABSTRACTPALETTE_H
#define ABSTRACTPALETTE_H
// project
#include "DataChunk.h"
// system
#include <memory>
class AbstractPalette
{
public:
virtual ~AbstractPalette();
virtual std::shared_ptr<DataChunk> createDataChunk() = 0;
virtual void loa... | 673 | C++ | .h | 26 | 23.5 | 88 | 0.749606 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,495 | Hurricane.h | Wargus_stargus/src/Hurricane.h | /*
* Hurricane.h
*
* Author: Andreas Volz
*/
#ifndef HURRICANE_H_
#define HURRICANE_H_
// Local
#include "DataChunk.h"
// System
#include <string>
#include <memory>
/**
* This is the virtual base class for Bl*zz*rd data containers
*/
class Hurricane
{
public:
Hurricane();
Hurricane(const std::string &a... | 1,460 | C++ | .h | 45 | 30.222222 | 124 | 0.749465 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,496 | Pos.h | Wargus_stargus/src/Pos.h | #ifndef POS_H
#define POS_H
#include <stdint.h>
/*!
* Trivial class which stores a Position in integer notation.
*/
class Pos
{
public:
Pos ();
Pos (int inX, int inY);
Pos (const Pos& inPos);
~Pos () {}
Pos& operator= (const Pos& inRHS);
bool operator== (const Pos& inPos) const;
bool isEmpty() co... | 988 | C++ | .h | 49 | 17.55102 | 61 | 0.609544 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,497 | Converter.h | Wargus_stargus/src/Converter.h | /*
* Converter.h
*
* Author: Andreas Volz
*/
#ifndef CONVERTER_H_
#define CONVERTER_H_
// System
#include <memory>
#include <string>
// Forward declarations
class Hurricane;
class Converter
{
public:
Converter(std::shared_ptr<Hurricane> hurricane);
virtual ~Converter();
protected:
std::shared_ptr<Hu... | 370 | C++ | .h | 21 | 15.857143 | 50 | 0.737609 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,498 | PortraitsConverter.h | Wargus_stargus/src/PortraitsConverter.h | /*
* PortraitsConverter.h
*
* Author: Andreas Volz
*/
#ifndef PORTRAITSCONVERTER_H
#define PORTRAITSCONVERTER_H
// project
#include "dat/DataHub.h"
#include "Storage.h"
// system
class PortraitsConverter : public Converter
{
public:
PortraitsConverter(std::shared_ptr<Hurricane> hurricane, dat::DataHub &d... | 978 | C++ | .h | 33 | 26.909091 | 96 | 0.719786 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,499 | WorldMap.h | Wargus_stargus/src/WorldMap.h | /*
* WorldMap.h
*
* Author: Andreas Volz
*/
#ifndef WORLDMAP_H_
#define WORLDMAP_H_
// C++
#include <cstring>
#include <cstdint>
#include <cstdlib>
#include <vector>
#include <string>
#define SC_IsUnitMineral(x) ((x) == 176 || (x) == 177 || (x) == 178) /// sc unit mineral
#define SC_UnitGeyser 188 ... | 3,336 | C++ | .h | 139 | 20.992806 | 89 | 0.725299 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,500 | Dds.h | Wargus_stargus/src/Dds.h | /*
* Dds.h
*
* Author: Andreas Volz
*/
#ifdef HAVE_IMAGEMAGICKPP
#ifndef DDS_H_
#define DDS_H_
// Local
#include "Converter.h"
// System
#include <memory>
// Forward declarations
class Hurricane;
class Dds: public Converter
{
public:
Dds(std::shared_ptr<Hurricane> hurricane);
virtual ~Dds();
bool ... | 450 | C++ | .h | 24 | 16.875 | 68 | 0.715663 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,501 | PngExporter.h | Wargus_stargus/src/PngExporter.h | /*
* Png.h
*
* Author: Andreas Volz
*/
#ifndef PNG_H_
#define PNG_H_
// project
#include "PaletteImage.h"
#include "Palette.h"
#include "Palette2D.h"
// system
#include <png.h>
#include <string>
class PngExporter
{
public:
PngExporter();
virtual ~PngExporter();
//TODO: un-static this in the design!
... | 1,643 | C++ | .h | 51 | 28.941176 | 90 | 0.655281 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,502 | Palette2D.h | Wargus_stargus/src/Palette2D.h | /*
* Palette2D.h
*
* Author: Andreas Volz
*/
#ifndef PALETTE2D_H
#define PALETTE2D_H
// project
#include "Color.h"
#include "Palette.h"
#include "AbstractPalette.h"
// system
#include <vector>
#include <array>
class Palette2D : public AbstractPalette
{
public:
Palette2D(unsigned int size);
Palette2D(... | 1,006 | C++ | .h | 36 | 25.444444 | 136 | 0.729645 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,503 | Panel.h | Wargus_stargus/src/Panel.h | /*
* Panel.h
*
* Author: Andreas Volz
*/
#ifndef PANEL_H_
#define PANEL_H_
class Panel
{
public:
Panel();
virtual ~Panel();
int save(int width, int height);
private:
unsigned char* CreatePanel(int width, int height);
};
#endif /* PANEL_H_ */
| 264 | C++ | .h | 17 | 13.529412 | 52 | 0.669421 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,504 | FileUtil.h | Wargus_stargus/src/FileUtil.h | /*
* FileUtil.h
*
* Author: Andreas Volz
*/
#ifndef FILEUTIL_H_
#define FILEUTIL_H_
// project
#include "platform.h"
// system
#include <string>
#include <stdlib.h>
#include <string.h>
/**
* Check if path exists - DOESN'T create any directories/files
*/
bool FileExists(const std::string &filename);
/**
... | 544 | C++ | .h | 26 | 19.269231 | 62 | 0.706458 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,505 | startool.h | Wargus_stargus/src/startool.h | // _________ __ __
// / _____// |_____________ _/ |______ ____ __ __ ______
// \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
// / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ |
// /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | 4,345 | C++ | .h | 120 | 34.483333 | 84 | 0.460899 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,506 | SfxConverter.h | Wargus_stargus/src/SfxConverter.h | /*
* SfxConverter.h
*
* Author: Andreas Volz
*/
#ifndef SFXCONVERTER_H
#define SFXCONVERTER_H
// project
#include "dat/DataHub.h"
class SfxConverter : public Converter
{
public:
SfxConverter(std::shared_ptr<Hurricane> hurricane, dat::DataHub &datahub);
virtual ~SfxConverter();
bool convert();
privat... | 381 | C++ | .h | 19 | 18.105263 | 76 | 0.738764 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,507 | pacman.h | Wargus_stargus/src/pacman.h | #ifndef PACMAN_H
#define PACMAN_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <string>
#include <vector>
namespace pacman {
// public search functions
const std::string searchDir(const std::string &data);
const std::string searchFile(const std::string &data);
// helper function
const std::string statF... | 388 | C++ | .h | 15 | 24.4 | 67 | 0.770492 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,508 | Size.h | Wargus_stargus/src/Size.h | #ifndef SIZE_H
#define SIZE_H
#include <stdint.h>
/*!
* Trivial class which stores a size in integer notation.
*/
class Size
{
public:
Size ();
Size (int inWidth, int inHeight);
Size (const Size& inSize);
~Size () {}
bool isEmpty() const { return ((mWidth == 0) && (mHeight == 0));}
int getWidth() ... | 1,595 | C++ | .h | 67 | 21.208955 | 78 | 0.678429 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,509 | Smacker.h | Wargus_stargus/src/Smacker.h | /*
* Video.h
*
* Author: Andreas Volz
*/
#ifndef VIDEO_H
#define VIDEO_H
// project
#include "Storage.h"
#include "Converter.h"
// System
#include <memory>
class Smacker : public Converter
{
public:
Smacker(std::shared_ptr<Hurricane> hurricane);
virtual ~Smacker();
/**
* Convert SMK video to OGV... | 536 | C++ | .h | 26 | 18.461538 | 64 | 0.711155 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,510 | Storm.h | Wargus_stargus/src/Storm.h | #ifndef STORM_H_
#define STORM_H_
// Local
#include "Hurricane.h"
#include "DataChunk.h"
// System
#include <stdint.h>
#include <string>
#include <memory>
class Storm: public Hurricane
{
public:
Storm();
Storm(const std::string &archiveName);
virtual ~Storm();
bool openArchive(const std::string &archiveName... | 1,153 | C++ | .h | 34 | 31.264706 | 107 | 0.74752 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,511 | ImagesConverter.h | Wargus_stargus/src/ImagesConverter.h | /*
* ImagesConverter.h
*
* Author: Andreas Volz
*/
#ifndef IMAGESCONVERTER_H
#define IMAGESCONVERTER_H
#include "Converter.h"
#include "dat/DataHub.h"
class ImagesConverter: public Converter
{
public:
ImagesConverter(std::shared_ptr<Hurricane> hurricane, dat::DataHub &datahub);
virtual ~ImagesConverter(... | 480 | C++ | .h | 19 | 23.315789 | 84 | 0.76044 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,512 | startool_cd.h | Wargus_stargus/src/startool_cd.h | /*
* startool_cd.h
*
* Author: Andreas Volz
*/
#ifndef STARTOOL_CD_H_
#define STARTOOL_CD_H_
#include "startool.h"
Control CDTodo_bootstrap[] = {
{F,0,"","install.exe" __4},
{F,0,"","Install.exe" __4},
{F,0,"","starcraft.mpq" __4 },
{F,0,"","Starcraft.mpq" __4 },
{F,0,"","StarCraft.mpq" __4 },
{... | 62,917 | C++ | .h | 717 | 85.715481 | 109 | 0.703781 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,513 | startool_rm.h | Wargus_stargus/src/startool_rm.h | /*
* startool_rm.h
*
* Author: Andreas Volz
*/
#ifndef STARTOOL_RM_H_
#define STARTOOL_RM_H_
// Local
#include "startool.h"
Control RMTodo[] = {
{D,0,"game/consoles/protoss/conover.png","game/consoles/protoss/conover.DDS" __4},
{D,0,"HD2/game/consoles/protoss/console_center.png","HD2/game/consoles/protoss... | 980 | C++ | .h | 26 | 35.653846 | 105 | 0.643386 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,514 | KaitaiConverter.h | Wargus_stargus/src/KaitaiConverter.h | /*
* KaitaiConverter.h
*
* Author: Andreas
*/
#ifndef KAITAICONVERTER_H
#define KAITAICONVERTER_H
// project
#include "Converter.h"
#include "kaitai/kaitaistream.h"
//system
#include <memory>
/**
* TODO: meaybe remove complete KaitaiConverter class layer...
*/
class KaitaiConverter: public Converter
{
pu... | 647 | C++ | .h | 28 | 21.071429 | 78 | 0.748777 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,515 | Storage.h | Wargus_stargus/src/Storage.h | /*
* Storage.h
*
* Author: Andreas Volz
*/
#ifndef STORAGE_H_
#define STORAGE_H_
#include <string>
class Storage
{
public:
Storage();
Storage(const char *filename);
Storage(const std::string &filename);
virtual ~Storage();
const std::string& getDataPath() const;
void setDataPath(const std::... | 1,117 | C++ | .h | 36 | 28.25 | 70 | 0.736991 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,516 | platform.h | Wargus_stargus/src/platform.h | /*
* platform.h
*
* Author: Andreas Volz
*/
#ifndef PLATFORM_H
#define PLATFORM_H
// filesystem ->
#if __has_include(<filesystem>)
#include <filesystem>
namespace fs = std::filesystem;
#elif __has_include(<experimental/filesystem>)
#include <experimental/filesystem>
namespace fs = std::experimental::filesyst... | 687 | C++ | .h | 29 | 22.206897 | 56 | 0.739198 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,518 | PaletteImage.h | Wargus_stargus/src/PaletteImage.h | /*
* PaletteImage.h
*
* Author: Andreas Volz
*/
#ifndef PALETTEIMAGE_H
#define PALETTEIMAGE_H
// Project
#include "DataChunk.h"
#include "Size.h"
#include "Pos.h"
// System
/**
* A PaletteImage could hold a number of Integers of fixed size width*height that describe a Palette based image.
* The Image its... | 2,024 | C++ | .h | 59 | 31.423729 | 113 | 0.733573 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,520 | UnitsConverter.h | Wargus_stargus/src/UnitsConverter.h | /*
* UnitsExporter.h
*
* Author: Andreas Volz
*/
#ifndef UNITSEXPORTER_H
#define UNITSEXPORTER_H
// project
#include "dat/DataHub.h"
#include "Storage.h"
#include "dat/Unit.h"
// system
namespace dat
{
/**
* Walk through the tree of Units in the dat architecture and convert what is referenced
*/
class U... | 798 | C++ | .h | 33 | 22.151515 | 88 | 0.749669 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,521 | UIConsole.h | Wargus_stargus/src/UIConsole.h | /*
* UIConsole.h
*
* Author: Andreas Volz
*/
#ifndef UICONSOLE_H
#define UICONSOLE_H
// project
#include "Converter.h"
#include "Storage.h"
// system
#include <string>
#include <memory>
/**
* Draft idea:
* - get tconsole.pcx, pconsole.pcx, zconsole.pcx
* - cut it somewhere in the middle
* - define an a... | 766 | C++ | .h | 33 | 21.363636 | 54 | 0.719008 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,522 | optparser.h | Wargus_stargus/src/optparser.h | // as this is 3rd party code I don't fix it ->
#ifndef _MSC_VER
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
#endif
#include "optionparser.h"
#ifndef _MSC_VER
#pragma GCC diagnostic pop
#endif
// <-
| 234 | C++ | .h | 10 | 22.4 | 51 | 0.758929 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,523 | Chk.h | Wargus_stargus/src/Chk.h | /*
* Chk.h
*
* Author: Andreas Volz
*/
#ifndef CHK_H_
#define CHK_H_
// Local
#include "WorldMap.h"
#include "Storage.h"
#include "Converter.h"
// System
#include <memory>
// Forward declarations
class Hurricane;
/**
* For .chk files generate a combination of .smp and .sms file
* The .smp and .sms files... | 1,251 | C++ | .h | 47 | 24.191489 | 89 | 0.723154 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,524 | Color.h | Wargus_stargus/src/Color.h | /*
* Color.h
*
* Author: Andreas Volz
*/
#ifndef COLOR_H
#define COLOR_H
class Color
{
public:
Color();
Color(const Color &color);
Color(unsigned char red, unsigned char green, unsigned char blue);
Color(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha);
virtual ~Colo... | 1,109 | C++ | .h | 42 | 23.547619 | 89 | 0.732261 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,525 | Widgets.h | Wargus_stargus/src/Widgets.h | /*
* Widget.h
*
* Author: Andreas Volz
*/
#ifndef WIDGETS_H_
#define WIDGETS_H_
#include "Grp.h"
#include "Palette.h"
// system
#include <nlohmann/json.hpp>
using json = nlohmann::json;
class Widgets: public Grp
{
public:
Widgets(std::shared_ptr<Hurricane> hurricane);
virtual ~Widgets();
/**
* C... | 508 | C++ | .h | 24 | 19.041667 | 85 | 0.715789 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,526 | Pcx.h | Wargus_stargus/src/Pcx.h | /*
* Pcx.h
*
* Author: Andreas Volz
*/
#ifndef PCX_H
#define PCX_H
// Project
#include "Converter.h"
#include "Palette.h"
#include "Storage.h"
#include "PaletteImage.h"
#include "Palette2D.h"
class Pcx : public Converter
{
public:
Pcx(std::shared_ptr<Hurricane> hurricane);
Pcx(std::shared_ptr<Hurricane>... | 2,132 | C++ | .h | 79 | 23.620253 | 86 | 0.706229 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,527 | Palette.h | Wargus_stargus/src/Palette.h | /*
* Palettes.h
*
* Author: Andreas Volz
*/
#ifndef PALETTE_H
#define PALETTE_H
// project
#include "Color.h"
#include "Converter.h"
#include "AbstractPalette.h"
// project
#include <array>
/**
*
*/
class Palette : public AbstractPalette
{
public:
Palette();
/**
* Create from a RGB or RGBx/WPE pa... | 978 | C++ | .h | 40 | 21.925 | 136 | 0.705502 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,528 | NoValidPaletteException.h | Wargus_stargus/src/NoValidPaletteException.h | #ifndef NOVALIDPALETTEEXCEPTION_H
#define NOVALIDPALETTEEXCEPTION_H
#include <exception>
class NoValidPaletteException : public std::exception
{
public:
NoValidPaletteException(const size_t size) : m_size(size) {}
const char *what() const throw();
private:
const int m_size;
};
#endif // NOVALIDPALETTEEXCEPTI... | 325 | C++ | .h | 12 | 25.166667 | 62 | 0.798701 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,529 | Preferences.h | Wargus_stargus/src/Preferences.h | #ifndef PREFERENCES_H
#define PREFERENCES_H
#include <string>
/**
** Path to the unit graphics. (default=$DIR/graphics)
*/
#define GRAPHICS_PATH "graphics"
class Preferences
{
public: // Singleton
static Preferences& getInstance();
private: // Singleton
Preferences()
{
}
; // @suppress("Class members ... | 1,011 | C++ | .h | 42 | 21.404762 | 64 | 0.739812 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,530 | Grp.h | Wargus_stargus/src/Grp.h | /*
* Grp.h
*
* Author: Andreas Volz
*/
#ifndef GRP_H
#define GRP_H
// Local
#include "Converter.h"
#include "Palette.h"
#include "Storage.h"
#include "Size.h"
#include "Palette2D.h"
#include "libgrp/libgrp.hpp"
// System
#include <string.h>
#include <memory>
/**
*
*/
class Grp: public Converter
{
public:... | 1,223 | C++ | .h | 50 | 22 | 110 | 0.708872 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,531 | DataChunk.h | Wargus_stargus/src/DataChunk.h | /*
* DataChunk.h
*
* Author: Andreas Volz
*/
#ifndef DATACHUNK_H_
#define DATACHUNK_H_
// Local
// System
#include <stdlib.h>
#include <string>
#include <vector>
class DataChunk
{
public:
/**
* Create a new DataChunk with empty size
*/
DataChunk();
/**
* Copy Constructor (full depth)
*/... | 1,960 | C++ | .h | 75 | 22.893333 | 118 | 0.687567 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,532 | Casc.h | Wargus_stargus/src/Casc.h | /*
* Casc.h
*
* Author: Andreas Volz
*/
#ifdef HAVE_CASC
#include "Hurricane.h"
#ifndef CASC_H_
#define CASC_H_
class Casc: public Hurricane
{
public:
Casc();
Casc(const std::string &archiveName);
virtual ~Casc();
bool openArchive(const std::string &archiveName);
void closeArchive();
/**
* ... | 890 | C++ | .h | 33 | 24.30303 | 107 | 0.720189 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,534 | GRPImage.hpp | Wargus_stargus/src/libgrp/GRPImage/GRPImage.hpp | /*!
* \brief The main
* \details This class runs all the underlying generic functions required
* for nearly all objects in the framework
* \author Bradley Clemetson, from GRPLib Authors
* \version 1.0.0
* \date Jan 13, 2013
* \copyright LGPLv2
* \section basicsGRPFormat Basic Format A... | 7,210 | C++ | .h | 163 | 41 | 143 | 0.73682 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,535 | GRPException.hpp | Wargus_stargus/src/libgrp/Exceptions/GRPException.hpp | #ifndef GRPException_H
#define GRPException_H
#include <exception>
#include <string>
//!The base exception class
/*!A base exception class for which all other GRPImage/Frame and
*Colorpalettes are based on
* \pre NA
* \post NA
* \note */
class GRPException : public virtual std::exception
{
public:
... | 749 | C++ | .h | 28 | 22.857143 | 64 | 0.712446 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
752,536 | GRPImageException.hpp | Wargus_stargus/src/libgrp/Exceptions/GRPImage/GRPImageException.hpp | #ifndef GRPImageException_Header
#define GRPImageException_Header
#include "../GRPException.hpp"
class GRPImageException : public GRPException {};
class GRPImageInvalidFrameNumber : public GRPImageException {};
class GRPImageNoLoadedPaletteSet : public GRPImageException {};
class GRPImageNoFrameLoaded : public GRPIma... | 413 | C++ | .h | 9 | 44.666667 | 69 | 0.850746 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,537 | GRPFrameException.hpp | Wargus_stargus/src/libgrp/Exceptions/GRPFrame/GRPFrameException.hpp | #ifndef GRPFrameException_Header
#define GRPFrameException_Header
#include "../GRPException.hpp"
class GRPFrameException : public GRPException {};
class GRPFrameInvalidFrameDemensions : public GRPFrameException {};
class GRPFrameInvalidImageDemensions : public GRPFrameException {};
#endif | 292 | C++ | .h | 7 | 40.428571 | 67 | 0.85159 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,539 | tileset_cv5.h | Wargus_stargus/src/kaitai/tileset_cv5.h | #ifndef TILESET_CV5_H_
#define TILESET_CV5_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or lat... | 3,341 | C++ | .h | 89 | 30.955056 | 116 | 0.62132 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,540 | file_tbl.h | Wargus_stargus/src/kaitai/file_tbl.h | #ifndef FILE_TBL_H_
#define FILE_TBL_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or later is ... | 2,003 | C++ | .h | 67 | 24.507463 | 110 | 0.610471 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,541 | portdata_dat.h | Wargus_stargus/src/kaitai/portdata_dat.h | #ifndef PORTDATA_DAT_H_
#define PORTDATA_DAT_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or l... | 2,888 | C++ | .h | 70 | 37.071429 | 309 | 0.694454 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,542 | flingy_dat.h | Wargus_stargus/src/kaitai/flingy_dat.h | #ifndef FLINGY_DAT_H_
#define FLINGY_DAT_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or later... | 3,460 | C++ | .h | 81 | 38.308642 | 418 | 0.686549 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,543 | tileset_vx4.h | Wargus_stargus/src/kaitai/tileset_vx4.h | #ifndef TILESET_VX4_H_
#define TILESET_VX4_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or lat... | 2,781 | C++ | .h | 82 | 27.573171 | 126 | 0.612298 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,544 | iscript_bin.h | Wargus_stargus/src/kaitai/iscript_bin.h | #ifndef ISCRIPT_BIN_H_
#define ISCRIPT_BIN_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include "opcode_list_type.h"
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C... | 16,889 | C++ | .h | 505 | 26.025743 | 123 | 0.584838 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,545 | opcode_list_type.h | Wargus_stargus/src/kaitai/opcode_list_type.h | /*
* opcode_list_type.h
*
* Author: Andreas Volz
*/
#ifndef OPCODE_LIST_TYPE_H
#define OPCODE_LIST_TYPE_H
#include "kaitaistruct.h"
// system
#include <unordered_set>
#include <vector>
// forward declarations
class iscript_bin_t;
class opcode_list_type_t : public kaitai::kstruct
{
public:
opcode_list... | 787 | C++ | .h | 29 | 24.896552 | 97 | 0.708556 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,546 | units_dat.h | Wargus_stargus/src/kaitai/units_dat.h | #ifndef UNITS_DAT_H_
#define UNITS_DAT_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or later i... | 35,800 | C++ | .h | 667 | 47.253373 | 457 | 0.677088 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,547 | tileset_vf4.h | Wargus_stargus/src/kaitai/tileset_vf4.h | #ifndef TILESET_VF4_H_
#define TILESET_VF4_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or lat... | 2,802 | C++ | .h | 88 | 25.625 | 125 | 0.614782 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,548 | weapons_dat.h | Wargus_stargus/src/kaitai/weapons_dat.h | #ifndef WEAPONS_DAT_H_
#define WEAPONS_DAT_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or lat... | 9,397 | C++ | .h | 208 | 39.826923 | 394 | 0.66222 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,551 | orders_dat.h | Wargus_stargus/src/kaitai/orders_dat.h | #ifndef ORDERS_DAT_H_
#define ORDERS_DAT_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or later... | 4,503 | C++ | .h | 111 | 35.945946 | 214 | 0.669111 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,553 | images_dat.h | Wargus_stargus/src/kaitai/images_dat.h | #ifndef IMAGES_DAT_H_
#define IMAGES_DAT_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or later... | 8,878 | C++ | .h | 177 | 44.502825 | 470 | 0.682091 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,554 | sfxdata_dat.h | Wargus_stargus/src/kaitai/sfxdata_dat.h | #ifndef SFXDATA_DAT_H_
#define SFXDATA_DAT_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or lat... | 1,941 | C++ | .h | 59 | 29.016949 | 103 | 0.673469 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,555 | techdata_dat.h | Wargus_stargus/src/kaitai/techdata_dat.h | #ifndef TECHDATA_DAT_H_
#define TECHDATA_DAT_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or l... | 4,331 | C++ | .h | 132 | 28.242424 | 138 | 0.661453 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,557 | tileset_dddata_bin.h | Wargus_stargus/src/kaitai/tileset_dddata_bin.h | #ifndef TILESET_DDDATA_BIN_H_
#define TILESET_DDDATA_BIN_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: vers... | 1,649 | C++ | .h | 45 | 31.866667 | 118 | 0.657629 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,558 | tileset_vr4.h | Wargus_stargus/src/kaitai/tileset_vr4.h | #ifndef TILESET_VR4_H_
#define TILESET_VR4_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or lat... | 1,525 | C++ | .h | 45 | 29.111111 | 103 | 0.644323 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,560 | upgrades_dat.h | Wargus_stargus/src/kaitai/upgrades_dat.h | #ifndef UPGRADES_DAT_H_
#define UPGRADES_DAT_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or l... | 4,914 | C++ | .h | 139 | 30.741007 | 138 | 0.667724 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,561 | sprites_dat.h | Wargus_stargus/src/kaitai/sprites_dat.h | #ifndef SPRITES_DAT_H_
#define SPRITES_DAT_H_
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "kaitai/kaitaistruct.h"
#include <stdint.h>
#include <vector>
#if KAITAI_STRUCT_VERSION < 9000L
#error "Incompatible Kaitai Struct C++/STL API: version 0.9 or lat... | 4,602 | C++ | .h | 104 | 39.788462 | 482 | 0.700269 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,562 | TiledPaletteImage.h | Wargus_stargus/src/tileset/TiledPaletteImage.h | /*
* TiledPaletteImage.h
*
* Author: Andreas
*/
#ifndef TILEDPALETTEIMAGE_H_
#define TILEDPALETTEIMAGE_H_
// project
#include "PaletteImage.h"
namespace tileset
{
/**
* A TiledPaletteImage is a special form of a PaletteImage. As child it shares all details,
* but with the extension that complete other Pa... | 1,109 | C++ | .h | 31 | 33.677419 | 101 | 0.780694 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,563 | TilesetHub.h | Wargus_stargus/src/tileset/TilesetHub.h | /*
* TilesetHub.h
*
* Author: Andreas Volz
*/
#ifndef TILESETHUB_H
#define TILESETHUB_H
// project
#include "Palette.h"
#include "KaitaiConverter.h"
#include "kaitai/tileset_cv5.h"
#include "kaitai/tileset_vx4.h"
#include "kaitai/tileset_vf4.h"
#include "kaitai/tileset_vr4.h"
#include "Storage.h"
// system
... | 1,963 | C++ | .h | 57 | 32.350877 | 110 | 0.747096 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,564 | MegaTile.h | Wargus_stargus/src/tileset/MegaTile.h | /*
* MegaTile.h
*
* Author: Andreas Volz
*/
#ifndef MEGATILE_H
#define MEGATILE_H
// project
#include "TilesetHub.h"
#include "TiledPaletteImage.h"
namespace tileset
{
/**
* MiniTiles are arranged in a MegaTile as follows:
* 0 | 1 | 2 | 3
* 4 | 5 | 6 | 7
* 8 | 9 |10 |11
* 12| 13 |14 |15
*/
class M... | 646 | C++ | .h | 33 | 17.575758 | 51 | 0.695364 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,565 | Upgrade.h | Wargus_stargus/src/dat/Upgrade.h | /*
* Upgrade.h
*
* Author: Andreas Volz
*/
#ifndef UPGRADE_H
#define UPGRADE_H
#include "ObjectAccess.h"
namespace dat
{
class Upgrade : public ObjectAccess
{
public:
Upgrade(DataHub &datahub, unsigned int id);
virtual ~Upgrade();
uint16_t mineral_cost_base();
uint16_t mineral_cost_factor();
u... | 729 | C++ | .h | 33 | 19.333333 | 45 | 0.701183 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
752,566 | Portrait.h | Wargus_stargus/src/dat/Portrait.h | /*
* Portrait.h
*
* Author: Andreas Volz
*/
#ifndef PORTRAIT_H
#define PORTRAIT_H
#include "ObjectAccess.h"
namespace dat
{
class Portrait : public ObjectAccess
{
public:
Portrait(DataHub &datahub, unsigned int id);
virtual ~Portrait();
uint32_t video_idle();
TblEntry video_idle_tbl();
uint32_t... | 603 | C++ | .h | 28 | 19.071429 | 55 | 0.717857 | Wargus/stargus | 127 | 24 | 9 | GPL-2.0 | 9/20/2024, 9:42:05 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.