repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
chuahou/wrtele | src/wrtele.c | // SPDX-License-Identifier: MIT
// Copyright (c) 2021 <NAME>
#define _GNU_SOURCE
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "botapi.h"
#include "config.h"
#include "mac.h"
int main(int argc, char **argv)
{
// Get list of devices to watch.
size_t macs... |
chuahou/wrtele | src/botapi.h | // SPDX-License-Identifier: MIT
// Copyright (c) 2021 <NAME>
//
// Bot API helper functions.
#ifndef __BOTAPI_H_INCLUDE__
#define __BOTAPI_H_INCLUDE__
#include <stdbool.h>
// Uses Telegram Bot API to send a message to the target user.
// Returns true on success.
bool tele_send_message(char *msg);
#endif
|
chuahou/wrtele | src/mac.c | <reponame>chuahou/wrtele<filename>src/mac.c
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 <NAME>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include "mac.h"
struct device *check_status(struct device *devs, size_t devs_len, size_t *changed_len)
{
*change... |
chuahou/wrtele | src/mac.h | <filename>src/mac.h
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 <NAME>
//
// Functions to get information about MAC addresses.
#ifndef __WRTELE_MAC_H_INCLUDED__
#define __WRTELE_MAC_H_INCLUDED__
#include <stdbool.h>
#include <stddef.h>
#define MAX_DEVICE_NAME_LEN 46 // 64 - 18
// Status of a MAC address a... |
bijoumd78/ecal | ecal/core/src/mon/ecal_monitoring_def.h | <filename>ecal/core/src/mon/ecal_monitoring_def.h
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
bijoumd78/ecal | ecal/core/src/readwrite/ecal_writer_shm.h | <filename>ecal/core/src/readwrite/ecal_writer_shm.h
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License... |
bijoumd78/ecal | lib/CustomQt/include/CustomQt/QGroupByProxyModel.h | /* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* 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
*
* ... |
bijoumd78/ecal | app/mon/topic/src/ecal_topic_defs.h | ;/* ========================= eCAL LICENSE =================================
; *
; * Copyright (C) 2016 - 2019 Continental Corporation
; *
; * 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
... |
bijoumd78/ecal | app/rec/rec_core/src/recorder.h | /* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* 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
*
* ... |
bijoumd78/ecal | contrib/ecalproto/include/ecal/protobuf/ecal_proto_dyn.h | /* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* 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
*
* ... |
bijoumd78/ecal | lib/CustomQt/include/CustomQt/QAdvancedTreeView.h | /* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* 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
*
* ... |
bijoumd78/ecal | contrib/ecalproto/include/ecal/protobuf/ecal_proto_hlp.h | <reponame>bijoumd78/ecal
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* 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 ... |
bijoumd78/ecal | My_Working_Opencv_Protobuf/image.pb.h | <gh_stars>0
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: image.proto
#ifndef PROTOBUF_image_2eproto__INCLUDED
#define PROTOBUF_image_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3000000
#error This file was generated by a newer... |
bijoumd78/ecal | app/mon/mon_gui/src/widgets/models/log_model.h | <filename>app/mon/mon_gui/src/widgets/models/log_model.h<gh_stars>0
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance... |
bijoumd78/ecal | ecal/core/include/ecal/msg/protobuf/server.h | /* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* 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
*
* ... |
bijoumd78/ecal | ecal/core/src/readwrite/ecal_reader.h | /* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* 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
*
* ... |
bijoumd78/ecal | app/mon/mon_gui/src/widgets/models/service_tree_model.h | <filename>app/mon/mon_gui/src/widgets/models/service_tree_model.h
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance wi... |
bijoumd78/ecal | app/mon/mon_gui/src/widgets/models/topic_tree_model.h | /* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* 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
*
* ... |
bijoumd78/ecal | ecal/core/src/ecal_timegate.h | /* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
*
* 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
*
* ... |
danielcdev/libserver | src/factory/headers/SocketFactory.h | /*
* SocketFactory.h
*
* Created on: Aug 11, 2015
* Author: <NAME>
*/
#ifndef FACTORY_SOCKETFACTORY_H_
#define FACTORY_SOCKETFACTORY_H_
#include <sys/socket.h>
#include <netinet/in.h>
#include "../../interface/headers/ServerSocket.h"
#include "../../interface/headers/ClientSocket.h"
#include "../../model/h... |
danielcdev/libserver | src/interface/headers/ClientSocket.h | <gh_stars>0
/*
* ClientSocket.h
*
* Created on: Aug 15, 2015
* Author: <NAME>
*/
#ifndef INTERFACE_CLIENTSOCKET_H_
#define INTERFACE_CLIENTSOCKET_H_
class ClientSocket {
public:
virtual ~ClientSocket();
};
#endif /* INTERFACE_CLIENTSOCKET_H_ */
|
danielcdev/libserver | src/model/headers/Client.h | /*
* Client.h
*
* Created on: Aug 12, 2015
* Author: <NAME>
*/
#ifndef MODEL_CLIENT_H_
#define MODEL_CLIENT_H_
#include <string>
#include <sys/socket.h>
#include <unistd.h>
using namespace std;
class Client {
protected:
int socket = 0;
public:
string readUntil(string delimiter);
void send(string data... |
danielcdev/libserver | src/utility/headers/StringUtility.h | <reponame>danielcdev/libserver
/*
* StringUtility.h
*
* Created on: Aug 14, 2015
* Author: <NAME>
*/
#ifndef UTILITY_STRINGUTILITY_H_
#define UTILITY_STRINGUTILITY_H_
#include <string>
#include <list>
using namespace std;
class StringUtility {
public:
static unsigned int findOccurrences(string data, st... |
danielcdev/libserver | src/interface/headers/ThreadTask.h | /*
* ThreadTask.h
*
* Created on: Aug 12, 2015
* Author: <NAME>
*/
#ifndef INTERFACE_THREADTASK_H_
#define INTERFACE_THREADTASK_H_
#include "../../model/headers/Client.h"
class ThreadTask {
public:
virtual void performTask(Client client);
virtual ~ThreadTask();
};
#endif /* INTERFACE_THREADTASK_H_ */
|
danielcdev/libserver | include/ThreadManager.h | <filename>include/ThreadManager.h
/*
* ThreadManager.h
*
* Created on: Aug 15, 2015
* Author: <NAME>
*/
#ifndef INTERFACE_THREADMANAGER_H_
#define INTERFACE_THREADMANAGER_H_
#include <libserver/ThreadTask.h>
#include <libserver/Client.h>
class ThreadManager {
public:
virtual ~ThreadManager();
virtual v... |
danielcdev/libserver | include/ServerSocket.h | /*
* ServerSocket.h
*
* Created on: Aug 16, 2015
* Author: <NAME>
*/
#ifndef INTERFACE_SERVERSOCKET_H_
#define INTERFACE_SERVERSOCKET_H_
#include <libserver/Client.h>
class ServerSocket {
public:
virtual ~ServerSocket();
virtual void setPort(unsigned short int port);
virtual void setTimeoutSeconds(int... |
danielcdev/libserver | src/interface/headers/ThreadManager.h | /*
* ThreadManager.h
*
* Created on: Aug 15, 2015
* Author: <NAME>
*/
#ifndef INTERFACE_THREADMANAGER_H_
#define INTERFACE_THREADMANAGER_H_
#include "../../interface/headers/ThreadTask.h"
#include "../../model/headers/Client.h"
class ThreadManager {
public:
virtual ~ThreadManager();
virtual void genera... |
danielcdev/libserver | src/factory/headers/ThreadManagerFactory.h | /*
* ThreadManagerFactory.h
*
* Created on: Aug 15, 2015
* Author: <NAME>
*/
#ifndef FACTORY_THREADMANAGERFACTORY_H_
#define FACTORY_THREADMANAGERFACTORY_H_
#include <condition_variable>
#include <exception>
#include <mutex>
#include <thread>
#include <map>
#include <unistd.h>
#include "../../interface/hea... |
bluescan/tacit-texview | Src/InputBindings.h | <filename>Src/InputBindings.h
// InputBindings.h
//
// Allows you to set key bindings for all TacentView operations.
//
// Copyright (c) 2022 <NAME>.
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby
// granted, provided that the above copyright notice and... |
bluescan/tacit-texview | Src/Dialogs.h | // Dialogs.h
//
// Various dialogs and helpers including a log window, info overlay, cheatsheet, help window, and about window.
//
// Copyright (c) 2019, 2020, 2021, 2022 <NAME>.
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby
// granted, provided that t... |
bluescan/tacit-texview | Src/Image.h | // Image.h
//
// An image class that can load a file from disk into main memory and to VRAM.
//
// Copyright (c) 2019-2022 <NAME>.
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby
// granted, provided that the above copyright notice and this permiss... |
bluescan/tacit-texview | Src/Profile.h | // Profile.h
//
// The viewer profile enum.
//
// Copyright (c) 2022 <NAME>.
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby
// granted, provided that the above copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVI... |
bluescan/tacit-texview | Src/Version.cmake.h | <reponame>bluescan/tacit-texview
#pragma once
#define set(verStr) namespace ViewerVersion { extern int Major, Minor, Revision; struct Parser { Parser(const char*); }; static Parser parser(#verStr); }
set("VIEWER_VERSION" "1.0.27")
#undef set
|
bluescan/tacit-texview | Src/FileDialog.h | <gh_stars>10-100
// FileDialog.h
//
// Dialog that allows selection of a file or directory. May be used for opening a file/directory or saving to a file.
//
// Copyright (c) 2021, 2022 <NAME>.
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby
// granted, p... |
bluescan/tacit-texview | Src/Config.h | // Config.h
//
// Viewer settings stored as human-readable symbolic expressions.
//
// Copyright (c) 2019, 2020, 2021, 2022 <NAME>.
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby
// granted, provided that the above copyright notice and this permission n... |
iFindTA/NHKeyboardPro | NHKeyboardPro/KeyBoard/NHKeyboard.h | //
// NHKeyboard.h
// NHKeyboardPro
//
// Created by <NAME> on 16/3/15.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef enum{
NHKBTypeNumberPad = 1 << 0,
NHKBTypeDecimalPad = 1 << 1,
NHKBTypeASCIICapable = 1 << 2
}NHKBType;
/*!
* @brief Dependency:Masonry framew... |
Goallying/MQTT | AppDelegate.h | //
// AppDelegate.h
// MQTT
//
// Created by Lifee on 2019/12/23.
// Copyright © 2019 Lifee. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@end
|
Goallying/MQTT | ViewController.h | //
// ViewController.h
// MQTT
//
// Created by Lifee on 2019/12/23.
// Copyright © 2019 Lifee. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
HassanElDesouky/OperationQueueLeak | OperationQueueLeak/OperationQueueLeak/InternalService.h | //
// InternalService.h
// OperationQueueLeak
//
// Created by <NAME> on 21/10/2021.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class CoreDataLayer;
@interface InternalService : NSObject
- (instancetype)initWithCoreDataLayer:(CoreDataLayer *)coreDataLayer;
@end
NS_ASSUME_NONNULL_END
|
HassanElDesouky/OperationQueueLeak | OperationQueueLeak/OperationQueueLeak/OperationQueueLeak-Bridging-Header.h | //
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import "InternalService.h"
#import "CoreDataLayer.h"
|
HassanElDesouky/OperationQueueLeak | OperationQueueLeak/OperationQueueLeak/CoreDataLayer.h | //
// CoreDataLayer.h
// OperationQueueLeak
//
// Created by <NAME> on 21/10/2021.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface CoreDataLayer : NSObject
@property (atomic, strong) NSOperationQueue *afterInitializationCoreDataQueue;
@end
NS_ASSUME_NONNULL_END
|
AbdullahAbaza/cs50-progress | pset2/readability/readability2.c | #include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
int index(string text);
int main(void)
{
string text = get_string("Text: ");
int grade = index(text);
//printing Grade
if (grade < 1)
{
printf("Before Grade 1\n");
}
else if (grade >= 16)
... |
AbdullahAbaza/cs50-progress | counter.c | #include <cs50.h>
#include <stdio.h>
#include <unistd.h>
int main(void)
{
int s;
int m;
do
{
s = get_int("starting number: ");
m = get_int("the maximum number to count to: ");
}
while (s >= m || s < 0);
for (int i = s ; m >= i; i++)
{
printf("%i\n", i);
s... |
AbdullahAbaza/cs50-progress | condetions.c | #include <stdio.h>
#include <cs50.h>
#include <unistd.h>
int main(void)
{
int x = get_int("x == ");
int y = get_int("y == ");
if (x < y)
{
printf("x is less than y\n");
}
else if (x > y)
{
printf("x is greater than y\n");
}
else
{
printf("x is equal to y\n");
}
... |
AbdullahAbaza/cs50-progress | pset2/substitution/substitution1.c | #include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <ctype.h>
int verify_key(string argv[]);
int main(int argc, string argv[])
{
//terminating the program if the key is not valid
string key = argv[1];
if (argc != 2 || verify_key(argv) == 1)
{
printf("Usage: ./substitution key\n");... |
AbdullahAbaza/cs50-progress | pset2/substitution/substitution.c | <reponame>AbdullahAbaza/cs50-progress<filename>pset2/substitution/substitution.c
#include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <ctype.h>
bool verify_key(string key);
int main(int argc, string argv[])
{
//terminating the program if the key is not valid
string key = argv[1];
if (argc != 2... |
AbdullahAbaza/cs50-progress | pset1/cash/cash2.c | //Greedy Algorithms
#include <stdio.h>
#include <cs50.h>
#include <math.h>
float change(void);
int main(void)
{
float n = change();
int cents = round(n * 100);
int coins = 0;
int denominations[] = {25, 10, 5, 1};
int size = sizeof(denominations)/sizeof(int);
for (int i = 0; i < size; i++)
... |
AbdullahAbaza/cs50-progress | pset1/cash/cash.c | //Greedy Algorithms
#include <stdio.h>
#include <cs50.h>
#include <math.h>
float change(void);
int main(void)
{
float n = change();
//round cents to the nearest penny
int cents = round(n * 100);
int coins = 0;
int quarters = 0;
int dimes = 0;
int nickels = 0;
int pennies = 0;
//st... |
AbdullahAbaza/cs50-progress | pset2/readability/readability.c | #include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
int count_letters(string text);
int count_words(string text);
int count_sentences(string text);
int index(string text);
int main(void)
{
string text = get_string("Text: ");
int grade = index(text);
//printing Grad... |
AbdullahAbaza/cs50-progress | pset1/mario/mario.c |
#include <cs50.h>
#include <stdio.h>
void print(char c, int n);
int main(void)
{
int n;
do
{
// prompt user for input
n = get_int("Hieght: ");
}
while (n < 1 || n > 8);
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
if (i + j < n -... |
AbdullahAbaza/cs50-progress | pset2/caesar/caesar2.c | #include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
bool verify_digit(string key);
int main(int argc, string argv[])
{
//Check that program was run with one command-line argument
while (argc != 2 || ! verify_digit(argv[1]))
{
printf("Usage: ./caesar key\... |
AbdullahAbaza/cs50-progress | pset1/credit/credit.c | #include <stdio.h>
#include <cs50.h>
bool check_validity(long number);
int find_length(long number);
bool checksum(long number);
void print_brand(long number);
int main(void)
{
long number;
do
{
number = get_long("Number: ");
}
while (number < 0);
if (check_validity(number) == true)
... |
AbdullahAbaza/cs50-progress | credit.c | #include <stdio.h>
#include <cs50.h>
// recall functions
bool check_validity(long number);
int find_length(long number);
bool checksum(long number);
void print_brand(long number);
int main(void)
{
// prompting the user for input
long number;
do
{
number = get_long("Number: ");
... |
moj3ve/DarkKeysReborn | DarkKeys.h | <gh_stars>1-10
bool enabled;
bool darkkeys;
bool nocaps;
bool nolight;
bool nlm;
@interface UIKeyboard : UIView
@end
@interface UIKeyboardDockView : UIView
@end
@interface UIKeyboardLayoutStar : UIView
@end
@interface UIKBKeyView : UIView
@end
@interface UIUserInterfaceStyleArbiter : NSObject
+ (id) sharedInstance... |
RahulM98/Language-Dictionary | Dictionary.c | <reponame>RahulM98/Language-Dictionary
//The Dictionary Program
//Password required for some purposes
//The Password is "<PASSWORD>..."
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
#include<conio.h>
#define w_size 25
#define m_size 250
char word_list[100];
int cursor_pos = 0;
st... |
VendorSniper/reg | Wrapper/Wrapper.h | <reponame>VendorSniper/reg
#pragma once
#include "CHECK.h"
#include <itkObject.h>
#include <itkSmartPointer.h>
#include <memory>
#include <type_traits>
#include <typeinfo>
#include <vector>
#include <vtkObject.h>
#include <vtkSmartPointer.h>
namespace reg {
/// \struct AbstractWrapper
/// \brief abstrac... |
VendorSniper/reg | CHECK/CHECK.h | #pragma once
#include <exception>
#include <iostream>
#include <string>
namespace reg {
/// \struct CHECK
/// \brief error checking class
/// \details avoid exceptions because they cause undefined behavior; rather, use
/// detailed reporting
/// \note every class should directly or indirectly be derived fr... |
VendorSniper/reg | Reader/Reader.h | <reponame>VendorSniper/reg<filename>Reader/Reader.h
#pragma once
#include "Wrapper.h"
#include <itkImage.h>
#include <itkImageFileReader.h>
namespace reg {
/// \struct Reader
/// \brief read an image into itk::Image<double, 3>
/// \note \var Wrapper<std::string> requires a fully qualified file path and exten... |
VendorSniper/reg | Observer/Observer.h | <gh_stars>0
#pragma once
#include "ITKtoVTK.h"
#include "Visualizer.h"
#include "Wrapper.h"
#include <itkCenteredTransformInitializer.h>
#include <itkCommand.h>
#include <itkGradientDescentOptimizerv4.h>
#include <itkImage.h>
#include <itkImageRegistrationMethodv4.h>
#include <itkLinearInterpolateImageFunction.h>
#in... |
VendorSniper/reg | ITKtoVTK/ITKtoVTK.h | #pragma once
#include "Wrapper.h"
#include <itkImage.h>
#include <itkImageToVTKImageFilter.h>
#include <vtkImageData.h>
namespace reg {
/// \struct ITKtoVTK
/// \brief converts itk::Image<double, 3> to vtk::ImageData
/// \warning requires itk to be built with ITKVTKglue
struct ITKtoVTK : Wrapper<itk::Image... |
VendorSniper/reg | Registrator/Registrator.h | <filename>Registrator/Registrator.h
#pragma once
#include "Observer.h"
#include "Wrapper.h"
#include <itkCenteredTransformInitializer.h>
#include <itkGradientDescentOptimizerv4.h>
#include <itkImage.h>
#include <itkImageRegistrationMethodv4.h>
#include <itkLinearInterpolateImageFunction.h>
#include <itkMattes... |
VendorSniper/reg | Writer/Writer.h | <reponame>VendorSniper/reg
#pragma once
#include "Wrapper.h"
#include <itkImage.h>
#include <itkImageFileWriter.h>
namespace reg {
/// \struct Writer
/// \brief writes itk::Image<double, 3> to given filename
/// \note \var Wrapper<std::string> requires a fully qualified file path and extension
struct Writer... |
VendorSniper/reg | Visualizer/Visualizer.h | #pragma once
#include "ITKtoVTK.h"
#include <limits>
#include <vtkImageShiftScale.h>
#include <vtkImageThreshold.h>
#include <vtkPiecewiseFunction.h>
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkRenderer.h>
#include <vtkSmartVolumeMapper.h>
#include <vtkVolume.h>
#includ... |
maxgerhardt/framework-arduinostm32 | system/Middlewares/ST/STM32_USB_Host_Library/Class/HID/Inc/usbh_hid_usage.h | /**
******************************************************************************
* @file usbh_hid_usage.c
* @author MCD Application Team
* @brief This file contain the USAGE page codes
******************************************************************************
* @attention
*
* <h2><center>&co... |
maxgerhardt/framework-arduinostm32 | system/Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_core.c | /**
******************************************************************************
* @file usbh_core.c
* @author MCD Application Team
* @brief This file implements the functions for the core state machine process
* the enumeration and the control transfer process
*****************************... |
maxgerhardt/framework-arduinostm32 | cores/arduino/stm32/usb/cdc/cdc_queue.h | /**
******************************************************************************
* @file cdc_queue.h
* @author makarenya
* @version V1.0.0
* @date 23-December-2018
* @brief Header for cdc_queue.c module
******************************************************************************
* @attentio... |
maxgerhardt/framework-arduinostm32 | cores/arduino/stm32/PinAF_STM32F1.h | <reponame>maxgerhardt/framework-arduinostm32<filename>cores/arduino/stm32/PinAF_STM32F1.h
/*
*******************************************************************************
* Copyright (c) 2017, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modi... |
maxgerhardt/framework-arduinostm32 | variants/FK407M1/variant.h | /*
*******************************************************************************
* Copyright (c) 2017, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... |
maxgerhardt/framework-arduinostm32 | system/Middlewares/ST/STM32_USB_Device_Library/Class/AUDIO/Inc/usbd_audio.h | <gh_stars>1-10
/**
******************************************************************************
* @file usbd_audio.h
* @author MCD Application Team
* @brief header file for the usbd_audio.c file.
******************************************************************************
* @attention
*
* <h2>... |
maxgerhardt/framework-arduinostm32 | cores/arduino/stm32/usb/cdc/usbd_cdc_if.h | /**
******************************************************************************
* @file usbd_cdc_if.h
* @author MCD Application Team
* @brief Header for usbd_cdc_if.c file.
******************************************************************************
* @attention
*
* <h2><center>© Copyrig... |
maxgerhardt/framework-arduinostm32 | system/Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Src/usbh_msc_scsi.c | /**
******************************************************************************
* @file usbh_msc_scsi.c
* @author MCD Application Team
* @brief This file implements the SCSI commands
******************************************************************************
* @attention
*
* <h2><center>&cop... |
maxgerhardt/framework-arduinostm32 | system/Middlewares/ST/STM32_USB_Device_Library/Class/CustomHID/Src/usbd_customhid_if_template.c | /**
******************************************************************************
* @file usbd_customhid_if_template.c
* @author MCD Application Team
* @brief USB Device Custom HID interface file.
* This template should be copied to the user folder, renamed and customized
* following u... |
pavelsevecek/OpenSPH | core/system/Profiler.h | <gh_stars>10-100
#pragma once
/// \file Profiler.h
/// \brief Tool to measure time spent in functions and profile the code
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "io/Logger.h"
#include "objects/wrappers/Optional.h"
#include "system/Platform.h"
#include "system/Timer.h"
#include <atomic>... |
pavelsevecek/OpenSPH | gui/objects/Point.h | #pragma once
/// \file Point.h
/// \brief Simple 2D vector with integer coordinates. Provides conversion from and to wxPoint.
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "math/MathUtils.h"
#include "objects/Object.h"
#include "objects/utility/IteratorAdapters.h"
#include <wx/gdicmn.h>
NAMES... |
pavelsevecek/OpenSPH | gui/Factory.h | #pragma once
#include "gui/Settings.h"
#include "objects/containers/FlatMap.h"
#include "objects/wrappers/AutoPtr.h"
#include "objects/wrappers/ExtendedEnum.h"
NAMESPACE_SPH_BEGIN
class ICamera;
class IColorizer;
class IRenderer;
class Palette;
struct Pixel;
class Interval;
class ITracker;
class IBrdf;
class IColorM... |
pavelsevecek/OpenSPH | core/thread/Tbb.h | #pragma once
/// \file Tbb.h
/// \brief Implements IScheduler interface using TBB.
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "objects/wrappers/PropagateConst.h"
#include "thread/Scheduler.h"
NAMESPACE_SPH_BEGIN
struct TbbData;
/// \brief Scheduler encapsulating Intel Thread Building Blo... |
pavelsevecek/OpenSPH | core/objects/geometry/Multipole.h | #pragma once
#include "objects/containers/StaticArray.h"
#include "objects/geometry/Vector.h"
NAMESPACE_SPH_BEGIN
/// c++14 sort of template parameters
template <Size... Is>
constexpr auto sortIndices() {
constexpr Size N = sizeof...(Is);
ConstexprArray<Size, N> array{ Is... };
for (Size i = 0; i < N - ... |
pavelsevecek/OpenSPH | core/sph/initial/Stellar.h | #pragma once
/// \file Stellar.h
/// \brief Initial conditions of a polytropic star
/// \author <NAME> (sevecek at <EMAIL>)
/// \date 2016-2021
#include "objects/wrappers/Lut.h"
#include "quantities/Storage.h"
NAMESPACE_SPH_BEGIN
class IEos;
namespace Stellar {
/// \brief Solves the Lane-Emden equation given the ... |
pavelsevecek/OpenSPH | core/run/jobs/GeometryJobs.h | <filename>core/run/jobs/GeometryJobs.h<gh_stars>10-100
#pragma once
#include "run/Job.h"
NAMESPACE_SPH_BEGIN
class SphereJob : public IGeometryJob {
private:
Float radius = 1.e5_f;
public:
explicit SphereJob(const std::string& name);
virtual std::string className() const override;
virtual Unordere... |
pavelsevecek/OpenSPH | core/objects/containers/UnorderedMap.h | <gh_stars>10-100
#pragma once
/// \file UnorderedMap.h
/// \brief Key-value associative container
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "objects/containers/Array.h"
#include "objects/wrappers/Optional.h"
NAMESPACE_SPH_BEGIN
template <typename TKey, typename TValue>
class UnorderedMap... |
pavelsevecek/OpenSPH | core/objects/finders/KdTree.h | #pragma once
/// \file KdTree.h
/// \brief K-d tree for efficient search of neighboring particles.
/// \author <NAME> (sevecek at sirrah.troja.m<EMAIL>))
/// \date 2016-2021
#include "io/Logger.h"
#include "objects/finders/NeighborFinder.h"
#include "objects/geometry/Box.h"
#include "objects/utility/IteratorAdapters.... |
pavelsevecek/OpenSPH | gui/renderers/ParticleRenderer.h | #pragma once
/// \file ParticleRenderer.h
/// \brief Renderer drawing individual particles as dots
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "gui/Settings.h"
#include "gui/objects/Bitmap.h"
#include "gui/objects/Palette.h"
#include "gui/renderers/IRenderer.h"
#include "system/Timer.h"
#inc... |
pavelsevecek/OpenSPH | core/physics/Integrals.h | <reponame>pavelsevecek/OpenSPH<filename>core/physics/Integrals.h
#pragma once
/// \file Integrals.h
/// \brief Integrals of motion and other integral quantities
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "common/ForwardDecl.h"
#include "math/Means.h"
#include "objects/containers/Array.h"
#i... |
pavelsevecek/OpenSPH | gui/windows/PlotView.h | <reponame>pavelsevecek/OpenSPH<filename>gui/windows/PlotView.h
#pragma once
/// \file PlotView.h
/// \brief Drawing of plots
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "gui/objects/GraphicsContext.h"
#include "gui/objects/Plots.h"
#include "gui/objects/Point.h"
#include "gui/windows/Widgets... |
pavelsevecek/OpenSPH | core/objects/wrappers/AutoPtr.h | <filename>core/objects/wrappers/AutoPtr.h
#pragma once
/// \file AutoPtr.h
/// \brief Simplified implementation of std::unique_ptr, using only default deleter.
/// \author <NAME> (sevecek at sirrah.tro<EMAIL>)
/// \date 2016-2021
#include "objects/wrappers/AlignedStorage.h"
#include "objects/wrappers/RawPtr.h"
NAMES... |
pavelsevecek/OpenSPH | core/sph/equations/HelperTerms.h | #pragma once
/// \file HelperTerms.h
/// \brief Additional equation terms computing SPH statistics rather than physical quantities
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "io/FileSystem.h"
#include "run/ScriptUtils.h"
#include "sph/equations/DerivativeHelpers.h"
#include "sph/equations/E... |
pavelsevecek/OpenSPH | bench/Session.h | <filename>bench/Session.h
#pragma once
/// \file Session.h
/// \brief Benchmark
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "bench/Common.h"
#include "bench/Stats.h"
#include "io/Logger.h"
#include "io/Path.h"
#include "objects/containers/Array.h"
#include "objects/utility/StringUtils.h"
#in... |
pavelsevecek/OpenSPH | core/objects/geometry/Indices.h | <reponame>pavelsevecek/OpenSPH<filename>core/objects/geometry/Indices.h
#pragma once
/// \file Indices.h
/// \brief Vectorized computations with integral numbers
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "objects/Object.h"
#include "objects/geometry/Vector.h"
NAMESPACE_SPH_BEGIN
#define ... |
pavelsevecek/OpenSPH | gui/windows/SessionDialog.h | <filename>gui/windows/SessionDialog.h
#pragma once
#include "run/Node.h"
#include <wx/dialog.h>
NAMESPACE_SPH_BEGIN
class SessionDialog : public wxDialog {
private:
SharedPtr<JobNode> preset;
public:
SessionDialog(wxWindow* parent, UniqueNameManager& nameMgr);
SharedPtr<JobNode> selectedPreset() const ... |
pavelsevecek/OpenSPH | core/run/jobs/MaterialJobs.h | #pragma once
#include "run/Job.h"
NAMESPACE_SPH_BEGIN
class MaterialProvider {
protected:
BodySettings body;
public:
explicit MaterialProvider(const BodySettings& overrides = EMPTY_SETTINGS);
protected:
void addMaterialEntries(VirtualSettings::Category& category, Function<bool()> enabler);
};
class Ma... |
pavelsevecek/OpenSPH | core/objects/utility/Iterator.h | <reponame>pavelsevecek/OpenSPH<gh_stars>10-100
#pragma once
/// \file Iterator.h
/// \brief Ordinary iterator for custom containers.
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "common/Assert.h"
#include "common/Traits.h"
#include <iterator>
NAMESPACE_SPH_BEGIN
/// \brief Simple (forward) ... |
pavelsevecek/OpenSPH | gui/Utils.h | #pragma once
/// \file Utils.h
/// \brief Random utility functions for drawing stuff to DC
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "common/Globals.h"
#include "gui/renderers/IRenderer.h"
#include "objects/Object.h"
#include "objects/wrappers/Flags.h"
#include "run/VirtualSettings.h"
#inc... |
pavelsevecek/OpenSPH | gui/Project.h | #pragma once
#include "gui/Settings.h"
#include "gui/objects/Palette.h"
#include "objects/containers/CallbackSet.h"
#include "run/Config.h"
#include "thread/CheckFunction.h"
NAMESPACE_SPH_BEGIN
/// \todo deduplicate
inline std::string getIdentifier(const std::string& name) {
std::string escaped = replaceAll(nam... |
pavelsevecek/OpenSPH | core/math/Means.h | #pragma once
/// \file Means.h
/// \brief Computing minimum, maximum and mean value of floats.
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "objects/geometry/Generic.h"
#include "objects/wrappers/Interval.h"
NAMESPACE_SPH_BEGIN
/// \brief Generalized mean with fixed (compile-time) power.
te... |
pavelsevecek/OpenSPH | gui/windows/PaletteDialog.h | <gh_stars>10-100
#pragma once
#include "gui/objects/Palette.h"
#include "objects/containers/UnorderedMap.h"
#include "objects/wrappers/Function.h"
#include <wx/frame.h>
#include <wx/panel.h>
NAMESPACE_SPH_BEGIN
class ComboBox;
class FloatTextCtrl;
class PaletteCanvas;
class PalettePanel : public wxPanel {
private:
... |
pavelsevecek/OpenSPH | core/objects/containers/AdvancedAllocators.h | #pragma once
#include "objects/containers/BasicAllocators.h"
NAMESPACE_SPH_BEGIN
/// \brief Allocator that obtains memory blocks from given memory resource.
///
/// Allocator does not own the resource, therefore the resource must exist as long as any object that uses the
/// allocator. Allocator cannot deallocate me... |
pavelsevecek/OpenSPH | core/timestepping/TimeStepping.h | <reponame>pavelsevecek/OpenSPH<filename>core/timestepping/TimeStepping.h
#pragma once
/// \file TimeStepping.h
/// \brief Algorithms for temporal evolution of the physical model.
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "common/ForwardDecl.h"
#include "objects/containers/Array.h"
#include... |
pavelsevecek/OpenSPH | core/timestepping/TimeStepCriterion.h | #pragma once
/// \file TimeStepCriterion.h
/// \brief Criteria for computing the time step
/// \author <NAME> (sevecek at s<EMAIL>)
/// \date 2016-2021
#include "common/ForwardDecl.h"
#include "objects/containers/Array.h"
#include "objects/wrappers/AutoPtr.h"
#include "quantities/QuantityIds.h"
NAMESPACE_SPH_BEGIN
... |
pavelsevecek/OpenSPH | core/objects/Exceptions.h | <reponame>pavelsevecek/OpenSPH
#pragma once
#include "common/Globals.h"
#include <exception>
#include <string>
NAMESPACE_SPH_BEGIN
/// \brief Generic exception
class Exception : public std::exception {
private:
std::string message;
public:
explicit Exception(const std::string& message)
: message(mes... |
pavelsevecek/OpenSPH | core/math/MathUtils.h | #pragma once
/// \file MathUtils.h
/// \brief Additional math routines (with more includes).
/// \author <NAME> (sevecek at <EMAIL>)
/// \date 2016-2021
#include "common/Assert.h"
#include "math/MathBasic.h"
#include <cmath>
#include <cstring>
#include <limits>
#include <utility>
NAMESPACE_SPH_BEGIN
/// Small value... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.