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
35,842
globalmap.hpp
OpenMW_openmw/components/esm3/globalmap.hpp
#ifndef OPENMW_COMPONENTS_ESM_GLOBALMAP_H #define OPENMW_COMPONENTS_ESM_GLOBALMAP_H #include <cstdint> #include <set> #include <vector> #include "components/esm/defs.hpp" namespace ESM { class ESMReader; class ESMWriter; // format 0, saved games only ///< \brief An image containing the explored are...
811
C++
.h
29
22.137931
73
0.661039
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,843
loadsndg.hpp
OpenMW_openmw/components/esm3/loadsndg.hpp
#ifndef OPENMW_ESM_SNDG_H #define OPENMW_ESM_SNDG_H #include <string> #include "components/esm/defs.hpp" #include "components/esm/refid.hpp" namespace ESM { class ESMReader; class ESMWriter; /* * Sound generator. This describes the sounds a creature make. */ struct SoundGenerator { ...
1,067
C++
.h
38
20.605263
108
0.593904
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,844
loadclot.hpp
OpenMW_openmw/components/esm3/loadclot.hpp
#ifndef OPENMW_ESM_CLOT_H #define OPENMW_ESM_CLOT_H #include <cstdint> #include <string> #include "components/esm/defs.hpp" #include "components/esm/refid.hpp" #include "loadarmo.hpp" namespace ESM { class ESMReader; class ESMWriter; /* * Clothing */ struct Clothing { constex...
1,372
C++
.h
51
18.862745
108
0.56422
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,845
loadrace.hpp
OpenMW_openmw/components/esm3/loadrace.hpp
#ifndef OPENMW_ESM_RACE_H #define OPENMW_ESM_RACE_H #include <array> #include <string> #include "components/esm/defs.hpp" #include "components/esm/refid.hpp" #include "spelllist.hpp" namespace ESM { class ESMReader; class ESMWriter; /* * Race definition */ struct Race { const...
1,921
C++
.h
56
25.892857
108
0.60846
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,846
loadglob.hpp
OpenMW_openmw/components/esm3/loadglob.hpp
#ifndef OPENMW_ESM_GLOB_H #define OPENMW_ESM_GLOB_H #include <string> #include "variant.hpp" #include "components/esm/defs.hpp" #include "components/esm/refid.hpp" namespace ESM { class ESMReader; class ESMWriter; /* * Global script variables */ struct Global { constexpr sta...
904
C++
.h
29
25.655172
108
0.670534
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,847
loadland.hpp
OpenMW_openmw/components/esm3/loadland.hpp
#ifndef OPENMW_ESM_LAND_H #define OPENMW_ESM_LAND_H #include <array> #include <cstdint> #include <memory> #include <components/misc/constants.hpp> #include "components/esm/defs.hpp" #include "components/esm/esmcommon.hpp" #include "landrecorddata.hpp" namespace ESM { class ESMReader; class ESMWriter; ...
4,447
C++
.h
102
35.215686
108
0.647209
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,848
loaddoor.hpp
OpenMW_openmw/components/esm3/loaddoor.hpp
#ifndef OPENMW_ESM_DOOR_H #define OPENMW_ESM_DOOR_H #include <cstdint> #include <string> #include "components/esm/defs.hpp" #include "components/esm/refid.hpp" namespace ESM { class ESMReader; class ESMWriter; struct Door { constexpr static RecNameInts sRecordId = REC_DOOR; /// Ret...
824
C++
.h
25
27.6
108
0.682278
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,849
inventorystate.hpp
OpenMW_openmw/components/esm3/inventorystate.hpp
#ifndef OPENMW_ESM_INVENTORYSTATE_H #define OPENMW_ESM_INVENTORYSTATE_H #include <map> #include <optional> #include "objectstate.hpp" #include <components/esm/refid.hpp> namespace ESM { class ESMReader; class ESMWriter; // format 0, saved games only /// \brief State for inventories and containers ...
827
C++
.h
25
27.96
99
0.704172
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,850
cellid.hpp
OpenMW_openmw/components/esm3/cellid.hpp
#ifndef OPENMW_ESM_CELLID_H #define OPENMW_ESM_CELLID_H #include <components/esm/refid.hpp> #include <cstdint> #include <string> namespace ESM { class ESMReader; class ESMWriter; struct CellId { struct CellIndex { int32_t mX; int32_t mY; }; std...
837
C++
.h
29
22.896552
104
0.65625
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,851
spellstate.hpp
OpenMW_openmw/components/esm3/spellstate.hpp
#ifndef OPENMW_ESM_SPELLSTATE_H #define OPENMW_ESM_SPELLSTATE_H #include <map> #include <set> #include <string> #include <vector> #include "components/esm/defs.hpp" #include "components/esm/refid.hpp" #include "timestamp.hpp" namespace ESM { class ESMReader; class ESMWriter; class RefId; // NOTE: sp...
1,346
C++
.h
45
22.955556
97
0.640031
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,852
loadmisc.hpp
OpenMW_openmw/components/esm3/loadmisc.hpp
#ifndef OPENMW_ESM_MISC_H #define OPENMW_ESM_MISC_H #include <string> #include "components/esm/defs.hpp" #include "components/esm/refid.hpp" namespace ESM { class ESMReader; class ESMWriter; /* * Misc inventory items, basically things that have no use but can be * carried, bought and sold. It...
1,237
C++
.h
39
24.666667
108
0.633755
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,853
loadsscr.hpp
OpenMW_openmw/components/esm3/loadsscr.hpp
#ifndef OPENMW_ESM_SSCR_H #define OPENMW_ESM_SSCR_H #include <string> #include "components/esm/defs.hpp" #include "components/esm/refid.hpp" namespace ESM { class ESMReader; class ESMWriter; /* Startup script. I think this is simply a 'main' script that is run from the begining. The SSCR reco...
1,077
C++
.h
31
29.064516
108
0.68599
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,854
magiceffects.hpp
OpenMW_openmw/components/esm3/magiceffects.hpp
#ifndef COMPONENTS_ESM_MAGICEFFECTS_H #define COMPONENTS_ESM_MAGICEFFECTS_H #include <components/esm/refid.hpp> #include <map> #include <string> #include <tuple> namespace ESM { class ESMReader; class ESMWriter; // format 0, saved games only struct MagicEffects { // <Effect Id, Base valu...
1,246
C++
.h
44
22.25
78
0.648195
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,855
timestamp.hpp
OpenMW_openmw/components/esm3/timestamp.hpp
#ifndef OPENMW_COMPONENTS_ESM3_TIMESTAMP_H #define OPENMW_COMPONENTS_ESM3_TIMESTAMP_H #include <cstdint> #include <components/esm/esmcommon.hpp> namespace ESM { class ESMReader; struct TimeStamp { float mHour; int32_t mDay; void load(ESMReader& esm, NAME name = "TIME"); }; }...
329
C++
.h
15
17.866667
54
0.701299
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,856
creaturelevliststate.hpp
OpenMW_openmw/components/esm3/creaturelevliststate.hpp
#ifndef OPENMW_ESM_CREATURELEVLISTSTATE_H #define OPENMW_ESM_CREATURELEVLISTSTATE_H #include "objectstate.hpp" namespace ESM { // format 0, saved games only struct CreatureLevListState final : public ObjectState { int32_t mSpawnActorId; bool mSpawn; void load(ESMReader& esm) over...
596
C++
.h
17
29.941176
93
0.731239
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,857
loadsoun.hpp
OpenMW_openmw/components/esm3/loadsoun.hpp
#ifndef OPENMW_ESM_SOUN_H #define OPENMW_ESM_SOUN_H #include <string> #include "components/esm/defs.hpp" #include "components/esm/refid.hpp" namespace ESM { class ESMReader; class ESMWriter; struct SOUNstruct { unsigned char mVolume, mMinRange, mMaxRange; }; struct Sound { ...
887
C++
.h
29
24.827586
108
0.668632
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,858
loadweap.hpp
OpenMW_openmw/components/esm3/loadweap.hpp
#ifndef OPENMW_ESM_WEAP_H #define OPENMW_ESM_WEAP_H #include <array> #include <string> #include "components/esm/refid.hpp" namespace ESM { class ESMReader; class ESMWriter; /* * Weapon definition */ struct Weapon { constexpr static RecNameInts sRecordId = REC_WEAP; /...
3,423
C++
.h
113
20.353982
117
0.53769
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,859
savedgame.hpp
OpenMW_openmw/components/esm3/savedgame.hpp
#ifndef OPENMW_ESM_SAVEDGAME_H #define OPENMW_ESM_SAVEDGAME_H #include <string> #include <vector> #include "components/esm/defs.hpp" #include "components/esm/refid.hpp" namespace ESM { class ESMReader; class ESMWriter; // format 0, saved games only struct SavedGame { constexpr static Re...
1,296
C++
.h
37
28.540541
116
0.676282
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,860
loadrepa.hpp
OpenMW_openmw/components/esm3/loadrepa.hpp
#ifndef OPENMW_ESM_REPA_H #define OPENMW_ESM_REPA_H #include <string> #include "components/esm/defs.hpp" #include "components/esm/refid.hpp" namespace ESM { class ESMReader; class ESMWriter; struct Repair { constexpr static RecNameInts sRecordId = REC_REPA; /// Return a string desc...
978
C++
.h
32
23.5625
108
0.627409
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,861
validate.hpp
OpenMW_openmw/components/fallback/validate.hpp
#ifndef OPENMW_COMPONENTS_FALLBACK_VALIDATE_H #define OPENMW_COMPONENTS_FALLBACK_VALIDATE_H #include <map> #include <string> #include <vector> namespace boost { class any; } namespace Fallback { bool isAllowedIntFallbackKey(std::string_view key); bool isAllowedFloatFallbackKey(std::string_view key); ...
874
C++
.h
25
31.44
100
0.747031
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,862
fallback.hpp
OpenMW_openmw/components/fallback/fallback.hpp
#ifndef OPENMW_COMPONENTS_FALLBACK_H #define OPENMW_COMPONENTS_FALLBACK_H #include <map> #include <string> #include <string_view> #include <osg/Vec4f> namespace Fallback { /// @brief contains settings imported from the Morrowind INI file. class Map { static std::map<std::string, int, std::less<>>...
1,278
C++
.h
30
36.6
115
0.681159
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,863
processinvoker.hpp
OpenMW_openmw/components/process/processinvoker.hpp
#ifndef PROCESSINVOKER_HPP #define PROCESSINVOKER_HPP #include <QProcess> #include <QString> #include <QStringList> namespace Process { class ProcessInvoker : public QObject { Q_OBJECT public: ProcessInvoker(QObject* parent = nullptr); ~ProcessInvoker(); // void se...
1,299
C++
.h
36
29.305556
119
0.66267
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,864
stream.hpp
OpenMW_openmw/components/bgsm/stream.hpp
#ifndef OPENMW_COMPONENTS_BGSM_STREAM_HPP #define OPENMW_COMPONENTS_BGSM_STREAM_HPP #include <array> #include <cassert> #include <cstdint> #include <istream> #include <stdexcept> #include <string> #include <type_traits> #include <components/files/istreamptr.hpp> #include <components/misc/endianness.hpp> #include <os...
2,236
C++
.h
65
28.107692
110
0.639648
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,865
file.hpp
OpenMW_openmw/components/bgsm/file.hpp
#ifndef OPENMW_COMPONENTS_BGSM_FILE_HPP #define OPENMW_COMPONENTS_BGSM_FILE_HPP #include <cstdint> #include <memory> #include <string> #include <string_view> #include <osg/Vec2f> #include <osg/Vec3f> #include <osg/Vec4f> #include <components/files/istreamptr.hpp> namespace Bgsm { class BGSMStream; enum cla...
4,861
C++
.h
157
22.974522
70
0.662332
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,866
box.hpp
OpenMW_openmw/components/widgets/box.hpp
#ifndef OPENMW_WIDGETS_BOX_H #define OPENMW_WIDGETS_BOX_H #include <MyGUI_Button.h> #include <MyGUI_ComboBox.h> #include <MyGUI_EditBox.h> #include <MyGUI_TextBox.h> #include <MyGUI_Widget.h> #include "fontwrapper.hpp" namespace Gui { class Button : public FontWrapper<MyGUI::Button> { MYGUI_RTTI_DERI...
4,215
C++
.h
122
27.622951
90
0.667819
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
true
false
35,867
widgets.hpp
OpenMW_openmw/components/widgets/widgets.hpp
#ifndef OPENMW_COMPONENTS_WIDGETS_H #define OPENMW_COMPONENTS_WIDGETS_H extern int GuiFontHeight; namespace Gui { /// Register all widgets from this component with MyGUI's factory manager. void registerAllWidgets(); } #endif
237
C++
.h
9
24
78
0.803571
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,868
imagebutton.hpp
OpenMW_openmw/components/widgets/imagebutton.hpp
#ifndef OPENMW_COMPONENTS_WIDGETS_IMAGEBUTTON_H #define OPENMW_COMPONENTS_WIDGETS_IMAGEBUTTON_H #include <MyGUI_ImageBox.h> namespace Gui { /** * @brief allows using different image textures depending on the button state */ class ImageButton final : public MyGUI::ImageBox { MYGUI_RTTI_D...
1,621
C++
.h
41
32.341463
106
0.694373
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,869
numericeditbox.hpp
OpenMW_openmw/components/widgets/numericeditbox.hpp
#ifndef OPENMW_NUMERIC_EDIT_BOX_H #define OPENMW_NUMERIC_EDIT_BOX_H #include <MyGUI_EditBox.h> #include "fontwrapper.hpp" namespace Gui { /** * @brief A variant of the EditBox that only allows integer inputs */ class NumericEditBox final : public FontWrapper<MyGUI::EditBox> { MYGUI_RTT...
1,253
C++
.h
38
25.763158
84
0.660283
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
true
false
35,870
sharedstatebutton.hpp
OpenMW_openmw/components/widgets/sharedstatebutton.hpp
#ifndef OPENMW_WIDGETS_SHAREDSTATEBUTTON_HPP #define OPENMW_WIDGETS_SHAREDSTATEBUTTON_HPP #include <MyGUI_Button.h> #include "fontwrapper.hpp" namespace Gui { class SharedStateButton; typedef std::vector<SharedStateButton*> ButtonGroup; /// @brief A button that applies its own state changes to other w...
1,482
C++
.h
37
33.513514
114
0.712185
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,871
fontwrapper.hpp
OpenMW_openmw/components/widgets/fontwrapper.hpp
#ifndef OPENMW_WIDGETS_WRAPPER_H #define OPENMW_WIDGETS_WRAPPER_H #include <MyGUI_Prerequest.h> #include "components/settings/values.hpp" #include <string> namespace Gui { /// Wrapper to tell UI element to use font size from settings.cfg template <class T> class FontWrapper : public T { public: ...
541
C++
.h
20
22.2
92
0.680233
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,872
windowcaption.hpp
OpenMW_openmw/components/widgets/windowcaption.hpp
#ifndef OPENMW_WIDGETS_WINDOWCAPTION_H #define OPENMW_WIDGETS_WINDOWCAPTION_H #include <MyGUI_EditBox.h> namespace Gui { /// Window caption that automatically adjusts "Left" and "Right" widgets in its skin /// based on the text size of the caption in the middle class WindowCaption final : public MyGUI::E...
794
C++
.h
24
27.208333
88
0.687254
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,873
tags.hpp
OpenMW_openmw/components/widgets/tags.hpp
#ifndef OPENMW_WIDGETS_TAGS_H #define OPENMW_WIDGETS_TAGS_H #include <MyGUI_UString.h> #include <string_view> namespace Gui { /// Try to replace a tag. Returns true on success and writes the result to \a out. bool replaceTag(std::string_view tag, MyGUI::UString& out); } #endif
291
C++
.h
10
26.8
86
0.75
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,874
list.hpp
OpenMW_openmw/components/widgets/list.hpp
#ifndef OPENMW_COMPONENTS_WIDGETS_LIST_HPP #define OPENMW_COMPONENTS_WIDGETS_LIST_HPP #include <MyGUI_ScrollView.h> namespace Gui { /** * \brief a very simple list widget that supports word-wrapping entries * \note if the width or height of the list changes, you must call adjustSize() method */ ...
2,295
C++
.h
56
32.392857
120
0.638614
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,875
macospath.hpp
OpenMW_openmw/components/files/macospath.hpp
#ifndef COMPONENTS_FILES_MACOSPATH_H #define COMPONENTS_FILES_MACOSPATH_H #if defined(macintosh) || defined(Macintosh) || defined(__APPLE__) || defined(__MACH__) #include <filesystem> /** * \namespace Files */ namespace Files { /** * \struct MacOsPath */ struct MacOsPath { MacOsPath(...
1,605
C++
.h
53
22.792453
96
0.578399
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,876
constrainedfilestream.hpp
OpenMW_openmw/components/files/constrainedfilestream.hpp
#ifndef OPENMW_CONSTRAINEDFILESTREAM_H #define OPENMW_CONSTRAINEDFILESTREAM_H #include "constrainedfilestreambuf.hpp" #include "istreamptr.hpp" #include "streamwithbuffer.hpp" #include <limits> #include <string> namespace Files { /// A file stream constrained to a specific region in the file, specified by the '...
616
C++
.h
15
38.266667
117
0.782828
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,877
streamwithbuffer.hpp
OpenMW_openmw/components/files/streamwithbuffer.hpp
#ifndef OPENMW_COMPONENTS_FILES_STREAMWITHBUFFER_H #define OPENMW_COMPONENTS_FILES_STREAMWITHBUFFER_H #include <istream> #include <memory> namespace Files { template <class Buffer> class StreamWithBuffer final : public std::istream { public: explicit StreamWithBuffer(std::unique_ptr<Buffer>&& ...
502
C++
.h
20
19.9
67
0.669456
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,878
hash.hpp
OpenMW_openmw/components/files/hash.hpp
#ifndef COMPONENTS_FILES_HASH_H #define COMPONENTS_FILES_HASH_H #include <array> #include <cstdint> #include <iosfwd> #include <string_view> namespace Files { std::array<std::uint64_t, 2> getHash(std::string_view fileName, std::istream& stream); } #endif
262
C++
.h
11
22.181818
90
0.766129
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,879
collections.hpp
OpenMW_openmw/components/files/collections.hpp
#ifndef COMPONENTS_FILES_COLLECTION_HPP #define COMPONENTS_FILES_COLLECTION_HPP #include <filesystem> #include "multidircollection.hpp" namespace Files { class Collections { public: Collections(); ///< Directories are listed with increasing priority. Collections(const Files::Path...
1,273
C++
.h
31
34.419355
89
0.693745
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,880
openfile.hpp
OpenMW_openmw/components/files/openfile.hpp
#ifndef OPENMW_COMPONENTS_FILES_OPENFILE_H #define OPENMW_COMPONENTS_FILES_OPENFILE_H #include <filesystem> #include <iosfwd> #include <memory> #include <string> namespace Files { std::unique_ptr<std::ifstream> openBinaryInputFileStream(const std::filesystem::path& path); } #endif
289
C++
.h
11
24.636364
96
0.803636
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,881
configurationmanager.hpp
OpenMW_openmw/components/files/configurationmanager.hpp
#ifndef COMPONENTS_FILES_CONFIGURATIONMANAGER_HPP #define COMPONENTS_FILES_CONFIGURATIONMANAGER_HPP #include <map> #include <optional> #include <stack> #include <string_view> #include <components/files/collections.hpp> #include <components/files/fixedpath.hpp> namespace boost::program_options { class options_des...
4,242
C++
.h
78
47.576923
119
0.726701
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,882
multidircollection.hpp
OpenMW_openmw/components/files/multidircollection.hpp
#ifndef COMPONENTS_FILES_MULTIDIRSOLLECTION_HPP #define COMPONENTS_FILES_MULTIDIRSOLLECTION_HPP #include <cctype> #include <filesystem> #include <map> #include <string> #include <vector> #include <components/misc/strings/algorithm.hpp> namespace Files { typedef std::vector<std::filesystem::path> PathContainer; ...
1,751
C++
.h
43
34.813953
99
0.690631
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,883
constrainedfilestreambuf.hpp
OpenMW_openmw/components/files/constrainedfilestreambuf.hpp
#ifndef OPENMW_CONSTRAINEDFILESTREAMBUF_H #define OPENMW_CONSTRAINEDFILESTREAMBUF_H #include <filesystem> #include <streambuf> #include <components/platform/file.hpp> namespace Files { /// A file streambuf constrained to a specific region in the file, specified by the 'start' and 'length' parameters. class C...
890
C++
.h
23
33.521739
120
0.712456
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,884
fixedpath.hpp
OpenMW_openmw/components/files/fixedpath.hpp
#ifndef COMPONENTS_FILES_FIXEDPATH_HPP #define COMPONENTS_FILES_FIXEDPATH_HPP #include <filesystem> #include <string> #if defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) #ifndef ANDROID #include <components/files/linuxpath.hpp> namespace Files { typedef LinuxPath ...
3,267
C++
.h
92
29.532609
101
0.667089
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,885
istreamptr.hpp
OpenMW_openmw/components/files/istreamptr.hpp
#ifndef OPENMW_COMPONENTS_FILES_ISTREAMPTR_H #define OPENMW_COMPONENTS_FILES_ISTREAMPTR_H #include <iosfwd> #include <memory> namespace Files { using IStreamPtr = std::unique_ptr<std::istream>; } #endif
210
C++
.h
9
21.555556
53
0.79798
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,886
androidpath.hpp
OpenMW_openmw/components/files/androidpath.hpp
#ifndef COMPONENTS_FILES_ANDROIDPATH_H #define COMPONENTS_FILES_ANDROIDPATH_H #if defined(__ANDROID__) #include <filesystem> /** * \namespace Files */ namespace Files { struct AndroidPath { AndroidPath(const std::string& application_name); /** * \brief Return path to the user dir...
1,283
C++
.h
39
25.974359
96
0.628455
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
true
false
35,887
configfileparser.hpp
OpenMW_openmw/components/files/configfileparser.hpp
#ifndef COMPONENTS_FILES_CONFIGFILEPARSER_HPP #define COMPONENTS_FILES_CONFIGFILEPARSER_HPP #include <boost/program_options/parsers.hpp> namespace Files { namespace bpo = boost::program_options; template <class charT> bpo::basic_parsed_options<charT> parse_config_file( std::basic_istream<charT>&...
440
C++
.h
11
36.727273
102
0.78066
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,888
linuxpath.hpp
OpenMW_openmw/components/files/linuxpath.hpp
#ifndef COMPONENTS_FILES_LINUXPATH_H #define COMPONENTS_FILES_LINUXPATH_H #if defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) #include <filesystem> /** * \namespace Files */ namespace Files { /** * \struct LinuxPath */ struct LinuxPath { ...
1,604
C++
.h
46
27.782609
110
0.610499
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,889
windowspath.hpp
OpenMW_openmw/components/files/windowspath.hpp
#ifndef COMPONENTS_FILES_WINDOWSPATH_HPP #define COMPONENTS_FILES_WINDOWSPATH_HPP #if defined(_WIN32) || defined(__WINDOWS__) #include <filesystem> /** * \namespace Files */ namespace Files { /** * \struct WindowsPath */ struct WindowsPath { /** * \brief WindowsPath construc...
1,905
C++
.h
64
21.875
83
0.567908
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,890
qtconversion.hpp
OpenMW_openmw/components/files/qtconversion.hpp
#ifndef COMPONENTS_FILES_QTCONVERSION_HPP #define COMPONENTS_FILES_QTCONVERSION_HPP #include <QString> #include <filesystem> namespace Files { QString pathToQString(const std::filesystem::path& path); QString pathToQString(std::filesystem::path&& path); std::filesystem::path pathFromQString(QStringView ...
434
C++
.h
12
33.333333
61
0.790865
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,891
conversion.hpp
OpenMW_openmw/components/files/conversion.hpp
#ifndef COMPONENTS_FILES_CONVERSION_HPP #define COMPONENTS_FILES_CONVERSION_HPP #include <filesystem> namespace Files { std::string pathToUnicodeString(const std::filesystem::path& path); std::string pathToUnicodeString(std::filesystem::path&& path); std::filesystem::path pathFromUnicodeString(std::stri...
528
C++
.h
12
40.75
71
0.789784
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,892
memorystream.hpp
OpenMW_openmw/components/files/memorystream.hpp
#ifndef OPENMW_COMPONENTS_FILES_MEMORYSTREAM_H #define OPENMW_COMPONENTS_FILES_MEMORYSTREAM_H #include <istream> namespace Files { struct MemBuf : std::streambuf { MemBuf(char const* buffer, size_t size) // a streambuf isn't specific to istreams, so we need a non-const pointer :/ ...
1,424
C++
.h
41
26.268293
106
0.595047
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,893
qtconfigpath.hpp
OpenMW_openmw/components/files/qtconfigpath.hpp
#ifndef OPENMW_COMPONENTS_FILES_QTCONFIGPATH_H #define OPENMW_COMPONENTS_FILES_QTCONFIGPATH_H #include "configurationmanager.hpp" #include "qtconversion.hpp" #include <QString> namespace Files { inline QString getLocalConfigPathQString(const Files::ConfigurationManager& cfgMgr) { return Files::pathTo...
1,187
C++
.h
30
34.2
93
0.749565
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,894
streamerrorhandler.hpp
OpenMW_openmw/components/compiler/streamerrorhandler.hpp
#ifndef COMPILER_STREAMERRORHANDLER_H_INCLUDED #define COMPILER_STREAMERRORHANDLER_H_INCLUDED #include "errorhandler.hpp" namespace Compiler { class ContextOverride; /// \brief Error handler implementation: Write errors into logging stream class StreamErrorHandler : public ErrorHandler { std:...
1,297
C++
.h
36
29.277778
89
0.696629
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,895
locals.hpp
OpenMW_openmw/components/compiler/locals.hpp
#ifndef COMPILER_LOCALS_H_INCLUDED #define COMPILER_LOCALS_H_INCLUDED #include <iosfwd> #include <string> #include <string_view> #include <vector> namespace Compiler { /// \brief Local variable declarations class Locals { std::vector<std::string> mShorts; std::vector<std::string> mLongs; ...
1,236
C++
.h
34
29.911765
90
0.631623
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,896
scanner.hpp
OpenMW_openmw/components/compiler/scanner.hpp
#ifndef COMPILER_SCANNER_H_INCLUDED #define COMPILER_SCANNER_H_INCLUDED #include <cctype> #include <iosfwd> #include <istream> #include <string> #include <vector> #include "tokenloc.hpp" namespace Compiler { class ErrorHandler; class Parser; class Extensions; /// \brief Scanner /// /// This ...
8,133
C++
.h
254
21.318898
111
0.493279
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,897
fileparser.hpp
OpenMW_openmw/components/compiler/fileparser.hpp
#ifndef COMPILER_FILEPARSER_H_INCLUDED #define COMPILER_FILEPARSER_H_INCLUDED #include "locals.hpp" #include "parser.hpp" #include "scriptparser.hpp" namespace Compiler { // Top-level parser, to be used for global scripts, local scripts and targeted scripts class FileParser : public Parser { enum...
1,496
C++
.h
43
27.162791
96
0.644444
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,898
generator.hpp
OpenMW_openmw/components/compiler/generator.hpp
#ifndef COMPILER_GENERATOR_H_INCLUDED #define COMPILER_GENERATOR_H_INCLUDED #include <cassert> #include <string> #include <vector> #include <components/interpreter/types.hpp> namespace Compiler { class Literals; namespace Generator { typedef std::vector<Interpreter::Type_Code> CodeContainer; ...
3,670
C++
.h
72
41.972222
110
0.65788
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,899
declarationparser.hpp
OpenMW_openmw/components/compiler/declarationparser.hpp
#ifndef COMPILER_DECLARATIONPARSER_H_INCLUDED #define COMPILER_DECLARATIONPARSER_H_INCLUDED #include "parser.hpp" namespace Compiler { class Locals; class DeclarationParser : public Parser { enum State { State_Begin, State_Name, State_End }; ...
1,214
C++
.h
35
27.2
96
0.642123
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,900
output.hpp
OpenMW_openmw/components/compiler/output.hpp
#ifndef COMPILER_OUTPUT_H_INCLUDED #define COMPILER_OUTPUT_H_INCLUDED #include "literals.hpp" #include <vector> #include <components/interpreter/program.hpp> #include <components/interpreter/types.hpp> namespace Compiler { class Locals; class Output { Literals mLiterals; std::vector<Int...
786
C++
.h
27
23.259259
67
0.677419
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,901
extensions.hpp
OpenMW_openmw/components/compiler/extensions.hpp
#ifndef COMPILER_EXTENSIONS_H_INCLUDED #define COMPILER_EXTENSIONS_H_INCLUDED #include <map> #include <string> #include <vector> #include <components/interpreter/types.hpp> namespace Compiler { class Literals; /// Typedef for script arguments string /** Every character reperesents an argument to the com...
4,426
C++
.h
93
39.290323
120
0.658322
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,902
stringparser.hpp
OpenMW_openmw/components/compiler/stringparser.hpp
#ifndef COMPILER_STRINGPARSER_H_INCLUDED #define COMPILER_STRINGPARSER_H_INCLUDED #include <vector> #include <components/interpreter/types.hpp> #include "parser.hpp" #include "tokenloc.hpp" namespace Compiler { class Literals; class StringParser : public Parser { Literals& mLiterals; st...
1,686
C++
.h
42
33.166667
96
0.667281
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,903
skipparser.hpp
OpenMW_openmw/components/compiler/skipparser.hpp
#ifndef COMPILER_SKIPPARSER_H_INCLUDED #define COMPILER_SKIPPARSER_H_INCLUDED #include "parser.hpp" namespace Compiler { // \brief Skip parser for skipping a line // // This parser is mainly intended for skipping the rest of a faulty line. class SkipParser : public Parser { bool mReportSt...
1,362
C++
.h
32
35.84375
106
0.679303
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,904
nullerrorhandler.hpp
OpenMW_openmw/components/compiler/nullerrorhandler.hpp
#ifndef COMPILER_NULLERRORHANDLER_H_INCLUDED #define COMPILER_NULLERRORHANDLER_H_INCLUDED #include "errorhandler.hpp" namespace Compiler { /// \brief Error handler implementation: Ignore all error messages class NullErrorHandler : public ErrorHandler { void report(const std::string& message, cons...
525
C++
.h
15
30.466667
89
0.726733
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,905
context.hpp
OpenMW_openmw/components/compiler/context.hpp
#ifndef COMPILER_CONTEXT_H_INCLUDED #define COMPILER_CONTEXT_H_INCLUDED #include <string> namespace ESM { class RefId; } namespace Compiler { class Extensions; class Context { const Extensions* mExtensions; public: Context() : mExtensions(nullptr) { } ...
1,283
C++
.h
35
30.171429
109
0.630259
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,906
exprparser.hpp
OpenMW_openmw/components/compiler/exprparser.hpp
#ifndef COMPILER_EXPRPARSER_H_INCLUDED #define COMPILER_EXPRPARSER_H_INCLUDED #include <vector> #include <components/interpreter/types.hpp> #include "parser.hpp" #include "tokenloc.hpp" namespace Compiler { class Locals; class Literals; class ExprParser : public Parser { Locals& mLocals; ...
3,292
C++
.h
78
34.038462
117
0.649073
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,907
extensions0.hpp
OpenMW_openmw/components/compiler/extensions0.hpp
#ifndef COMPILER_EXTENSIONS0_H #define COMPILER_EXTENSIONS0_H namespace Compiler { class Extensions; void registerExtensions(Extensions& extensions, bool consoleOnly = false); namespace Ai { void registerExtensions(Extensions& extensions); } namespace Animation { void reg...
1,470
C++
.h
64
17.203125
78
0.683225
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
true
false
true
true
true
false
35,908
exception.hpp
OpenMW_openmw/components/compiler/exception.hpp
#ifndef COMPILER_EXCEPTION_H_INCLUDED #define COMPILER_EXCEPTION_H_INCLUDED #include <exception> namespace Compiler { /// \brief Exception: Error while parsing the source class SourceException : public std::exception { public: const char* what() const noexcept override { return "Compile error...
842
C++
.h
28
24.928571
80
0.672457
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,909
parser.hpp
OpenMW_openmw/components/compiler/parser.hpp
#ifndef COMPILER_PARSER_H_INCLUDED #define COMPILER_PARSER_H_INCLUDED #include <string> namespace Compiler { class Scanner; struct TokenLoc; class ErrorHandler; class Context; /// \brief Parser base class /// /// This class defines a callback-parser. class Parser { ErrorH...
3,256
C++
.h
81
32.185185
101
0.62742
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,910
scriptparser.hpp
OpenMW_openmw/components/compiler/scriptparser.hpp
#ifndef COMPILER_SCRIPTPARSER_H_INCLUDED #define COMPILER_SCRIPTPARSER_H_INCLUDED #include "controlparser.hpp" #include "lineparser.hpp" #include "output.hpp" #include "parser.hpp" namespace Compiler { class Locals; // Script parser, to be used in dialogue scripts and as part of FileParser class ScriptP...
1,378
C++
.h
36
31.833333
107
0.678195
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,911
opcodes.hpp
OpenMW_openmw/components/compiler/opcodes.hpp
#ifndef COMPILER_OPCODES_H #define COMPILER_OPCODES_H namespace Compiler { namespace Ai { const int opcodeAiTravel = 0x20000; const int opcodeAiTravelExplicit = 0x20001; const int opcodeAiEscort = 0x20002; const int opcodeAiEscortExplicit = 0x20003; const int opcodeGetAi...
24,513
C++
.h
511
39.315068
66
0.720182
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,912
literals.hpp
OpenMW_openmw/components/compiler/literals.hpp
#ifndef COMPILER_LITERALS_H_INCLUDED #define COMPILER_LITERALS_H_INCLUDED #include <string> #include <vector> #include <components/interpreter/types.hpp> namespace Compiler { /// \brief Literal values. class Literals { std::vector<Interpreter::Type_Integer> mIntegers; std::vector<Interpr...
1,058
C++
.h
28
31.642857
95
0.676817
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,913
lineparser.hpp
OpenMW_openmw/components/compiler/lineparser.hpp
#ifndef COMPILER_LINEPARSER_H_INCLUDED #define COMPILER_LINEPARSER_H_INCLUDED #include <string> #include <vector> #include <components/interpreter/types.hpp> #include <components/misc/messageformatparser.hpp> #include "exprparser.hpp" #include "parser.hpp" namespace Compiler { class Locals; class Literals; ...
3,149
C++
.h
85
28.764706
106
0.648276
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,914
errorhandler.hpp
OpenMW_openmw/components/compiler/errorhandler.hpp
#ifndef COMPILER_ERRORHANDLER_H_INCLUDED #define COMPILER_ERRORHANDLER_H_INCLUDED #include <string> namespace Compiler { struct TokenLoc; /// \brief Error handling /// /// This class collects errors and provides an interface for reporting them to the user. class ErrorHandler { int mW...
2,064
C++
.h
64
24.484375
92
0.621266
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,915
discardparser.hpp
OpenMW_openmw/components/compiler/discardparser.hpp
#ifndef COMPILER_DISCARDPARSER_H_INCLUDED #define COMPILER_DISCARDPARSER_H_INCLUDED #include "parser.hpp" #include "tokenloc.hpp" namespace Compiler { /// \brief Parse a single optional numeric value or string and discard it class DiscardParser : public Parser { enum State { St...
1,445
C++
.h
38
30.736842
96
0.654728
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,916
quickfileparser.hpp
OpenMW_openmw/components/compiler/quickfileparser.hpp
#ifndef COMPILER_QUICKFILEPARSER_H_INCLUDED #define COMPILER_QUICKFILEPARSER_H_INCLUDED #include "declarationparser.hpp" #include "parser.hpp" namespace Compiler { class Locals; /// \brief File parser variant that ignores everything but variable declarations class QuickFileParser : public Parser { ...
1,083
C++
.h
27
34.037037
96
0.702006
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,917
junkparser.hpp
OpenMW_openmw/components/compiler/junkparser.hpp
#ifndef COMPILER_JUNKPARSER_H_INCLUDED #define COMPILER_JUNKPARSER_H_INCLUDED #include "parser.hpp" namespace Compiler { /// \brief Parse an optional single junk token class JunkParser : public Parser { int mIgnoreKeyword; public: JunkParser(ErrorHandler& errorHandler, const Context& ...
1,206
C++
.h
29
34.896552
96
0.671233
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,918
tokenloc.hpp
OpenMW_openmw/components/compiler/tokenloc.hpp
#ifndef COMPILER_TOKENLOC_H_INCLUDED #define COMPILER_TOKENLOC_H_INCLUDED #include <string> namespace Compiler { /// \brief Location of a token in a source file struct TokenLoc { int mColumn; int mLine; std::string mLiteral; TokenLoc() : mColumn(0) ...
417
C++
.h
20
14.6
51
0.579082
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,919
controlparser.hpp
OpenMW_openmw/components/compiler/controlparser.hpp
#ifndef COMPILER_CONTROLPARSER_H_INCLUDED #define COMPILER_CONTROLPARSER_H_INCLUDED #include <vector> #include <components/interpreter/types.hpp> #include "exprparser.hpp" #include "lineparser.hpp" #include "parser.hpp" namespace Compiler { class Locals; class Literals; // Control structure parser ...
2,100
C++
.h
59
27.457627
110
0.646739
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
true
false
35,920
protocol.hpp
OpenMW_openmw/components/navmeshtool/protocol.hpp
#ifndef OPENMW_COMPONENTS_NAVMESHTOOL_PROTOCOL_H #define OPENMW_COMPONENTS_NAVMESHTOOL_PROTOCOL_H #include <cstddef> #include <cstdint> #include <stdexcept> #include <variant> #include <vector> namespace NavMeshTool { inline constexpr char messageMagic[] = { 'n', 'v', 't', 'm' }; enum class MessageType : std...
1,742
C++
.h
52
27.884615
100
0.68638
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,921
scripttracker.hpp
OpenMW_openmw/components/lua/scripttracker.hpp
#ifndef COMPONENTS_LUA_SCRIPTTRACKER_H #define COMPONENTS_LUA_SCRIPTTRACKER_H #include <memory> #include <queue> #include <utility> #include "scriptscontainer.hpp" namespace LuaUtil { class ScriptTracker { using Frame = unsigned int; using TrackedScriptContainer = std::pair<ScriptsContainer::...
655
C++
.h
21
26.428571
83
0.722488
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,922
utilpackage.hpp
OpenMW_openmw/components/lua/utilpackage.hpp
#ifndef COMPONENTS_LUA_UTILPACKAGE_H #define COMPONENTS_LUA_UTILPACKAGE_H #include <osg/Matrix> #include <osg/Quat> #include <osg/Vec2> #include <osg/Vec3> #include <osg/Vec4> #include <sol/sol.hpp> namespace LuaUtil { using Vec2 = osg::Vec2f; using Vec3 = osg::Vec3f; using Vec4 = osg::Vec4f; // For...
998
C++
.h
38
21.789474
93
0.668067
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,923
storage.hpp
OpenMW_openmw/components/lua/storage.hpp
#ifndef COMPONENTS_LUA_STORAGE_H #define COMPONENTS_LUA_STORAGE_H #include <map> #include <sol/sol.hpp> #include <stdexcept> #include "asyncpackage.hpp" #include "serialization.hpp" namespace LuaUtil { class LuaView; class LuaStorage { public: static void initLuaBindings(LuaUtil::LuaView& vi...
4,826
C++
.h
115
31.391304
120
0.607333
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,924
scriptscontainer.hpp
OpenMW_openmw/components/lua/scriptscontainer.hpp
#ifndef COMPONENTS_LUA_SCRIPTSCONTAINER_H #define COMPONENTS_LUA_SCRIPTSCONTAINER_H #include <map> #include <set> #include <string> #include <variant> #include <components/debug/debuglog.hpp> #include <components/esm/luascripts.hpp> #include "luastate.hpp" #include "serialization.hpp" namespace LuaUtil { class ...
14,131
C++
.h
254
46.586614
120
0.659842
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,925
serialization.hpp
OpenMW_openmw/components/lua/serialization.hpp
#ifndef COMPONENTS_LUA_SERIALIZATION_H #define COMPONENTS_LUA_SERIALIZATION_H #include <sol/sol.hpp> #include <components/esm3/cellref.hpp> namespace LuaUtil { // Note: it can contain \0 using BinaryData = std::string; class UserdataSerializer { public: virtual ~UserdataSerializer() {} ...
2,293
C++
.h
44
45.590909
112
0.720233
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,926
inputactions.hpp
OpenMW_openmw/components/lua/inputactions.hpp
#ifndef COMPONENTS_LUA_INPUTACTIONS #define COMPONENTS_LUA_INPUTACTIONS #include <string> #include <string_view> #include <unordered_map> #include <vector> #include <sol/sol.hpp> #include <components/lua/asyncpackage.hpp> #include <components/lua/scriptscontainer.hpp> #include <components/misc/algorithm.hpp> namesp...
4,229
C++
.h
132
24
120
0.594118
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,927
configuration.hpp
OpenMW_openmw/components/lua/configuration.hpp
#ifndef COMPONENTS_LUA_CONFIGURATION_H #define COMPONENTS_LUA_CONFIGURATION_H #include <map> #include <optional> #include <components/esm/luascripts.hpp> #include <components/esm3/refnum.hpp> #include <components/vfs/pathutil.hpp> namespace LuaUtil { using ScriptIdsWithInitializationData = std::map<int, std::str...
2,084
C++
.h
42
42.833333
115
0.71337
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,928
utf8.hpp
OpenMW_openmw/components/lua/utf8.hpp
#ifndef COMPONENTS_LUA_UTF8_H #define COMPONENTS_LUA_UTF8_H #include <sol/sol.hpp> namespace LuaUtf8 { sol::table initUtf8Package(sol::state_view&); } #endif
165
C++
.h
8
18.75
49
0.779221
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,929
yamlloader.hpp
OpenMW_openmw/components/lua/yamlloader.hpp
#ifndef COMPONENTS_LUA_YAMLLOADER_H #define COMPONENTS_LUA_YAMLLOADER_H #include <iosfwd> #include <string> #include <sol/forward.hpp> namespace LuaUtil { sol::object loadYaml(const std::string& input, const sol::state_view& lua); sol::object loadYaml(std::istream& input, const sol::state_view& lua); } #en...
355
C++
.h
11
30.090909
79
0.764012
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,930
asyncpackage.hpp
OpenMW_openmw/components/lua/asyncpackage.hpp
#ifndef COMPONENTS_LUA_ASYNCPACKAGE_H #define COMPONENTS_LUA_ASYNCPACKAGE_H #include "scriptscontainer.hpp" namespace LuaUtil { struct AsyncPackageId { ScriptsContainer* mContainer; int mScriptId; sol::table mHiddenData; }; sol::function getAsyncPackageInitializer( lua_...
2,064
C++
.h
51
31.27451
117
0.617456
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,931
l10n.hpp
OpenMW_openmw/components/lua/l10n.hpp
#ifndef COMPONENTS_LUA_L10N_H #define COMPONENTS_LUA_L10N_H #include <sol/sol.hpp> namespace l10n { class Manager; } namespace LuaUtil { sol::function initL10nLoader(lua_State*, l10n::Manager* manager); } #endif // COMPONENTS_LUA_L10N_H
249
C++
.h
12
18.75
69
0.76824
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,932
luastate.hpp
OpenMW_openmw/components/lua/luastate.hpp
#ifndef COMPONENTS_LUA_LUASTATE_H #define COMPONENTS_LUA_LUASTATE_H #include <filesystem> #include <map> #include <typeinfo> #include <sol/sol.hpp> #include <components/vfs/pathutil.hpp> #include "configuration.hpp" namespace VFS { class Manager; } namespace LuaUtil { std::string getLuaVersion(); cl...
14,168
C++
.h
324
34.564815
120
0.615691
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,933
util.hpp
OpenMW_openmw/components/lua/util.hpp
#ifndef COMPONENTS_LUA_UTIL_H #define COMPONENTS_LUA_UTIL_H #include <cstdint> #include <string> #include <sol/sol.hpp> #include <components/esm/refid.hpp> namespace LuaUtil { // Lua arrays index from 1 constexpr inline std::int64_t fromLuaIndex(std::int64_t i) { return i - 1; } constex...
587
C++
.h
25
18.84
67
0.65045
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,934
box.hpp
OpenMW_openmw/components/lua/shapes/box.hpp
#ifndef COMPONENTS_LUA_SHAPES_BOX_H #define COMPONENTS_LUA_SHAPES_BOX_H #include <array> #include <osg/Matrix> #include <osg/Quat> #include <osg/Vec3f> namespace LuaUtil { class Box { public: Box(const osg::Vec3f& center, const osg::Vec3f& halfSize, const osg::Quat& rotation = osg::Quat()); ...
696
C++
.h
23
25.086957
107
0.657143
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,935
file.hpp
OpenMW_openmw/components/vfs/file.hpp
#ifndef OPENMW_COMPONENTS_VFS_FILE_H #define OPENMW_COMPONENTS_VFS_FILE_H #include <filesystem> #include <components/files/istreamptr.hpp> namespace VFS { class File { public: virtual ~File() = default; virtual Files::IStreamPtr open() = 0; virtual std::filesystem::path getPath(...
344
C++
.h
15
18.866667
52
0.684211
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,936
pathutil.hpp
OpenMW_openmw/components/vfs/pathutil.hpp
#ifndef OPENMW_COMPONENTS_VFS_PATHUTIL_H #define OPENMW_COMPONENTS_VFS_PATHUTIL_H #include <components/misc/strings/lower.hpp> #include <algorithm> #include <ostream> #include <stdexcept> #include <string> #include <string_view> namespace VFS::Path { inline constexpr char separator = '/'; inline constexpr ch...
8,963
C++
.h
235
29.553191
119
0.602933
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,937
bsaarchive.hpp
OpenMW_openmw/components/vfs/bsaarchive.hpp
#ifndef VFS_BSAARCHIVE_HPP_ #define VFS_BSAARCHIVE_HPP_ #include "archive.hpp" #include "file.hpp" #include "pathutil.hpp" #include <components/bsa/ba2dx10file.hpp> #include <components/bsa/ba2gnrlfile.hpp> #include <components/bsa/bsa_file.hpp> #include <components/bsa/compressedbsafile.hpp> #include <algorithm> #i...
2,985
C++
.h
79
29.227848
109
0.613707
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,938
recursivedirectoryiterator.hpp
OpenMW_openmw/components/vfs/recursivedirectoryiterator.hpp
#ifndef OPENMW_COMPONENTS_VFS_RECURSIVEDIRECTORYITERATOR_H #define OPENMW_COMPONENTS_VFS_RECURSIVEDIRECTORYITERATOR_H #include <string> #include "filemap.hpp" #include "pathutil.hpp" namespace VFS { class RecursiveDirectoryIterator { public: RecursiveDirectoryIterator(FileMap::const_iterator it) ...
1,280
C++
.h
41
24.146341
119
0.668026
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,939
filesystemarchive.hpp
OpenMW_openmw/components/vfs/filesystemarchive.hpp
#ifndef OPENMW_COMPONENTS_RESOURCE_FILESYSTEMARCHIVE_H #define OPENMW_COMPONENTS_RESOURCE_FILESYSTEMARCHIVE_H #include "archive.hpp" #include "file.hpp" #include <filesystem> #include <string> namespace VFS { class FileSystemArchiveFile : public File { public: FileSystemArchiveFile(const std::fi...
964
C++
.h
30
26.666667
83
0.706522
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,940
filemap.hpp
OpenMW_openmw/components/vfs/filemap.hpp
#ifndef OPENMW_COMPONENTS_VFS_FILEMAP_H #define OPENMW_COMPONENTS_VFS_FILEMAP_H #include <map> #include <string> namespace VFS { class File; namespace Path { class Normalized; } using FileMap = std::map<Path::Normalized, File*, std::less<>>; } #endif
284
C++
.h
14
16.928571
67
0.701887
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
35,941
manager.hpp
OpenMW_openmw/components/vfs/manager.hpp
#ifndef OPENMW_COMPONENTS_RESOURCEMANAGER_H #define OPENMW_COMPONENTS_RESOURCEMANAGER_H #include <components/files/istreamptr.hpp> #include <filesystem> #include <memory> #include <string> #include <string_view> #include <vector> #include "filemap.hpp" #include "pathutil.hpp" namespace VFS { class Archive; ...
3,373
C++
.h
65
44.969231
117
0.702406
OpenMW/openmw
5,318
933
0
GPL-3.0
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false