repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
MrPepperoni/Reaping2-1 | src/core/audible_component.h | <filename>src/core/audible_component.h<gh_stars>1-10
#ifndef INCLUDED_CORE_AUDIBLE_COMPONENT_H
#define INCLUDED_CORE_AUDIBLE_COMPONENT_H
#include "i_audible_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
#include <boost/serialization/vector.hpp>
class AudibleComponent : public IAudibleCom... |
MrPepperoni/Reaping2-1 | src/core/map/ctf_spawn_flags_map_element_system.h | #ifndef INCLUDED_MAP_CTF_SPAWN_FLAGS_MAP_ELEMENT_SYSTEM_H
#define INCLUDED_MAP_CTF_SPAWN_FLAGS_MAP_ELEMENT_SYSTEM_H
#include "core/map/map_element_system.h"
#include "core/actor_factory.h"
#include "ctf_flag_spawn_point_map_element.h"
namespace map {
namespace ctf {
class CtfSpawnFlagsMapElementSystem : public MapEl... |
MrPepperoni/Reaping2-1 | src/audio/audio_system.h | #ifndef INCLUDED_AUDIO_AUDIO_SYSTEM_H
#define INCLUDED_AUDIO_AUDIO_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "core/actor_event.h"
namespace audio {
class AudioSystem : public engine::System
{
public:
DEFINE_SYSTEM_BASE( AudioSystem )
AudioSystem();
protected:
virtual void Init(... |
MrPepperoni/Reaping2-1 | src/core/scripted_controller/freelance_act.h | #ifndef INCLUDED_CORE_SCRIPTED_CONTROLLER_FREELANCE_ACT_H
#define INCLUDED_CORE_SCRIPTED_CONTROLLER_FREELANCE_ACT_H
#include "i_act.h"
namespace scriptedcontroller
{
class FreelanceAct : public IAct
{
public:
DEFINE_ACT_BASE( FreelanceAct );
virtual void Update( Actor& actor, double Seconds );
virtual vo... |
MrPepperoni/Reaping2-1 | src/render/pickup_action_renderer.h | #ifndef INCLUDED_RENDER_PICKUP_ACTION_RENDERER_H
#define INCLUDED_RENDER_PICKUP_ACTION_RENDERER_H
#include "platform/i_platform.h"
#include "core/actor.h"
#include "renderable_sprite.h"
#include "renderable_repo.h"
#include "action_renderer.h"
namespace render {
class PickupActionRenderer: public ActionRenderer
{
... |
MrPepperoni/Reaping2-1 | src/engine/pulse_system.h | <reponame>MrPepperoni/Reaping2-1<gh_stars>1-10
#ifndef INCLUDED_ENGINE_PULSE_SYSTEM_H
#define INCLUDED_ENGINE_PULSE_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
namespace engine {
class PulseSystem : public System
{
public:
DEFINE_SYSTEM_BASE(PulseSystem)
PulseSystem();
protected:
virtual ... |
MrPepperoni/Reaping2-1 | src/core/heal_taken_event.h | <filename>src/core/heal_taken_event.h
#ifndef INCLUDED_CORE_HEAL_TAKEN_EVENT_H
#define INCLUDED_CORE_HEAL_TAKEN_EVENT_H
#include "platform/event.h"
namespace core {
struct HealTakenEvent : public platform::Event
{
double mX;
double mY;
int32_t mHeal;
int32_t mActorGUID;
HealTakenEvent( double x, ... |
MrPepperoni/Reaping2-1 | src/render/uimodel.h | #ifndef INCLUDED_RENDER_UIMODEL_H
#define INCLUDED_RENDER_UIMODEL_H
#include "platform/i_platform.h"
#include "ui/i_ui.h"
#include "ui_renderer.h"
#include "sprite_phase.h"
class UiModelRepo;
class UiModel
{
protected:
friend class UiModelRepo;
UiModel() {}
public:
virtual ~UiModel() {}
virtual void Co... |
MrPepperoni/Reaping2-1 | src/engine/collisions/flag_collision_sub_system.h | <reponame>MrPepperoni/Reaping2-1<gh_stars>1-10
#ifndef INCLUDED_ENGINE_FLAG_COLLISION_SUB_SYSTEM_H
#define INCLUDED_ENGINE_FLAG_COLLISION_SUB_SYSTEM_H
#include "engine/collisions/collision_sub_system.h"
#include "../attach_state_changed_event.h"
namespace engine {
namespace ctf {
class FlagCollisionSubSystem : publi... |
MrPepperoni/Reaping2-1 | src/core/gauss_gun.h | <reponame>MrPepperoni/Reaping2-1<filename>src/core/gauss_gun.h
#pragma once
#ifndef INCLUDED_GAUSS_GUN_H
#define INCLUDED_GAUSS_GUN_H
#include "core/weapon.h"
#include "platform/export.h"
class GaussGun : public Weapon
{
double mChargeTime;
double mCurrentCharge;
public:
GaussGun( int32_t Id );
GaussG... |
MrPepperoni/Reaping2-1 | src/input/mouse.h | <filename>src/input/mouse.h
#ifndef INCLUDED_INPUT_MOUSE_H
#define INCLUDED_INPUT_MOUSE_H
#include "engine/system.h"
namespace engine {
class MouseSystem : public System
{
public:
DEFINE_SYSTEM_BASE( MouseSystem )
enum Button_t
{
Button_Left = 1,
Button_Middle,
Button_Right,
... |
MrPepperoni/Reaping2-1 | src/core/random_controller_component.h | <gh_stars>1-10
#ifndef INCLUDED_CORE_RANDOM_CONTROLLER_H
#define INCLUDED_CORE_RANDOM_CONTROLLER_H
#include "core/controller_component.h"
#include "core/actor.h"
#include "core/property_loader.h"
#include "platform/export.h"
class RandomControllerComponent : public ControllerComponent
{
public:
double GetCounter(... |
MrPepperoni/Reaping2-1 | src/input/input_state.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_ENGINE_INPUT_STATE_H
#define INCLUDED_ENGINE_INPUT_STATE_H
namespace engine {
struct InputState
{
double mOrientation;
double mHeading;
bool mShoot;
bool mShootAlt;
bool mUseNormalItem;
bool mReload;
bool mMoving;
bool mShowLeaderboard;... |
MrPepperoni/Reaping2-1 | src/core/buffs/buff_factory.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_CORE_BUFF_FACTORY_H
#define INCLUDED_CORE_BUFF_FACTORY_H
#include "platform/factory.h"
#include "platform/singleton.h"
#include "buff.h"
namespace core {
class BuffFactory : public platform::Factory<Buff>, public platform::Singleton<BuffFactory>
{
friend class pl... |
MrPepperoni/Reaping2-1 | src/network/client_id_changed.h | #ifndef INCLUDED_NETWORK_CLIENT_ID_CHANGED_H
#define INCLUDED_NETWORK_CLIENT_ID_CHANGED_H
#include "platform/event.h"
namespace network {
struct ClientIdChangedEvent : public platform::Event
{
int32_t mCurrClientId;
int32_t mNewClientId;
ClientIdChangedEvent( int32_t currClientId, int32_t newClientId )
... |
MrPepperoni/Reaping2-1 | src/platform/memoryfile.h | #ifndef INCLUDED_PLATFORM_MEMORYFILE_H
#define INCLUDED_PLATFORM_MEMORYFILE_H
#include "ifile.h"
#include <memory>
namespace platform {
namespace detail {
class MemoryFileImpl;
} // namespace detail
class MemoryFile : public File
{
std::auto_ptr<detail::MemoryFileImpl> mImpl;
public:
MemoryFile( size_t Preal... |
MrPepperoni/Reaping2-1 | src/render/actor_renderer.h | #ifndef INCLUDED_RENDER_ACTOR_RENDERER_H
#define INCLUDED_RENDER_ACTOR_RENDERER_H
#include "platform/i_platform.h"
#include "core/scene.h"
#include "recognizer_repo.h"
#include "shader_manager.h"
#include "action_renderer.h"
#include "action_renderer_factory.h"
#include "renderable_sprite.h"
#include "core/actor_event.... |
MrPepperoni/Reaping2-1 | src/render/action_renderer.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_RENDER_ACTION_RENDERER_H
#define INCLUDED_RENDER_ACTION_RENDERER_H
#include "platform/i_platform.h"
#include "core/actor.h"
#include "renderable_sprite.h"
#include "renderable_repo.h"
#include "sprite_collection.h"
#include "action_renderer_loader.h"
namespace render {... |
MrPepperoni/Reaping2-1 | src/core/item_loader_repo.h | #ifndef INCLUDED_CORE_ITEM_LOADER_FACTORY_H
#define INCLUDED_CORE_ITEM_LOADER_FACTORY_H
#include "platform/singleton.h"
#include "platform/repository.h"
#include "platform/i_platform.h"
template<typename BASE>
class PropertyLoaderBase;
class Item;
class DefaultItemLoader;
class ItemLoaderRepo : public platform::Repos... |
MrPepperoni/Reaping2-1 | src/core/i_listen_child_death_component.h | #ifndef INCLUDED_CORE_I_LISTEN_CHILD_DEATH_COMPONENT_H
#define INCLUDED_CORE_I_LISTEN_CHILD_DEATH_COMPONENT_H
#include "component.h"
#include "platform/export.h"
class IListenChildDeathComponent : public Component
{
public:
DEFINE_COMPONENT_BASE( IListenChildDeathComponent )
virtual void SetKillerOfChildGUID(... |
MrPepperoni/Reaping2-1 | src/engine/kill_score_on_death_system.h | <reponame>MrPepperoni/Reaping2-1<filename>src/engine/kill_score_on_death_system.h
#ifndef INCLUDED_ENGINE_KILL_SCORE_ON_DEATH_SYSTEM_H
#define INCLUDED_ENGINE_KILL_SCORE_ON_DEATH_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
namespace engine {
class KillScoreOnDeathSystem : public System
{
public:
... |
MrPepperoni/Reaping2-1 | src/core/acceleration_component.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_CORE_ACCELERATION_COMPONENT_H
#define INCLUDED_CORE_ACCELERATION_COMPONENT_H
#include "i_move_component.h"
#include "core/property_loader.h"
#include "i_acceleration_component.h"
#include "platform/export.h"
class AccelerationComponent : public IAccelerationComponen... |
MrPepperoni/Reaping2-1 | src/engine/controllers/pointer_target_controller_sub_system.h | <filename>src/engine/controllers/pointer_target_controller_sub_system.h
#ifndef INCLUDED_ENGINE_POINTER_TARGET_CONTROLLER_SUB_SYSTEM_H
#define INCLUDED_ENGINE_POINTER_TARGET_CONTROLLER_SUB_SYSTEM_H
#include "engine/sub_system.h"
#include "core/scene.h"
#include "core/program_state.h"
#include "engine/removed_actors_sy... |
MrPepperoni/Reaping2-1 | src/network/single_message_sender.h | <gh_stars>0
#ifndef INCLUDED_NETWORK_SINGLE_MESSAGE_SENDER_H
#define INCLUDED_NETWORK_SINGLE_MESSAGE_SENDER_H
#include "platform/i_platform.h"
#include <map>
#include "message.h"
#include "messsage_holder.h"
#include "platform/event.h"
#include "core/actor_event.h"
#include "platform/register.h"
namespace network {
... |
MrPepperoni/Reaping2-1 | src/network/flag_state_changed_message.h | #ifndef INCLUDED_NETWORK_FLAG_STATE_CHANGED_H
#define INCLUDED_NETWORK_FLAG_STATE_CHANGED_H
#include "network/message.h"
#include "network/message_handler_sub_system.h"
#include "network/message_sender_system.h"
#include "core/flag_state_changed_event.h"
#include "core/ctf_program_state.h"
#include "platform/export.h"... |
MrPepperoni/Reaping2-1 | src/core/i_explode_on_hit_component.h | #ifndef INCLUDED_CORE_I_EXPLODE_ON_HIT_COMPONENT_H
#define INCLUDED_CORE_I_EXPLODE_ON_HIT_COMPONENT_H
#include "component.h"
#include "i_explode.h"
#include "platform/export.h"
class IExplodeOnHitComponent : public Component, public IExplode
{
public:
IExplodeOnHitComponent();
DEFINE_COMPONENT_BASE( IExplodeO... |
MrPepperoni/Reaping2-1 | src/network/health_message.h | #ifndef INCLUDED_NETWORK_HEALTH_H
#define INCLUDED_NETWORK_HEALTH_H
#include "network/message.h"
#include "network/message_handler_sub_system.h"
#include "network/message_sender_system.h"
#include "core/health_changed_event.h"
#include "platform/export.h"
namespace network {
class HealthMessage : public Message
{
... |
MrPepperoni/Reaping2-1 | src/core/level_selection_system.h | #ifndef INCLUDED_CORE_LEVEL_SELECTION_SYSTEM_H
#define INCLUDED_CORE_LEVEL_SELECTION_SYSTEM_H
#include "platform/model_value.h"
#include "engine/system.h"
#include "core/gamemode_selected_event.h"
#include "core/game_modes.h"
using platform::ModelValue;
using platform::AutoReg;
namespace core {
class LevelSelection... |
MrPepperoni/Reaping2-1 | src/audio/vorbis_file_cache.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_AUDIO_VORBIS_FILE_CACHE_H
#define INCLUDED_AUDIO_VORBIS_FILE_CACHE_H
#include "platform/cache.h"
#include "platform/singleton.h"
#include "vorbis_file.h"
class VorbisFileCache : public Cache<VorbisFile>, public Singleton<VorbisFileCache>
{
AutoReg mPhaseChangeId;
... |
MrPepperoni/Reaping2-1 | src/platform/ifile.h | #ifndef INCLUDED_PLATFORM_IFILE_H
#define INCLUDED_PLATFORM_IFILE_H
#include <string>
namespace platform {
class File
{
public:
virtual ~File() = 0;
virtual bool Read( void* Dst, size_t Size ) = 0;
virtual bool Read( std::string& Data, size_t Size );
virtual bool Write( void const* Src, size_t Size )... |
MrPepperoni/Reaping2-1 | src/core/drop_on_death_component.h | #ifndef INCLUDED_CORE_DROP_ON_DEATH_COMPONENT_H
#define INCLUDED_CORE_DROP_ON_DEATH_COMPONENT_H
#include "core/i_drop_on_death_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class DropOnDeathComponent : public IDropOnDeathComponent
{
public:
virtual void Update( double Seconds );
... |
MrPepperoni/Reaping2-1 | src/core/grid_template.h | #ifndef INCLUDED_CORE_GRID_TEMPLATE_H
#define INCLUDED_CORE_GRID_TEMPLATE_H
#include "core/actor.h"
#include <map>
#include <set>
#include <vector>
#include <functional>
struct CollPair
{
Actor* A1;
Actor* A2;
CollPair( Actor* a1, Actor* a2 );
};
struct CollPairCmp
{
bool operator ()( CollPair const& a... |
MrPepperoni/Reaping2-1 | src/core/item_loader.h | <filename>src/core/item_loader.h
#ifndef INCLUDED_CORE_ITEM_LOADER_H
#define INCLUDED_CORE_ITEM_LOADER_H
#include "property_loader.h"
template<typename T, typename BASE>
class PropertyLoader;
class Item;
template<typename ITEM>
class ItemLoader: public PropertyLoader<ITEM, Item>
{
};
#endif//INCLUDED_CORE_ITEM_LOADER... |
MrPepperoni/Reaping2-1 | src/core/map/group_selected_event.h | #ifndef INCLUDED_MAP_GROUP_SELECTED_EVENT_H
#define INCLUDED_MAP_GROUP_SELECTED_EVENT_H
#include "platform/event.h"
namespace map {
struct GroupSelectedEvent : public platform::Event
{
std::string mGroupName;
bool mNew;
GroupSelectedEvent(std::string const& groupName, bool _new )
:mGroupName(grou... |
MrPepperoni/Reaping2-1 | src/engine/soldier_spawn_system.h | #ifndef INCLUDED_ENGINE_SOLDIER_SPAWN_SYSTEM_H
#define INCLUDED_ENGINE_SOLDIER_SPAWN_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "core/program_state.h"
#include "core/actor.h"
#include "core/actor_factory.h"
#include "core/map/soldier_spawn_point_map_element_system.h"
#include "core/revive_eve... |
MrPepperoni/Reaping2-1 | src/core/map/level_generator/room_property.h | #ifndef INCLUDED_MAP_ROOM_PROPERTY_H
#define INCLUDED_MAP_ROOM_PROPERTY_H
#include "platform/singleton.h"
#include "boost/bimap.hpp"
namespace map {
class RoomProperty : public platform::Singleton<RoomProperty>
{
protected:
friend class platform::Singleton<RoomProperty>;
RoomProperty();
public:
enum Type... |
MrPepperoni/Reaping2-1 | src/core/map/editor_visiblity_system.h | #ifndef INCLUDED_MAP_EDITOR_VISIBLITY_SYSTEM_H
#define INCLUDED_MAP_EDITOR_VISIBLITY_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "editor_mode_changed_event.h"
#include "editor_back_event.h"
#include "level_generator/room_desc.h"
#include "input/mouse.h"
#include "layer_selected_event.h"
#inclu... |
MrPepperoni/Reaping2-1 | src/core/map/groups_changed_event.h | <reponame>MrPepperoni/Reaping2-1<filename>src/core/map/groups_changed_event.h<gh_stars>1-10
#ifndef INCLUDED_MAP_GROUPS_CHANGED_EVENT_H
#define INCLUDED_MAP_GROUPS_CHANGED_EVENT_H
#include "platform/event.h"
namespace map {
struct GroupsChangedEvent : public platform::Event
{
GroupsChangedEvent(){}
};
... |
salehkhazaei/BScProject | xilinx_temp_project/skopro_project_xilinx_ise12migration/isim/main_isim_beh.exe.sim/work/a_1208337864_1516540902.c | <reponame>salehkhazaei/BScProject<filename>xilinx_temp_project/skopro_project_xilinx_ise12migration/isim/main_isim_beh.exe.sim/work/a_1208337864_1516540902.c<gh_stars>1-10
/**********************************************************************/
/* ____ ____ */
/*... |
salehkhazaei/BScProject | xilinx_temp_project/skopro_project_xilinx_ise12migration/isim/main_isim_beh.exe.sim/work/a_1077320103_3212880686.c | <gh_stars>1-10
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/... |
salehkhazaei/BScProject | xilinx_temp_project/skopro_project_xilinx_ise12migration/isim/main_isim_beh.exe.sim/work/a_0752514868_1516540902.c | /**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ ... |
salehkhazaei/BScProject | xilinx_temp_project/skopro_project_xilinx_ise12migration/isim/main_isim_beh.exe.sim/work/a_0286164271_1516540902.c | /**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ ... |
salehkhazaei/BScProject | xilinx_temp_project/skopro_project_xilinx_ise12migration/isim/main_isim_beh.exe.sim/work/a_2399776393_1516540902.c | <filename>xilinx_temp_project/skopro_project_xilinx_ise12migration/isim/main_isim_beh.exe.sim/work/a_2399776393_1516540902.c<gh_stars>1-10
/**********************************************************************/
/* ____ ____ */
/* / /\/ / ... |
salehkhazaei/BScProject | xilinx_temp_project/skopro_project_xilinx_ise12migration/isim/main_isim_beh.exe.sim/work/a_0138754619_3212880686.c | <reponame>salehkhazaei/BScProject<filename>xilinx_temp_project/skopro_project_xilinx_ise12migration/isim/main_isim_beh.exe.sim/work/a_0138754619_3212880686.c
/**********************************************************************/
/* ____ ____ */
/* / /\/ / ... |
salehkhazaei/BScProject | xilinx_temp_project/skopro_project_xilinx_ise12migration/isim/main_isim_beh.exe.sim/work/a_0925960817_1516540902.c | <filename>xilinx_temp_project/skopro_project_xilinx_ise12migration/isim/main_isim_beh.exe.sim/work/a_0925960817_1516540902.c
/**********************************************************************/
/* ____ ____ */
/* / /\/ / ... |
ray0711/esphome-idasen-desk-controller | components/idasen_desk_controller/idasen_desk_controller.h | #pragma once
#include "esphome/core/component.h"
#include "esphome/components/cover/cover.h"
#include "esphome/components/ble_client/ble_client.h"
#include "esphome/components/esp32_ble_tracker/esp32_ble_tracker.h"
#ifdef ARDUINO_ARCH_ESP32
// https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/... |
robertapplin/N-Body-Simulations | cpp/simulator/inc/BodyPositionsAndVelocities.h | <filename>cpp/simulator/inc/BodyPositionsAndVelocities.h<gh_stars>0
// Project Repository : https://github.com/robertapplin/N-Body-Simulations
// Authored by <NAME>, 2020
#ifndef SpaceTimeBodyCoords_H
#define SpaceTimeBodyCoords_H
#include "Body.h"
#include <map>
#include <memory>
namespace Simulator {
struct Vecto... |
robertapplin/N-Body-Simulations | cpp/simulator/inc/SimulationConstants.h | <reponame>robertapplin/N-Body-Simulations<gh_stars>0
// Project Repository : https://github.com/robertapplin/N-Body-Simulations
// Authored by <NAME>, 2020
#ifndef SimulationConstants_H
#define SimulationConstants_H
namespace Simulator {
namespace Constants {
enum TimeUnit { Days };
static double G(6.67408e-11); ... |
robertapplin/N-Body-Simulations | cpp/simulator/inc/NBodySimulator.h | // Project Repository : https://github.com/robertapplin/N-Body-Simulations
// Authored by <NAME>, 2020
#ifndef NBodySimulator_H
#define NBodySimulator_H
#include "BodyPositionsAndVelocities.h"
#include <map>
#include <memory>
#include <string>
#include <vector>
namespace Simulator {
class Body;
struct Vector2D;
//... |
robertapplin/N-Body-Simulations | cpp/simulator/inc/Vector2D.h | <filename>cpp/simulator/inc/Vector2D.h
// Project Repository : https://github.com/robertapplin/N-Body-Simulations
// Authored by <NAME>, 2020
#ifndef Vector2D_H
#define Vector2D_H
namespace Simulator {
// A struct used for two dimensional vector operations.
struct Vector2D {
// Calculates the magnitude of the two d... |
robertapplin/N-Body-Simulations | cpp/simulator/inc/Body.h | // Project Repository : https://github.com/robertapplin/N-Body-Simulations
// Authored by <NAME>, 2020
#ifndef Body_H
#define Body_H
#include "Vector2D.h"
#include <string>
namespace Simulator {
// A class used to store data about a Body in a simulation.
class Body {
public:
Body(std::string const &name, double ... |
guoliulong/NoahGameFrame | NFComm/NFNetPlugin/NFCHttpServer.h | <filename>NFComm/NFNetPlugin/NFCHttpServer.h
#ifndef NFC_HTTP_SERVER_H
#define NFC_HTTP_SERVER_H
#include "NFIHttpServer.h"
class NFCHttpServer : public NFIHttpServer
{
public:
NFCHttpServer()
{
}
template<typename BaseType>
NFCHttpServer(BaseType* pBaseType, void (BaseType::*handleRecieve)(const NFHttpRequest&... |
guoliulong/NoahGameFrame | NFComm/NFNetPlugin/NFIHttpServer.h | <gh_stars>0
#ifndef NFI_HTTP_SERVER_H
#define NFI_HTTP_SERVER_H
#include <cstring>
#include <errno.h>
#include <stdio.h>
#include <signal.h>
#include <stdint.h>
#include <iostream>
#include <map>
#include <vector>
#include <functional>
#include <memory>
#include <list>
#include <vector>
#include <assert.h>
#include "... |
guoliulong/NoahGameFrame | NFComm/NFPluginModule/NFIWSSwichServerModule.h | // -------------------------------------------------------------------------
// @FileName : NFIWSSwichServerModule.h
// @Author : LvSheng.Huang
// @Date : 2012-12-15
// @Module : NFIWSSwichServerModule
//
// ------------------------------------------------------... |
guoliulong/NoahGameFrame | NFServer/NFDataAgent_NosqlPlugin/NFCCommonRedisModule.h | <reponame>guoliulong/NoahGameFrame
// -------------------------------------------------------------------------
// @FileName : NFCRankRedisModule.h
// @Author : LvSheng.Huang
// @Date : 2013-10-03
// @Module : NFCRankRedisModule
// @Desc :
// ----... |
guoliulong/NoahGameFrame | NFMidWare/NFGuildPlugin/NFCGuildComponent.h | <reponame>guoliulong/NoahGameFrame
// -------------------------------------------------------------------------
// @FileName : NFCGuildComponent.h
// @Author : LvSheng.Huang
// @Date : 2017-07-21
// @Module : NFCGuildComponent
//
// -----------------------------... |
guoliulong/NoahGameFrame | NFComm/NFNetPlugin/NFCHttpClientModule.h | // -------------------------------------------------------------------------
// @FileName : NFCHttpClientModule.h
// @Author : LvSheng.Huang
// @Date : 2017-07-07
// @Module : NFCHttpClientModule
//
// ------------------------------------------------------------... |
guoliulong/NoahGameFrame | NFComm/NFPluginModule/NFIGuildModule.h | // -------------------------------------------------------------------------
// @FileName : NFIGuildModule.h
// @Author : ChuanBo.Guo
// @Date : 2016-01-30 08:51
// @Module : NFIGuildModule
//
// ----------------------------------------------------------------... |
guoliulong/NoahGameFrame | NFComm/NFNetPlugin/NFCNetClientModule.h | // -------------------------------------------------------------------------
// @FileName : NFCNetClientModule.h
// @Author : LvSheng.Huang
// @Date : 2017-02-15
// @Module : NFCNetClientModule
//
// --------------------------------------------------------... |
guoliulong/NoahGameFrame | NFComm/NFPluginModule/NFITeamDataModule.h | <filename>NFComm/NFPluginModule/NFITeamDataModule.h
// -------------------------------------------------------------------------
// @FileName : NFITeamDataModule.h
// @Author : ChuanBo.Guo
// @Date : 2016-01-30 16:51
// @Module : NFITeamDataModule
//
// --... |
guoliulong/NoahGameFrame | NFComm/NFPluginModule/NFITeamBroadcastModule.h | <filename>NFComm/NFPluginModule/NFITeamBroadcastModule.h
// -------------------------------------------------------------------------
// @FileName : NFITeamBroadcastModule.h
// @Author : ChuanBo.Guo
// @Date : 2016-01-30 16:51
// @Module : NFITeamBroadcast... |
guoliulong/NoahGameFrame | NFComm/NFPluginModule/NFICommonRedisModule.h | // -------------------------------------------------------------------------
// @FileName : NFICommonRedisModule.h
// @Author : Chuanbo.Guo
// @Date : 2012-12-15
// @Module : NFICommonRedisModule
//
// ------------------------------------------------------... |
guoliulong/NoahGameFrame | NFComm/NFPluginModule/NFIPropertyModule.h | // -------------------------------------------------------------------------
//
// -------------------------------------------------------------------------
#ifndef NFI_PROPERTY_MODULE_H
#define NFI_PROPERTY_MODULE_H
#include <iostream>
#include "NFIModule.h"
class NFIPropertyModule
: public N... |
guoliulong/NoahGameFrame | NFServer/NFGameServerPlugin/CFrameSyncGameModule.h | #ifndef CFRAMESYNC_GAME_MODULE_H
#define CFRAMESYNC_GAME_MODULE_H
#include "NFComm/NFPluginModule/IFrameSyncGameModule.h"
#include "NFComm/NFPluginModule/NFINetModule.h"
#include "NFComm/NFPluginModule/NFIGameServerNet_ServerModule.h"
#include <set>
class CFrameSyncGameModule :
public IFrameSyncGameModule... |
guoliulong/NoahGameFrame | NFComm/NFPluginModule/IFrameSyncGameModule.h |
#ifndef IFRAME_SYNC_GAME_MODULE_H
#define IFRAME_SYNC_GAME_MODULE_H
#include "NFComm/NFPluginModule/NFIModule.h"
class IFrameSyncGameModule :
public NFIModule
{
public:
virtual void OnClienLeaveGame(NFGUID roleId) = 0;
};
#endif |
DARKDOVE/Drone_Anarchy | Source/InputController.h | <filename>Source/InputController.h
//
// Copyright (c) 2014 - 2021 <NAME>.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
/... |
DARKDOVE/Drone_Anarchy | Source/DroneAnarchy.h | //
// Copyright (c) 2014 - 2021 <NAME>.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publ... |
DARKDOVE/Drone_Anarchy | Source/EventsAndDefs.h | //
// Copyright (c) 2014 - 2021 <NAME>.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publ... |
Rabios/wax | src/to_kotlin.c | #ifndef WAX_TO_KOTLIN
#define WAX_TO_KOTLIN
#include "text.c"
#include "parser.c"
#include "common.c"
str_t type_to_kotlin(type_t* typ, int is_obj){
str_t out = str_new();
if (typ->tag == TYP_INT){
str_add(&out,"Int");
}else if (typ->tag == TYP_FLT){
str_add(&out,"Float");
}else if (typ->tag == TYP_ST... |
Rabios/wax | src/to_js.c | #ifndef WAX_TO_JS
#define WAX_TO_JS
#include "text.c"
#include "parser.c"
#include "common.c"
str_t zero_to_js(type_t* typ){
str_t out = str_new();
if (typ->tag == TYP_INT){
str_add(&out,"0");
}else if (typ->tag == TYP_FLT){
str_add(&out,"0.0");
}else if (typ->tag == TYP_STT){
str_add(&out,"(null)... |
Rabios/wax | src/waxc.c | <gh_stars>1-10
#ifndef WAXC
#define WAXC
int WVERBOSE = 1;
#define printinfo if(WVERBOSE)printf
#include "parser.c"
#include "tac.c"
#include "to_c.c"
#include "to_java.c"
#include "to_kotlin.c"
#include "to_ts.c"
#include "to_js.c"
#include "to_coffee.c"
#include "to_json.c"
#include "to_py.c"
#include "to_cs.c"
#in... |
Rabios/wax | src/to_nelua.c | #ifndef WAX_TO_NELUA
#define WAX_TO_NELUA
#include "text.c"
#include "parser.c"
#include "common.c"
str_t type_to_nelua(type_t* typ){
str_t out = str_new();
if (typ->tag == TYP_INT){
str_add(&out,"integer");
}else if (typ->tag == TYP_FLT){
str_add(&out,"float32");
}else if (typ->tag == TYP_STT){
s... |
vlad9486/tezos-dissector | wireshark-epan-adapter/ws_version.h | <gh_stars>1-10
/* ws_version.h.in */
#ifndef __WS_VERSION_H__
#define __WS_VERSION_H__
#define WIRESHARK_VERSION_MAJOR VERSION_MAJOR
#define WIRESHARK_VERSION_MINOR VERSION_MINOR
#define WIRESHARK_VERSION_MICRO VERSION_MICRO
#endif /* __WS_VERSION_H__ */
|
follymath/arbuckle | arbuckle.h | <reponame>follymath/arbuckle<filename>arbuckle.h<gh_stars>1-10
#ifndef ARBUCKLE_H
#define ARBUCKLE_H
// adapted from https://github.com/fredrik-johansson/arbcmath
// TODO just uses double complex helpers as a crutch to start, but should be optimized away
#include <emscripten.h>
#include <complex.h>
#include "acb.h"
#... |
follymath/arbuckle | arbuckle.c | #include "arbuckle.h"
int main() {
// TODO some basic assertions
// build up bernoulli cache?
}
|
liuhong785738008/CSV | qtcsv/include/reader.h | <filename>qtcsv/include/reader.h
#ifndef QTCSVREADER_H
#define QTCSVREADER_H
#include "qtcsv/qtcsv_global.h"
#include <QList>
#include <QTextCodec>
class QIODevice;
class QStringList;
namespace QtCSV
{
class AbstractData;
// Reader class is a file reader that work with csv-files. It needs an
// absolute... |
rpetrov94/tinyrss | test/pp.c | <gh_stars>0
#include "pp.h"
#include "helper.h"
#include <stdio.h>
#define PP_RSS(a, b) (pretty_print_node(a, b, NULL))
#define PP_RSS_ITEM(a, b) (pretty_print_node(a, b, "\t"))
#define PP_RSS_IMAGE(a, b) (pretty_print_node(a, b, "\t"))
void
pp_rss_image(rss_image_t* image)
{
PP_RSS_IMAGE("url", image->url);
PP_... |
rpetrov94/tinyrss | test/pp.h | #ifndef PP_H
#define PP_H
#include "rss-image.h"
#include "rss-item.h"
#include "rss.h"
void pp_rss_image(rss_image_t*);
void pp_rss_item(rss_item_t*);
void pp_rss(rss_t*);
#endif
|
rpetrov94/tinyrss | src/rss-image.c | #include "rss-image.h"
#include "common.h"
#include <stdlib.h>
rss_image_t* create_rss_image()
{
rss_image_t* image = malloc(sizeof(rss_image_t));
image->url = NULL;
image->title = NULL;
image->link = NULL;
image->width = DEFAULT_WIDTH;
image->height = DEFAULT_HEIGHT;
image->description = NULL;
retur... |
rpetrov94/tinyrss | src/rss-item.c | #include "rss-item.h"
#include "common.h"
#include "helper.h"
#include <stdlib.h>
rss_item_t*
create_rss_item()
{
rss_item_t* item = malloc(sizeof(rss_item_t));
item->categories = NULL;
item->num_categories = 0;
item->title = NULL;
item->description = NULL;
item->link = NULL;
item->author = NULL;
item... |
rpetrov94/tinyrss | src/parser.c | <filename>src/parser.c<gh_stars>0
#include "parser.h"
#include "helper.h"
#include <stdio.h>
#include <string.h>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
typedef void (*SETTER_FUNC) (void*, const char*);
typedef void (*BUILD_FUNC) (void*, xmlNod... |
rpetrov94/tinyrss | src/rss-item.h | #ifndef RSS_ITEM_H
#define RSS_ITEM_H
#include <stdlib.h>
typedef struct
{
char* title;
char* description;
char* link;
char* author;
char* guid;
char* pub_date;
char** categories;
size_t num_categories;
} rss_item_t;
rss_item_t* create_rss_item();
void rss_item_set_title(rss_item_t*, const char*);
v... |
rpetrov94/tinyrss | test/main.c | <filename>test/main.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "rss.h"
#include "rss-item.h"
#include "parser.h"
#include "fetcher.h"
#include "pp.h"
void usage();
int
main(int argc, const char* argv[])
{
if (argc < 2)
{
usage();
return 1;
}
fetch_data_t* fetch_data = fetc... |
rpetrov94/tinyrss | src/fetcher.h | <gh_stars>0
#ifndef FETCHER_H
#define FETCHER_H
#include <stdlib.h>
typedef struct
{
char* data;
size_t size;
} fetch_data_t;
fetch_data_t* fetch_document(const char* uri);
void delete_fetch_data(fetch_data_t*);
#endif |
rpetrov94/tinyrss | src/fetcher.c | #include "fetcher.h"
#include <curl/curl.h>
#include <string.h>
#include <stdlib.h>
fetch_data_t*
create_fetch_data()
{
fetch_data_t* fetch_data = malloc(sizeof(fetch_data_t));
fetch_data->data = malloc(sizeof(char));
return fetch_data;
}
void fetch_content(fetch_data_t* fetch_data, const char* uri);
fetch_d... |
rpetrov94/tinyrss | src/common.h | <reponame>rpetrov94/tinyrss
#ifndef COMMON_H
#define COMMON_H
#define FREE(a) ({if (a != NULL) free(a);})
#endif
|
rpetrov94/tinyrss | src/rss.h | <reponame>rpetrov94/tinyrss
#ifndef RSS_H
#define RSS_H
#include "rss-item.h"
#include "rss-image.h"
#include <stdlib.h>
typedef struct
{
char* title;
char* link;
char* description;
char* language;
char* copyright;
char* managing_editor;
char* web_master;
char* pub_date;
char* last_build_date;
ch... |
rpetrov94/tinyrss | src/rss-image.h | #ifndef RSS_IMAGE_H
#define RSS_IMAGE_H
#define DEFAULT_WIDTH 88
#define DEFAULT_HEIGHT 31
#define MAX_WIDTH 144
#define MAX_HEIGHT 400
#include <stdint.h>
typedef struct {
char* url;
char* title;
char* link;
uint16_t width;
uint16_t height;
char* description;
} rss_image_t;
rss_image_t* create_r... |
rpetrov94/tinyrss | src/helper.h | <reponame>rpetrov94/tinyrss
#ifndef HELPER_H
#define HELPER_H
void set_string(char**, const char*);
void pretty_print_node(char*, char*, char*);
char* trim(char *);
#endif |
rpetrov94/tinyrss | src/helper.c | <reponame>rpetrov94/tinyrss
#include "helper.h"
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
void
set_string(char** target, const char* source)
{
size_t len = strlen(source);
*target = (char*) malloc(sizeof(char) * (len + 1));
strcpy(*target, source);
}
void
pretty_print_node(c... |
rpetrov94/tinyrss | src/rss.c | <gh_stars>0
#include "rss.h"
#include "common.h"
rss_t*
create_rss()
{
rss_t* rss = malloc(sizeof(rss_t));
rss->items = NULL;
rss->categories = NULL;
rss->image = NULL;
rss->num_items = 0;
rss->num_categories = 0;
rss->title = NULL;
rss->link = NULL;
rss->description = NULL;
rss->language = NULL;
... |
rpetrov94/tinyrss | src/parser.h | #ifndef PARSER_H
#define PARSER_H
#include "rss.h"
rss_t* parse_string(char*);
#endif |
anndy1/AG_OtaUpdateServer | AG_OtaUpdateServer.h | // https://www.bakke.online/index.php/2017/06/02/self-updating-ota-firmware-for-esp8266/
/*
String getMAC()
{
uint8_t mac[6];
char result[14];
snprintf( result, sizeof( result ), "%02x%02x%02x%02x%02x%02x", mac[ 0 ], mac[ 1 ], mac[ 2 ], mac[ 3 ], mac[ 4 ], mac[ 5 ] );
return String( result );
}*/
void... |
amelvill-umich/libbat | bat/lba_tree_builder.h | #pragma once
#include <memory>
#include <mutex>
#include <ostream>
#include <vector>
#include <parallel_hashmap/phmap.h>
#include "abstract_array.h"
#include "attribute.h"
#include "ba_tree.h"
#include "ba_treelet.h"
#include "box.h"
#include "owned_array.h"
#include "pcg_rng.h"
#include "radix_tree_node.h"
#define L... |
amelvill-umich/libbat | util/util.h | <filename>util/util.h
#pragma once
#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <utility>
#include <glm/glm.hpp>
#ifdef __AVX2__
#include <immintrin.h>
#include <nmmintrin.h>
#endif
#include <tbb/blocked_range.h>
#include <tbb/parallel_for.h>
#include <tbb/parallel_reduce.h>
#in... |
amelvill-umich/libbat | bat/aggregation_tree_builder.h | #pragma once
#include <iostream>
#include <limits>
#include <memory>
#include <mutex>
#include <vector>
#include "abstract_array.h"
#include "aggregation_tree.h"
#include "box.h"
#include "owned_array.h"
struct AggregationKdBuildNode {
union {
// Interior node, splitting position along the axis
fl... |
amelvill-umich/libbat | parallel_io/mpi_send_recv.h | <reponame>amelvill-umich/libbat<filename>parallel_io/mpi_send_recv.h
#pragma once
#include <memory>
#include <mpi.h>
#include "abstract_array.h"
#include "borrowed_array.h"
#include "owned_array.h"
struct ISend {
ArrayHandle<uint8_t> data;
MPI_Request request = MPI_REQUEST_NULL;
int count;
MPI_Dataty... |
amelvill-umich/libbat | parallel_io/bat_read.h | <filename>parallel_io/bat_read.h
#pragma once
#include <stdint.h>
#include "bat_data_type.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef void *BATParticleFile;
BATParticleFile bat_io_open(const char *file_name);
void bat_io_close(BATParticleFile file);
// Query the global bounds of the data set
const float *ba... |
amelvill-umich/libbat | util/pcg_rng.h | #pragma once
#include <cmath>
// http://www.pcg-random.org/download.html
struct PCGRand {
uint64_t state = 0;
// Just use stream 1
PCGRand() = default;
inline PCGRand(uint32_t seed)
{
random();
state += seed;
random();
}
inline uint32_t random()
{
uint... |
amelvill-umich/libbat | bat/ba_treelet.h | <filename>bat/ba_treelet.h
#pragma once
#include <memory>
#include <ostream>
#include <unordered_map>
#include <vector>
#include "abstract_array.h"
#include "attribute.h"
#include "box.h"
#include "kd_node.h"
#include "plane.h"
#include "query_stats.h"
#pragma pack(push, 1)
struct BATreeletHeader {
uint32_t num_n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.