repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
zzqcn/udpi
src/dpi_app_match.h
/* *------------------------------------------------------------------ * Copyright (c) 2019 Intel, Travelping and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * ...
zzqcn/udpi
src/protocols/dpi_ssl.c
/* * Copyright (c) 2019 Intel and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
zzqcn/udpi
src/dpi_node.c
/* * Copyright (c) 2019 Intel and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
zzqcn/udpi
src/dpi.h
/* *------------------------------------------------------------------ * Copyright (c) 2018 Intel, Travelping and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * ...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/component/terrain_destroy.c
<filename>engine/src/component/terrain_destroy.c /* ** EPITECH PROJECT, 2020 ** engine ** File description: ** terrain_destroy */ #include "../../include/internal.h" #include "../../include/component.h" char *terrain__destroy_reference(color_ref_t **reference, int index) { char *r = reference[index]->name; f...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/core/thread_update.c
<reponame>Fosowl/S.T.A.R.S.E.T-Game-Engine /* ** EPITECH PROJECT, 2020 ** engine ** File description: ** core_update */ #include "../../include/internal.h" #include "../../include/component.h" void internal__dynamic_engine(void *ptr) { thread_pass_t *pass = (thread_pass_t *)ptr; entities_t *player = NULL; ...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/tiny_lib/buffer.c
<filename>engine/src/tiny_lib/buffer.c<gh_stars>1-10 /* ** EPITECH PROJECT, 2020 ** engine ** File description: ** $ */ #include <stdlib.h> #include <stdio.h> #include "../../include/dependancies.h" int my_strcpy_e(char *dest, char *src) { for (int i = 0; src[i] != '\0'; i++) dest[i] = src[i]; return...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/creator/obstacle.c
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** obstacle creator */ #include "../../include/starset_engine.h" static entities_t *internal__create_obstacle(sfVector2f spot , sfVector2f size) { entities_t *new = malloc(sizeof(entities_t)); if (new == NULL) return (NULL); new->size.x =...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/physics/physics_collide.c
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** realistic collsion physics */ #include "../../include/internal.h" sfVector2i internal__invert_vector(sfVector2i vector) { sfVector2i new; new.x = vector.x * -1; new.y = vector.y * -1; return (new); } static void internal__apply_impulse_law...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/tiny_lib/gather.c
<gh_stars>1-10 /* ** EPITECH PROJECT, 2020 ** engine ** File description: ** gather */ #include "../../include/dependancies.h" int char_in_e(char c, char *str) { for (int i = 0; str[i] != '\0'; i++) { if (str[i] == c) return (i); } return (-1); } int compare_e(char *str, char *try) { ...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/core/sound_set.c
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** sound_set */ #include "../../include/macro.h" #include "../../include/internal.h" static audio_t *internal__get_audio(audio_t *audio, char *name) { sfBool ok = false; char **get = internal__get_class(name); audio_t *tmp = NULL; for (audio_...
Fosowl/S.T.A.R.S.E.T-Game-Engine
test-src/main.c
<reponame>Fosowl/S.T.A.R.S.E.T-Game-Engine /* ** EPITECH PROJECT, 2020 ** S.T.A.R.S.E.T-Graphics-Engine ** File description: ** main */ #include "project.h" #include "starset_engine.h" /* the following code is just a small demo of the engine to play with it , not all of the function or capabilities of the engine are ...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/physics/collision.c
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** collision handler for engine core */ #include "../../include/internal.h" typedef struct point_t { float first; float second; } point_t; static sfBool internal__mouse_hover(entities_t *entitie_1 , sfRenderWindow *window) { sfVector2i mouse = sf...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/core/dynamic_sound.c
<filename>engine/src/core/dynamic_sound.c /* ** EPITECH PROJECT, 2020 ** engine ** File description: ** play sound during engine call */ #include "../../include/internal.h" static void internal__apply_sound(audio_t *copy) { if (sfTime_asMilliseconds(copy->delay) > sfTime_asMilliseconds (copy->duration)) { ...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/include/struct.h
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** struct */ #ifndef STRUCT_H_ #define STRUCT_H_ #include "dependancies.h" typedef struct audio_t { char *name; int volume; sfSound *sound; sfVector3f binaural; sfBool playing; sfBool loop; sfTime duration; sfClock *timer; ...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/include/component.h
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** component */ #ifndef COMPONENT_H_ #define COMPONENT_H_ #include "dependancies.h" typedef struct color_ref_t { sfColor color; char *name; } color_ref_t; typedef struct area_t { sfColor right; sfColor left; sfColor up; sfColor down;...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/tiny_lib/output.c
<filename>engine/src/tiny_lib/output.c /* ** EPITECH PROJECT, 2020 ** engine ** File description: ** output */ #include "../../include/dependancies.h" void put_err(char *str) { write(2, "\033[1;33m[error] \033[1;39m", 22); write(2, str, my_strlen_e(str)); } int error_e(long long int check, char *text) { ...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/destroy/audio_destroy.c
<filename>engine/src/destroy/audio_destroy.c /* ** EPITECH PROJECT, 2020 ** engine ** File description: ** audio_destroy */ #include "../../include/starset_engine.h" void internal__destroy_audio(audio_t *audio) { audio_t *tmp = NULL; while (audio != NULL) { tmp = audio; audio = audio->next; ...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/creator/create_component.c
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** create and add new component */ #include "../../include/internal.h" static component_t *internal__create_new_component(int (*pointer)() , char *name, int id) { component_t *component = malloc(sizeof(component_t)); if (component == NULL) re...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/tiny_lib/converter.c
<filename>engine/src/tiny_lib/converter.c<gh_stars>1-10 /* ** EPITECH PROJECT, 2020 ** engine ** File description: ** converter */ #include "../../include/dependancies.h" long long my_atoi_e(char *str) { int val = 0; int i = 0; if (my_strlen_e(str) > 18) return (0); for (i = 0; str[i] != '\0'...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/physics/math_misc.c
<reponame>Fosowl/S.T.A.R.S.E.T-Game-Engine /* ** EPITECH PROJECT, 2020 ** engine ** File description: ** math_misc */ #include "../../include/dependancies.h" sfVector2f starset_random_spot(int nb_1, int nb_2, int nb_3, int nb_4) { sfVector2f spot; spot.x = nb_1 + (rand() % nb_2); spot.y = nb_3 + (rand() ...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/include/internal.h
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** internal */ #ifndef INTERNAL_H_ #define INTERNAL_H_ #include "starset_engine.h" typedef struct thread_pass_t { entities_t *entities; sfRenderWindow *window; sfImage *image; } thread_pass_t; int internal__get_vector_direction(float x, float y)...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/creator/create_animator.c
<reponame>Fosowl/S.T.A.R.S.E.T-Game-Engine /* ** EPITECH PROJECT, 2020 ** engine ** File description: ** animator */ #include "../../include/internal.h" static animator_t *internal__create_animation(char *a_name, sfVector2u size) { animator_t *animator = malloc(sizeof(animator_t)); if (!animator) ret...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/physics/math_vector.c
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** multiple calculation for physics handling */ #include "../../include/dependancies.h" float internal__get_magnitude(sfVector2f vector) { if (abs((int)sqrt(pow(vector.x, 2) + pow(vector.y, 2))) < 50) return (sqrt(pow(vector.x, 2) + pow(vector.y, ...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/core/move_by_id.c
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** move_by_id */ #include "../../include/macro.h" #include "../../include/internal.h" void starset_entities_teleport_by_id(entities_t *entities, int id , float x, float y) { entities_t *copy = entities; sfVector2f vector; while (copy != NULL) { ...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/include/macro.h
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** macro for starset engine */ #ifndef MACRO_H_ #define MACRO_H_ #define STATIC -1 enum move { UP, DOWN, LEFT, RIGHT, UP_LEFT, UP_RIGHT, DOWN_LEFT, DOWN_RIGHT }; #define LOOP 1 #define NO_LOOP 0 #define PLAY 1 #define STOP 0 #endif...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/core/calculation.c
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** calculation needed by engine */ #include "../../include/macro.h" #include "../../include/internal.h" int internal__get_vector_direction(float x, float y) { int direction = RIGHT; SWITCH_E CASE_E__O (y == 0 && x < 0) CASE_E__C direction...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/tiny_lib/special.c
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** special */ #include "../../include/dependancies.h" int emulate_else_if_e(int *pass, int true_condition) { *pass += 1; if (true_condition == 1) return (1); else return (0); } int longest_word_e(char *buffer) { int longest = ...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/include/starset_engine.h
/* ** EPITECH PROJECT, 2020 ** S.T.A.R.S.E.T-Graphics-Engine ** File description: ** startset-engine */ #ifndef STARTSET_ENGINE_H_ #define STARTSET_ENGINE_H_ #include "dependancies.h" #include "struct.h" #define LOG 0 // UPDATE & SET sfRenderWindow *starset_set_window(sfVector2u size, char *name , int fps); sfBool...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/core/misc.c
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** misc */ #include "../../include/internal.h" #include "../../include/dependancies.h" sfBool starset_running(sfRenderWindow *window, sfEvent *event) { if (!sfRenderWindow_isOpen(window)) return (false); while (sfRenderWindow_pollEvent(window,...
Fosowl/S.T.A.R.S.E.T-Game-Engine
include/project.h
<filename>include/project.h /* ** EPITECH PROJECT, 2020 ** S.T.A.R.S.E.T-Graphics-Engine ** File description: ** project */ #ifndef PROJECT_H_ #define PROJECT_H_ #include <SFML/Graphics/RenderWindow.h> #include <SFML/Graphics/Texture.h> #include <SFML/Graphics/Sprite.h> #include <SFML/Audio.h> #include <SFML/Audio/So...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/core/renderer.c
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** render entities */ #include "../../include/starset_engine.h" void starset_entities_render_single(entities_t *copy, sfRenderWindow *window) { float rotation = 0.0f; int height = (int)copy->aspect->sheet->rect.height / 2; int width = (int)copy->a...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/debug/debug_log.c
/* ** EPITECH PROJECT, 2020 ** engine ** File description: ** output debug log in terminal */ #include "../../include/starset_engine.h" #include "../../include/internal.h" static void internal__show_entities_number(entities_t *tmp) { int nb_component = 0; int nb_sound = 0; for (component_t *c = tmp->comp...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/creator/prefab.c
<filename>engine/src/creator/prefab.c /* ** EPITECH PROJECT, 2020 ** engine ** File description: ** prefab */ #include "../../include/macro.h" #include "../../include/internal.h" #include "../../include/starset_engine.h" static aspect_t *internal__create_aspect(sfSprite *prefab) { aspect_t *aspect = malloc(sizeof...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/src/component/call.c
<gh_stars>1-10 /* ** EPITECH PROJECT, 2020 ** engine ** File description: ** call component */ #include "../../include/internal.h" #include "../../include/component.h" void internal__play_component(entities_t *entitie, sfRenderWindow *window , sfImage *image) { component_t *copy = entitie->component; while (...
Fosowl/S.T.A.R.S.E.T-Game-Engine
engine/include/dependancies.h
<reponame>Fosowl/S.T.A.R.S.E.T-Game-Engine /* ** EPITECH PROJECT, 2020 ** engine ** File description: ** dependancies include */ #ifndef DEPENDANCIES_H_ #define DEPENDANCIES_H_ #include <SFML/Graphics/RenderWindow.h> #include <SFML/Graphics/Texture.h> #include <SFML/Graphics/Sprite.h> #include <SFML/Audio.h> #include...
sm-rana/Stormwater-Management-Model
src/main.c
//----------------------------------------------------------------------------- // main.c // // Project: EPA SWMM5 // Version: 5.1 // Date: 05/10/2018 // Author: <NAME> // Main stub for the command line version of EPA SWMM 5.1 // to be run with swmm5.dll. #include <stdio.h> #include <string.h> #...
sm-rana/Stormwater-Management-Model
tools/swmm-output/src/swmm_output.c
<gh_stars>1-10 /* * swmm_output.c - SWMM Output API * * Author: <NAME> * US EPA - ORD/NHEERL * * Modified by: <NAME>, * <NAME> * */ #include "swmm_output.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include "errormanager.h" #include "messages.h" //#incl...
sm-rana/Stormwater-Management-Model
src/lid.c
<gh_stars>1-10 //----------------------------------------------------------------------------- // lid.c // // Project: EPA SWMM5 // Version: 5.1 // Date: 03/20/14 (Build 5.1.001) // 05/19/14 (Build 5.1.006) // 09/15/14 (Build 5.1.007) // 03/19/15 (Build 5.1.008)...
rdadolf/torch-mlir
include/torch-mlir/Dialect/Torch/Utils/Utils.h
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // Also available under a BSD-style...
rdadolf/torch-mlir
include/torch-mlir/Dialect/TorchConversion/Transforms/Passes.h
<gh_stars>100-1000 //===------------------------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // Also availabl...
rdadolf/torch-mlir
python/torch_mlir/dialects/torch/importer/jit_ir/csrc/node_importer.h
//===- node_importer.h ------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // Also available under a BSD-style...
rdadolf/torch-mlir
include/torch-mlir/Conversion/TorchToStd/TorchToStd.h
//===------------------------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // Also available under a BSD-style...
isliulin/hv
unittest/sendmail_test.c
#include <stdio.h> #include "smtp.h" int main(int argc, char** argv) { if (argc < 8) { printf("Usage: sendmail smtp_server username password from to subject body\n"); } const char* smtp_server = argv[1]; const char* username = argv[2]; const char* password = argv[3]; mail_t mail; ...
isliulin/hv
http/http2def.h
#ifndef HTTP2_DEF_H_ #define HTTP2_DEF_H_ #ifdef __cplusplus extern "C" { #endif #define HTTP2_MAGIC "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n" #define HTTP2_MAGIC_LEN 24 // length:3bytes + type:1byte + flags:1byte + stream_id:4bytes = 9bytes #define HTTP2_FRAME_HDLEN 9 #define HTTP2_UPGRADE_RESP...
isliulin/hv
base/htime.h
#ifndef HV_TIME_H_ #define HV_TIME_H_ #include "hexport.h" #include "hplatform.h" BEGIN_EXTERN_C #define SECONDS_PER_HOUR 3600 #define SECONDS_PER_DAY 86400 // 24*3600 #define SECONDS_PER_WEEK 604800 // 7*24*3600 #define IS_LEAP_YEAR(year) (((year)%4 == 0 && (year)%100 != 0) || (year)%100 == 0) typede...
isliulin/hv
base/hbase.h
#ifndef HV_BASE_H_ #define HV_BASE_H_ #include "hexport.h" #include "hplatform.h" // for bool #include "hdef.h" // for printd BEGIN_EXTERN_C //--------------------safe alloc/free--------------------------- HV_EXPORT void* safe_malloc(size_t size); HV_EXPORT void* safe_realloc(void* oldptr, size_t newsize, size_t old...
isliulin/hv
base/hssl.h
<reponame>isliulin/hv #ifndef HV_SSL_H_ #define HV_SSL_H_ #include "hexport.h" typedef void* hssl_ctx_t; ///> SSL_CTX typedef void* hssl_t; ///> SSL enum { HSSL_OK = 0, HSSL_WANT_READ = -2, HSSL_WANT_WRITE = -3, }; typedef struct { const char* crt_file; const char* key_file; const char* ca_f...
isliulin/hv
http/grpcdef.h
<filename>http/grpcdef.h #ifndef GRPC_DEF_H_ #define GRPC_DEF_H_ #ifdef __cplusplus extern "C" { #endif // Length-Prefixed-Message // flags:1byte + length:4bytes = 5bytes #define GRPC_MESSAGE_HDLEN 5 typedef struct { unsigned char flags; int length; } grpc_message_hd; typedef struct { un...
isliulin/hv
unittest/connect_test.c
#include "hsocket.h" #include "htime.h" int main(int argc, char* argv[]) { if (argc < 3) { printf("Usage: cmd ip port\n"); return -10; } const char* ip = argv[1]; int port = atoi(argv[2]); unsigned int start_time = gettick(); int ret = ConnectNonblock(ip, port); unsigned i...
isliulin/hv
base/hstring.h
#ifndef HV_STRING_H_ #define HV_STRING_H_ #include <string> #include <vector> #include <sstream> #include "hexport.h" #include "hbase.h" #include "hmap.h" using std::string; typedef std::vector<string> StringList; // std::map<std::string, std::string, StringCaseLess> class StringCaseLess : public std::less<std::str...
isliulin/hv
examples/tcp_proxy_server.c
/* * tcp proxy server * * @build: make examples * @http_server: bin/httpd -d * @proxy_server: bin/tcp_proxy_server 1234 127.0.0.1:8080 * bin/tcp_proxy_server 1234 www.baidu.com * @client: bin/curl -v 127.0.0.1:1234 * bin/nc 127.0.0.1 1234 * > GET / HTT...
isliulin/hv
evpp/UdpClient.h
#ifndef HV_UDP_CLIENT_HPP_ #define HV_UDP_CLIENT_HPP_ #include "hsocket.h" #include "EventLoopThread.h" #include "Callback.h" #include "Channel.h" namespace hv { class UdpClient { public: UdpClient() { } virtual ~UdpClient() { } EventLoopPtr loop() { return loop_thread.loop(); } ...
isliulin/hv
base/hbase.c
<filename>base/hbase.c #include "hbase.h" #ifdef OS_DARWIN #include <mach-o/dyld.h> // for _NSGetExecutablePath #endif #include "hatomic.h" static hatomic_t s_alloc_cnt = HATOMIC_VAR_INIT(0); static hatomic_t s_free_cnt = HATOMIC_VAR_INIT(0); long hv_alloc_cnt() { return s_alloc_cnt; } long hv_free_cnt() { ...
zxwnstn/Pomordor
PomordorEngine/src/Pome.h
#pragma once #include "Util.h" #include "Clock/Clock.h"
zxwnstn/Pomordor
PomordorUI/src/TimerPage/Titlebar.h
<gh_stars>0 #pragma once class TitleBar : public QFrame { public: TitleBar(QWidget* parent = nullptr); ~TitleBar(); protected: void mouseMoveEvent(QMouseEvent* event) override; void mouseReleaseEvent(QMouseEvent* event) override; private: uint32_t mouseX; uint32_t mouseY; uint32_t absX; uint32_t absY; QWid...
zxwnstn/Pomordor
PomordorUI/src/TimerPage/TrayIcon.h
<reponame>zxwnstn/Pomordor #pragma once class TrayIcon : public QSystemTrayIcon { Q_OBJECT public: TrayIcon(const QIcon& icon, class TimerPage* myTimer, QWidget* parent = nullptr); ~TrayIcon(); private slots: void OnClick(QSystemTrayIcon::ActivationReason Rw); public: TimerPage* m_MyTimer; QMenu* m_Menu; QA...
zxwnstn/Pomordor
PomordorUI/src/TimerPage/Timer.h
<filename>PomordorUI/src/TimerPage/Timer.h #pragma once class Timer { private: enum class TimerState { Porm, Break, None, }; public: Timer(class TimerPage* myPage); ~Timer(); public: void Update(); void Stop(); void Start(); private: void setTimerStateUi(); void updateSetCount(); void fillProgress...
zxwnstn/Pomordor
PomordorUI/src/TimerPage/TimerPage.h
#pragma once QT_BEGIN_NAMESPACE namespace Ui { class TimerPage; } QT_END_NAMESPACE class TimerPage : public QWidget { Q_OBJECT public: TimerPage(QWidget *parent = nullptr); ~TimerPage(); public: void ToastMessage(const QString& title, const QString& text, int duration_ms); private: void timerFinish(); privat...
zxwnstn/Pomordor
PomordorEngine/src/pegpch.h
#pragma once #include "json/json.h" //stl #include <iostream> #include <fstream> #include <sstream> #include <vector> #include <unordered_map> #include <set> #include <algorithm> #include <cassert> #include <chrono> #include <memory> #include <thread> #include <tuple> #include <string>
zxwnstn/Pomordor
PomordorEngine/src/Clock/Clock.h
<reponame>zxwnstn/Pomordor #pragma once #include <tuple> #include <stdint.h> #include <string> #include <chrono> namespace Pome { class Clock { //Time is sec, minute, hour; using Time = std::tuple<uint32_t, uint32_t, uint32_t>; public: Clock() = default; public: void Set(uint32_t sec, uint32_t minute, ...
zxwnstn/Pomordor
PomordorEngine/src/Util.h
<reponame>zxwnstn/Pomordor<filename>PomordorEngine/src/Util.h #pragma once namespace Pome{ void printHello(); void printJson(); }
zxwnstn/Pomordor
PomordorUI/src/TimerPage/ScheduleDialog.h
<reponame>zxwnstn/Pomordor<filename>PomordorUI/src/TimerPage/ScheduleDialog.h #pragma once QT_BEGIN_NAMESPACE namespace Ui { class ScheduleDialog; } QT_END_NAMESPACE class ScheduleDialog : public QWidget { Q_OBJECT public: using Data = std::tuple<int, int, int>; //pomordor, break, set public: ScheduleDialog(clas...
zxwnstn/Pomordor
PomordorUI/src/MainWindow/mainwindow.h
#pragma once QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); private slots: void onClickPushButton(); void onClickToggleButton(); void onClickCloseButton(); void onCl...
bmbrina/BMCustomTableView
Example/Pods/Target Support Files/Pods-BMCustomTableView_Example/Pods-BMCustomTableView_Example-umbrella.h
<filename>Example/Pods/Target Support Files/Pods-BMCustomTableView_Example/Pods-BMCustomTableView_Example-umbrella.h #import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_BMCustomTableView_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_BMCustomTableView_ExampleVersionString[];
bmbrina/BMCustomTableView
Example/Pods/Target Support Files/Pods-BMCustomTableView_Tests/Pods-BMCustomTableView_Tests-umbrella.h
<gh_stars>100-1000 #import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_BMCustomTableView_TestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_BMCustomTableView_TestsVersionString[];
bmbrina/BMCustomTableView
Example/Pods/Target Support Files/BMCustomTableView/BMCustomTableView-umbrella.h
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double BMCustomTableViewVersionNumber; FOUNDATION_EXPORT const unsigned char BMCustomTableViewVersionString[];
CorAlRe/CS300-Project-Two
menu.h
<reponame>CorAlRe/CS300-Project-Two #ifndef __PROJECT_TWO_MENU_H #define __PROJECT_TWO_MENU_H #include <iostream> using namespace std; /// <summary> /// Sets up a while loop that continues processing until the user /// chooses to exit. /// </summary> /// <param name=""></param> void commandLoop(void); #endif
CorAlRe/CS300-Project-Two
Course.h
#ifndef __PROJECT_TWO_COURSE_H #define __PROJECT_TWO_COURSE_H #include <string> #include <iostream> #include <vector> using namespace std; class Course { private: string id; string title; vector<Course> prerequisites; public: /// <summary> /// Default constructor /// </summary> Course() { } /// <summary> ...
CorAlRe/CS300-Project-Two
Courses.h
<reponame>CorAlRe/CS300-Project-Two #ifndef __PROJECT_TWO_COURSES_H #define __PROJECT_TWO_COURSES_H #include <stdexcept> #include <vector> #include <iostream> #include <fstream> #include <string> #include "Course.h" using namespace std; class Courses { private: /// <summary> /// Memory storage for the Course obje...
shirobusa1997/UE-PhotonSandbox
Source/Photon/Common-cpp/inc/Dictionary.h
/* Exit Games Common - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "Common-cpp/inc/DictionaryBase.h" #include "Common-cpp/inc/Helpers/IsSame.h" namespace ExitGames { namespace Common { template<typen...
shirobusa1997/UE-PhotonSandbox
Source/Photon/LoadBalancing-cpp/inc/Internal/Enums/JoinMode.h
<gh_stars>0 /* Exit Games Photon LoadBalancing - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "Common-cpp/inc/Common.h" namespace ExitGames { namespace LoadBalancing { namespace Internal { namesp...
shirobusa1997/UE-PhotonSandbox
Source/Photon/LoadBalancing-cpp/inc/AuthenticationValues.h
/* Exit Games Photon LoadBalancing - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "LoadBalancing-cpp/inc/Enums/CustomAuthenticationType.h" namespace ExitGames { namespace LoadBalancing { namespace Int...
shirobusa1997/UE-PhotonSandbox
Source/Photon/Common-cpp/inc/Object.h
<reponame>shirobusa1997/UE-PhotonSandbox<filename>Source/Photon/Common-cpp/inc/Object.h /* Exit Games Common - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "Common-cpp/inc/Base.h" class EGUtilsHelper; na...
shirobusa1997/UE-PhotonSandbox
Source/Photon/LoadBalancing-cpp/inc/Internal/RoomPropertiesCacher.h
<gh_stars>0 /* Exit Games Photon LoadBalancing - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "Common-cpp/inc/Common.h" namespace ExitGames { namespace LoadBalancing { class Client; class Room; n...
shirobusa1997/UE-PhotonSandbox
Source/Photon/Common-cpp/inc/MemoryManagement/Internal/MemoryPoolManager.h
<gh_stars>0 /* Exit Games Common - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include <limits.h> #include "Common-cpp/inc/Helpers/Spinlock.h" #include "Common-cpp/inc/MemoryManagement/AllocatorInterface.h" #incl...
shirobusa1997/UE-PhotonSandbox
Source/PhotonSandbox/PhotonAPI2UE4/PA2U_LoadBalancingListener.h
<gh_stars>0 #pragma once #include "LoadBalancing-cpp/inc/Client.h" #include "PA2U_BaseView.h" struct LocalPlayerBase { LocalPlayerBase(); double x; double y; double z; }; class PA2U_LoadBalancingListener : public ExitGames::LoadBalancing::LoadBalancingListener { public: PA2U_LoadBalancing...
shirobusa1997/UE-PhotonSandbox
Source/Photon/Common-cpp/inc/platform_definition.h
#pragma once #define _EG_WINDOWS_PLATFORM 1
shirobusa1997/UE-PhotonSandbox
Source/Photon/LoadBalancing-cpp/inc/Internal/Enums/EncryptionDataParameters.h
/* Exit Games Photon LoadBalancing - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "Common-cpp/inc/Common.h" namespace ExitGames { namespace LoadBalancing { namespace Internal { namespace Encrypti...
shirobusa1997/UE-PhotonSandbox
Source/Photon/Common-cpp/inc/platformLayer.h
/* Exit Games Common - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "Common-cpp/inc/defines.h" #ifdef _EG_UNIX_PLATFORM int getTimeUnix(void); # ifdef _EG_ANDROID_PLATFORM size_t EG_wcslen(const EG_C...
shirobusa1997/UE-PhotonSandbox
Source/Photon/Photon-cpp/inc/Punchthrough/Puncher.h
<filename>Source/Photon/Photon-cpp/inc/Punchthrough/Puncher.h #pragma once #include "Common-cpp/inc/Common.h" namespace ExitGames { namespace Photon { namespace Internal { namespace Punchthrough { class PunchConn; class SocketImplementation; namespace Forwards { class StunMsgType; ...
shirobusa1997/UE-PhotonSandbox
Source/PhotonSandbox/PhotonAPI2UE4/PA2U_DefaultConstants.h
<reponame>shirobusa1997/UE-PhotonSandbox<gh_stars>0 #pragma once // -------------------------------------------- // 定数マクロ宣言 // -------------------------------------------- // デフォルトマップ (ゲームプロジェクト側で指定するべきであるため,ここではデバッグ用マップを指定) #define DEFAULT_MAP "L_PA2U_BlankMap_0" // プレイヤーの状態の更新インターバル[ms] #define PLAYER_UPDATE_INTERV...
shirobusa1997/UE-PhotonSandbox
Source/Photon/LoadBalancing-cpp/inc/Internal/Utils.h
<filename>Source/Photon/LoadBalancing-cpp/inc/Internal/Utils.h /* Exit Games Photon LoadBalancing - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "Common-cpp/inc/Common.h" namespace ExitGames { namespace ...
shirobusa1997/UE-PhotonSandbox
Source/Photon/LoadBalancing-cpp/inc/Enums/DisconnectCause.h
/* Exit Games Photon LoadBalancing - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once namespace ExitGames { namespace LoadBalancing { /** Enumaration of causes for Disconnects (used in LoadBalancingClient.Disco...
shirobusa1997/UE-PhotonSandbox
Source/Photon/Common-cpp/inc/Hashtable.h
/* Exit Games Common - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "Common-cpp/inc/Helpers/KeyToObject.h" #include "Common-cpp/inc/Helpers/ValueToObject.h" #include "Common-cpp/inc/JVector.h" namespace E...
shirobusa1997/UE-PhotonSandbox
Source/Photon/LoadBalancing-cpp/inc/RoomOptions.h
<reponame>shirobusa1997/UE-PhotonSandbox /* Exit Games Photon LoadBalancing - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "LoadBalancing-cpp/inc/Enums/DirectMode.h" #include "LoadBalancing-cpp/inc/Enums/Lo...
shirobusa1997/UE-PhotonSandbox
Source/Photon/Common-cpp/inc/Helpers/SmartPointers/SharedPointerBase.h
<gh_stars>0 /* Exit Games Common - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "Common-cpp/inc/Helpers/SmartPointers/SmartPointerInterface.h" namespace ExitGames { namespace Common { namespace Helper...
shirobusa1997/UE-PhotonSandbox
Source/Photon/Common-cpp/inc/Helpers/Spinlock.h
/* Exit Games Common - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "Common-cpp/inc/Helpers/Thread.h" #ifdef EG_PLATFORM_SUPPORTS_ATOMICS # include <atomic> #endif namespace ExitGames { namespace Common ...
shirobusa1997/UE-PhotonSandbox
Source/PhotonSandbox/PhotonAPI2UE4/PA2U_LBClientActor.h
#pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "PA2U_LoadBalancingListener.h" #include "PA2U_LBClientActor.generated.h" UCLASS() class PA2U_LBClientActor : public AActor, public PA2U_BaseView { GENERATED_BODY() public: PA2U_LBClientActor(){} ~PA2U_LBClientAc...
shirobusa1997/UE-PhotonSandbox
Source/Photon/Common-cpp/inc/ANSIString.h
/* Exit Games Common - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "Common-cpp/inc/BaseCharString.h" namespace ExitGames { namespace Common { class ANSIString : public BaseCharString { public: ...
shirobusa1997/UE-PhotonSandbox
Source/Photon/LoadBalancing-cpp/inc/Internal/PuncherClient.h
/* Exit Games Photon LoadBalancing - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "Photon-cpp/inc/Punchthrough/Puncher.h" #include "Photon-cpp/inc/Punchthrough/PunchListener.h" #include "Photon-cpp/inc/Pun...
shirobusa1997/UE-PhotonSandbox
Source/Photon/Photon-cpp/inc/Version.h
#define EG_PHOTON_STRINGIFY3(param) L##param #define EG_PHOTON_STRINGIFY2(param) EG_PHOTON_STRINGIFY3(#param) #define EG_PHOTON_STRINGIFY(param) EG_PHOTON_STRINGIFY2(param) #define EG_PHOTON_PROTOCOL_VERSION_MAJOR 1 #define EG_PHOTON_PROTOCOL_VERSION_MINOR 6 #define EG_PHOTON_CLIENT_VERSION_MAJOR 4 ...
shirobusa1997/UE-PhotonSandbox
Source/PhotonSandbox/PhotonAPI2UE4/PA2U_Console.h
<reponame>shirobusa1997/UE-PhotonSandbox<gh_stars>0 #pragma once #include "PA2U_OutputListener.h" class ConsoleImplementation; class Console : public OutputListener { public: Console(void); ~Console(void); void update(void); void write(const ExitGames::Common::JString& str); void writeLine(const ExitGames::Comm...
shirobusa1997/UE-PhotonSandbox
Source/Photon/LoadBalancing-cpp/inc/Room.h
/* Exit Games Photon LoadBalancing - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "LoadBalancing-cpp/inc/Internal/RoomFactory.h" #include "LoadBalancing-cpp/inc/Internal/RoomPropertiesCacher.h" namespace ...
shirobusa1997/UE-PhotonSandbox
Source/Photon/Photon-cpp/inc/Punchthrough/PunchListener.h
#pragma once #include "Common-cpp/inc/Common.h" namespace ExitGames { namespace Photon { namespace Punchthrough { class PunchListener { public: virtual ~PunchListener(void){}; virtual void onDirectConnectionEstablished(int /*remoteID*/) {} virtual void onDirectConnectionFailedToEstablish(i...
shirobusa1997/UE-PhotonSandbox
Source/Photon/LoadBalancing-cpp/inc/Enums/PeerStates.h
<gh_stars>0 /* Exit Games Photon LoadBalancing - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once namespace ExitGames { namespace LoadBalancing { namespace PeerStates { static const int Uninitialized ...
shirobusa1997/UE-PhotonSandbox
Source/Photon/Common-cpp/inc/Helpers/RemovePointer.h
/* Exit Games Common - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once namespace ExitGames { namespace Common { namespace Helpers { template<typename T> struct RemovePointer { typedef T type; }; tem...
shirobusa1997/UE-PhotonSandbox
Source/Photon/LoadBalancing-cpp/inc/WebFlags.h
/* Exit Games Photon LoadBalancing - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "Common-cpp/inc/Common.h" namespace ExitGames { namespace LoadBalancing { class WebFlags : public Common::Base { p...
shirobusa1997/UE-PhotonSandbox
Source/PhotonSandbox/PhotonAPI2UE4/PA2U_OutputListener.h
<reponame>shirobusa1997/UE-PhotonSandbox #pragma once #include <iostream> #include "Common-cpp/inc/Common.h" #if defined _EG_ANDROID_PLATFORM # include <android/log.h> #elif defined _EG_SWITCH_WINDOWS_PLATFORM # include <nn/nn_Log.h> #endif class OutputListener : public virtual ExitGames::Common::BaseListener { prote...
shirobusa1997/UE-PhotonSandbox
Source/Photon/LoadBalancing-cpp/inc/Listener.h
<filename>Source/Photon/LoadBalancing-cpp/inc/Listener.h /* Exit Games Photon LoadBalancing - C++ Client Lib * Copyright (C) 2004-2020 by Exit Games GmbH. All rights reserved. * http://www.photonengine.com * mailto:<EMAIL> */ #pragma once #include "Photon-cpp/inc/OperationResponse.h" #include "LoadBalancing-cpp/i...