repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
alexjj/https_dns_proxy | src/dns_poller.h | #ifndef _DNS_POLLER_H_
#define _DNS_POLLER_H_
#include <ares.h>
#include <ev.h>
// Fast DNS querying mode
// Requests will be send after 0, 0.8, 1.3, 1.75 second
// And waiting extra 4.2 seconds for reply
// That's total: 8,05 second for trying
#define POLLER_QUERY_TIMEOUT_MS 700
#define POLLER_QUERY_TRIES 4
// enou... |
alexjj/https_dns_proxy | src/stat.h | <gh_stars>100-1000
// Statistics tracking
//
// Connection, request and latency statistics are accumulated in a struct
// and output periodically via a libev timer callback.
//
// stat_init() initializes this struct and starts the timer if required.
// stat_stop() stops the timer for shutdown.
// stat_cleanup() prints ... |
alexjj/https_dns_proxy | src/stat.c | <reponame>alexjj/https_dns_proxy
#include "stat.h"
#include "logging.h"
static void reset_counters(stat_t *s) {
s->requests_size = 0;
s->responses_size = 0;
s->requests = 0;
s->responses = 0;
s->query_times_sum = 0;
s->connections_opened = 0;
s->connections_closed = 0;
s->connections_reused = 0;
}
sta... |
alexjj/https_dns_proxy | src/dns_poller.c | <filename>src/dns_poller.c<gh_stars>100-1000
#include <math.h> // NOLINT(llvmlibc-restrict-system-libc-headers)
#include <netdb.h> // NOLINT(llvmlibc-restrict-system-libc-headers)
#include <string.h> // NOLINT(llvmlibc-restrict-system-libc-headers)
#include "dns_poller.h"
#include "logging.h"
static... |
jielyu/fresh_attempt | test_cryptology/src/aes.h | <filename>test_cryptology/src/aes.h
/*
Interface of AES encrypt/decrypt algorithm
Author: <NAME>
Email: <EMAIL>
*/
#ifndef __AES_H__
#define __AES_H__
#include <iostream>
#include <vector>
#include <bitset>
#include "utils.h"
namespace crypt_impl
{
class AES {
#define AES_KEY_LEN 128
#define AES_WORD_BYTE_LEN ... |
jielyu/fresh_attempt | test_cryptology/src/utils.h | /*
Providing tools for cryptology implementation
Author: <NAME>
Email: <EMAIL>
*/
#ifndef __UTILS_H__
#define __UTILS_H__
#include <vector>
#include <string>
#include <bitset>
namespace crypt_impl{
#define CHECK_RAISE(cond, info) \
if (!(cond)) {throw std::runtime_error(info);}
typedef std::bitset<8> Byte;
type... |
jielyu/fresh_attempt | test_cryptology/src/des.h | /*
Interface of DES encrypt/decrypt algorithm
Author: <NAME>
Email: <EMAIL>
*/
#ifndef __DES__H__
#define __DES__H__
#include <iostream>
#include <vector>
#include <bitset>
#include "utils.h"
namespace crypt_impl
{
// interface for des encrypt/decrypt algorithm
class DES{
#define DES_KEY_LEN 64
#define DES_PLAI... |
jielyu/fresh_attempt | test_cmake/src/my_math/my_math.h | #ifndef __MY_MATH_H__
#define __MY_MATH_H__
#ifdef BUILD_XXX_DLL
#define IO_XXX_DLL __declspec(dllexport)
#else
#define IO_XXX_DLL __declspec(dllimport)
#endif
int IO_XXX_DLL my_add(int a, int b);
#endif
|
jielyu/fresh_attempt | test_cmake/src/my_str/my_str.h | <filename>test_cmake/src/my_str/my_str.h
#ifndef __MY_STR_H__
#define __MY_STR_H__
int my_output();
#endif
|
mgudelj1/bioinformatics | BestOverlap.h | <reponame>mgudelj1/bioinformatics<gh_stars>0
/*
* BestOverlap.h
*
* Created on: 4 Jan 2017
* Author: manager
*/
#ifndef BESTOVERLAP_H_
#define BESTOVERLAP_H_
#include <vector>
#include "Edge.h"
using namespace std;
class BestOverlap {
public:
BestOverlap();
virtual ~BestOverlap();
vector<Edge> create... |
mgudelj1/bioinformatics | Sastavi.h | <gh_stars>0
/*
* Sastavi.h
*
* Created on: 15 Jan 2017
* Author: manager
*/
#ifndef SASTAVI_H_
#define SASTAVI_H_
#include "Edge.h"
#include <stdlib.h>
#include <stdexcept>
#include <string>
#include <vector>
using namespace std;
class Sastavi {
public:
Sastavi();
virtual ~Sastavi();
vector<pair<bool, ... |
mgudelj1/bioinformatics | Edge.h | /*
* Edge.h
*
* Created on: 4 Jan 2017
* Author: manager
*/
#ifndef EDGE_H_
#define EDGE_H_
#include <iostream>
#include <string>
class Edge {
public:
Edge();
virtual ~Edge();
int idA;
int idB;
float error; //graphmap?
int numSur; //number of seeds which survived filtering
int aStart;
int aEnd;
i... |
mgudelj1/bioinformatics | MhapFormatter.h | <reponame>mgudelj1/bioinformatics
/*
* MhapFormatter.h
*
* Created on: 4 Jan 2017
* Author: manager
*/
#ifndef MHAPFORMATTER_H_
#define MHAPFORMATTER_H_
#include <string>
#include <vector>
#include "Edge.h"
using namespace std;
class MhapFormatter {
public:
MhapFormatter();
~MhapFormatter();
void fi... |
mgudelj1/bioinformatics | SequenceMaker.h |
#ifndef CONTIGMAKER_H_
#define CONTIGMAKER_H_
#include<vector>
#include <string>
#include "Edge.h"
using namespace std;
class SequenceMaker
{
public:
SequenceMaker();
virtual ~SequenceMaker();
string makeSequence(string, vector<pair<bool, Edge> >);
string rComplement(string);
... |
molescat/mStonemason | mStonemason/UIView+MStoneMASAddition.h | <gh_stars>0
//
// Copyright (c) 2013 <NAME>. All rights reserved.
//
@class MASLayoutConstraint;
@interface UIView (MStoneMASAddition)
- (MASLayoutConstraint *)constraintWithKey:(NSString *)key;
@end
|
DanialBeg/CS153 | lab2.c | #include "types.h"
#include "user.h"
int main(int argc, char *argv[])
{
int PScheduler(void);
int WScheduler(void);
printf(1, "\n This program tests the correctness of your lab#2\n");
PScheduler();
//WScheduler();
return 0;
}
int WScheduler(void){
// use this part to tes... |
BrenoCoelho12/Object-Oriented-Programming | Circuito/portas.h | #ifndef _CIRCUITO_H_
#define _CIRCUITO_H_
#include <iostream>
#include <string>
#include <vector>
#include "bool3S.h"
using namespace std;
//
// A CLASSE PORTA
//
#define NUM_MAX_INPUTS_PORTA 4
class Porta;
typedef Porta *ptr_Porta;
class Porta {
protected:
unsigned Nin;
int id_in[NUM_MA... |
BrenoCoelho12/Object-Oriented-Programming | Circuito/bool3S.h | #ifndef _BOOL3S_H_
#define _BOOL3S_H_
#include <iostream>
using namespace std;
// Criando um tipo de dados enumerado (bool3S) para representar um booleano com 3 estados:
// TRUE_3S, FALSE_3S e UNDEF_3S
enum bool3S {
UNDEF_3S = -1,
FALSE_3S = 0,
TRUE_3S = 1
};
// Os operadores logicos para a c... |
BrenoCoelho12/Object-Oriented-Programming | Circuito/circuito.h | #ifndef CIRCUITO_H
#define CIRCUITO_H
#include <QMainWindow>
namespace Ui {
class circuito;
}
class circuito : public QMainWindow
{
Q_OBJECT
public:
explicit circuito(QWidget *parent = nullptr);
~circuito();
private:
Ui::circuito *ui;
};
#endif // CIRCUITO_H
|
akafael/arduino-music | src/music/musics.h | /**
* Arduino Songs Collection from @robsoncouto
*
* @author akafael
* @ref https://github.com/akafael/arduino-music
*/
#define TONE_USE_INT
#define TONE_PITCH 440
#include <Pitch.h> // Required for NOTE_XX
#define REST 0
// notes of the melody followed by the duration.
// a 4 means a quarter note, 8 an eigh... |
nickyivyca/lib-mbed-ltc681x | include/LTC681xParallelBus.h | <filename>include/LTC681xParallelBus.h<gh_stars>0
#pragma once
#include <cstdint>
#include "mbed.h"
#include "LTC681xBus.h"
class LTC681xParallelBus : public LTC681xBus {
public:
LTC681xParallelBus(SPI* spiDriver) : m_spiDriver(spiDriver) {};
LTC681xBusStatus WakeupBus();
LTC681xBusStatus SendCommand(BusCom... |
nickyivyca/lib-mbed-ltc681x | include/LTC681xCommand.h | <gh_stars>0
#pragma once
#include <stdint.h>
// XXX: Ideally this would just be stored as a uint16_t value instead
// of holding onto intermediate stuff. Making each of these just
// a function would improve performance on embedded.
class LTC681xCommand {
public:
virtual uint16_t toValue() const = 0;
};... |
nickyivyca/lib-mbed-ltc681x | include/LTC681xBus.h | <reponame>nickyivyca/lib-mbed-ltc681x<filename>include/LTC681xBus.h<gh_stars>0
#pragma once
#include <cstdint>
#include "LTC681xCommand.h"
// Delays in us
#define LTC681x_WAKEUP_DELAY 420
#define LTC681x_POLL_DELAY 10
class LTC681xBus {
public:
enum class AddressingMode : uint8_t {
kBroadcast = 0x00,
kCha... |
DublinDesignStudioLtd/ScribaSDK | ScribaSDK.framework/Headers/ScribaStylusDevice.h | //
// ScribaStylusDevice.h
//
// Created by Dublin Design Studio Ltd.
// Copyright (c) 2015 Dublin Design Studio Ltd. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>
typedef NS_ENUM(NSUInteger,ScribaDeviceState)
{
ScribaDeviceStateDisconnected,
ScribaDevic... |
DublinDesignStudioLtd/ScribaSDK | ScribaSDK.framework/Headers/ScribaStylusManager.h | <filename>ScribaSDK.framework/Headers/ScribaStylusManager.h
//
// ScribaStylus2Manager.h
//
// Created by Dublin Design Studio Ltd.
// Copyright (c) 2015 Dublin Design Studio Ltd. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ScribaStylusDevice.h"
static NSString * const WDStylusPrimaryButto... |
DublinDesignStudioLtd/ScribaSDK | ScribaSDK.framework/Headers/ScribaSDK.h | //
// ScribaSDK.h
// ScribaSDK
//
// Created by lei_zhang on 3/17/16.
// Copyright © 2016 Scriba. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for ScribaSDK.
FOUNDATION_EXPORT double ScribaSDKVersionNumber;
//! Project version string for ScribaSDK.
FOUNDATION_EXPORT const unsigned c... |
mmaret/ssdp-responder | src/ssdp.h | <gh_stars>0
/* SSDP responder
*
* Copyright (c) 2017-2020 <NAME> <<EMAIL>>
*
* 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 I... |
viniciusOLN/exercicios-programacao-I | jogo_do_bicho/main.c | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(){
float V;
unsigned long N, M;
srand((unsigned long)time(NULL));
M = rand() % 1000000;
printf("M: %lu", M);
do{
printf("Informe V e N: ");
scanf("%f %lu ", &V, &N);
... |
viniciusOLN/exercicios-programacao-I | manipulacao_arquivos/main.c | <gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
int main(){
setlocale(LC_ALL, "Portuguese");
FILE * fp;
char ch;
fp = fopen("teste.txt", "r");
if(fp == NULL){
printf("deu erro");
}else{
do{
ch = fgetc(fp);
printf("%c", ch);
}whi... |
viniciusOLN/exercicios-programacao-I | recursividade/funcoes/include/questao2.h | #ifndef QUESTAO2_H
#define QUESTAO2_H
class questao2
{
public:
questao2();
virtual ~questao2();
protected:
private:
};
#endif // QUESTAO2_H
|
viniciusOLN/exercicios-programacao-I | testes/main.c | <reponame>viniciusOLN/exercicios-programacao-I
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(){
/*int D, Vf, Vg;
while (scanf ("%d %d %d", &D, &Vf, &Vg)>0) {
float S, Tg, Tf;
S = sqrt (pow(D, 2) + 144);
Tg = S/Vg;
Tf = 12.0/Vf;
printf("%f ", Tf)... |
viniciusOLN/exercicios-programacao-I | vetores/atividade_recursividade/main.c | <filename>vetores/atividade_recursividade/main.c
#include <stdio.h>
#include <stdlib.h>
int recursao(int n){
if(n <= 10){
return n * 2;
}else{
return recursao(recursao(n / 3));
}
}
int main(){
int n = 0;
printf("Digite um numero");
scanf("%d", &n);
printf("Recursao(%i): %i... |
viniciusOLN/exercicios-programacao-I | exercicio_manipulacao_arquivos/main.c | <reponame>viniciusOLN/exercicios-programacao-I<filename>exercicio_manipulacao_arquivos/main.c
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
int main(){
char in[50];
char frase[90];
char aux;
FILE *fp = NULL;
FILE *fpo = NULL;
setlocale(LC_ALL, "Portuguese");
printf("Digite o... |
viniciusOLN/exercicios-programacao-I | vetores/exercicios_vetores/main.c | <reponame>viniciusOLN/exercicios-programacao-I<filename>vetores/exercicios_vetores/main.c
#include <stdio.h>
#define limite 10
void carregar(int v[], int limit){
printf("Digite os numeros que deseja\n");
for(int i = 0; i < limit; i++){
printf("numero: ");
scanf("%d", &v[i]);
}
}
void m... |
viniciusOLN/exercicios-programacao-I | recursividade/fibonacci/main.c | <filename>recursividade/fibonacci/main.c
#include <stdio.h>
int fibonacci(int n){
int result;
if (n == 1 || n == 0){
return 1;
}else {
return fibonacci(n - 1) + fibonacci(n - 2);
}
}
int main(){
int n = 0;
printf("Digite o digito ate que voce deseja mos... |
viniciusOLN/exercicios-programacao-I | recursividade/tabuada/main.c | <gh_stars>0
#include <stdio.h>
int tabuada(int n, int end){
int result = 0;
if(end < 0){
return 0;
}else{
tabuada(n, (end-1));
result = n * end;
printf("O resultado de %i multiplicado por %i e igual a : %i\n",n, end, result);
}
}
int main(){
int n = 0;
i... |
viniciusOLN/exercicios-programacao-I | alocacao_dinamica/main.c | #include <stdio.h>
#include <stdlib.h>
int main(){
int *p;
p = (int*) malloc(4 * sizeof(int));
for(int i = 0; i < 4; i++){
p[i] = i + 11;
}
for(int i = 0; i < 4; i++){
printf("%d ", p[i]);
}
free(p);
return 0;
}
|
viniciusOLN/exercicios-programacao-I | guarda_costeira/guarda_costeira/main.c | #include <stdio.h>
#include <math.h>
#define milha 12
void carregar(float vf[], float vg[], float d[], int *max){
for(int i = 0; i < max; i++){
printf("Digite a distancia velocidade do fugitivo e velocidade do guarda respectivamente(%d): ", i+1);
scanf("%f %f %f", &d[i], &vf[i], &vg[i]);
if... |
viniciusOLN/exercicios-programacao-I | recursividade/fatorial/main.c | #include <stdio.h>
int fatorial(int n){
int fat;
if(n==1 || n==0){
return 1;
}else{
fat = n * fatorial(n - 1);
printf("%i", n);
}
return fat;
}
int main(){
int n = 0;
printf("Digite um numero \n");
scanf("%i", &n);
printf("... |
viniciusOLN/exercicios-programacao-I | conta_bancaria_codigo_prof-sequencial/main.c | #include <stdio.h>
#include <stdlib.h>
typedef struct {
int num;
float saldo;
} Conta;
typedef struct {
Conta *pc;
int indice;
} TConta;
void iniciarConta(TConta *p) {
p->pc = NULL;
p->indice = 0;
}
void mostrarTodas(TConta *p) {
puts("");
puts("===========================");
puts("=== RELATORIO DE CONTAS ... |
viniciusOLN/exercicios-programacao-I | jogo_de_botao/main.c | #include <stdio.h>
int main(){
unsigned qTime, qPart, tPontos;
do{
printf("\n\n Quantidade de Times e Partidas:");
scanf("%u %u", &qTime, &qPart);
if(qTime + qPart ==0)break;
tPontos = 0;
for(int i = 0; i < qTime; i++ ){
char nome, ch;
unsigne... |
viniciusOLN/exercicios-programacao-I | vetores/lendo_idade/main.c | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define max 50
int maiorIdade(int v[], int n){
int id = 0;
for(int i = 0; i < n; i++){
if(v[i] >= 18){
id++;
}
}
return id;
}
int menorIdade(int v[], int n){
int id = 0;
for(int i = 0; i < n; i++){
... |
viniciusOLN/exercicios-programacao-I | recursividade/recursividade/main.c | #include <stdio.h>
int sum(int a){
int soma;
if(a==0){
return 0;
}else{
soma = a + sum(a - 1);
}
return soma;
}
int main(){
int n = 0;
printf("Digite um Numero \n");
scanf("%i",&n);
printf("A soma de todos os numeros ate o que foi indicado e: %i"... |
viniciusOLN/exercicios-programacao-I | exerc_manipulacao_arquivos_num/main.c | #include <stdio.h>
#include <stdlib.h>
#define max 5
int main(){
int vet[max];
int num;
int vetB[max];
FILE *fp = NULL;
for(int i = 0; i < max; i++){
printf("digite um numero: ");
scanf("%d", &vet[i]);
}
if(fp = fopen("entrada.txt", "w")){
for(int i = 0; i < max; i... |
viniciusOLN/exercicios-programacao-I | recursividade/funcoes/main.c | #include <stdio.h>
void troca_valor(int x, int y) {
int c = x;
x = y;
y = c;
printf("x depois da troca: %i \ty depois da troca: %i",x,y);
}
void troca_referencia(int *x, int *y){
int c = *x;
*x = *y;
*y = c;
}
void soma_valor(int x, int y){
printf("a soma de %i e %i e igual a: %i",... |
viniciusOLN/exercicios-programacao-I | ponteiros/atividade_ponteiro/main.c | #include <stdio.h>
#include <time.h>
#define max 5
int* concatenaVet (int v1[], int n1, int v2[], int n2){
int* ptr = malloc((n1 + n2) * sizeof(int));
for(int i = 0; i < n1; i++){
ptr[i] = v1[i];
}
int j = 5;
for(int i =0; i < n2; i++){
ptr[j] = v2[i];
j++;
}
return... |
viniciusOLN/exercicios-programacao-I | vetores/matrizes/main.c | <reponame>viniciusOLN/exercicios-programacao-I<filename>vetores/matrizes/main.c
#include <stdio.h>
#define LIN 4
#define COL 4
int main(){
/*int m[LIN][COL];
for(int i = 0; i < LIN; i++){
for(int j = 0; j < COL; j++){
printf("item [%d, %d]", i,j);
scanf("%d",&m[i][j]);
... |
david-carteau/cerebrum | cerebrum/cerebrum.c | <filename>cerebrum/cerebrum.c
/*
* The Cerebrum library
* Copyright (c) 2020, by <NAME>. All rights reserved.
*
* 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, inc... |
david-carteau/cerebrum | cerebrum/cerebrum.h | /*
* The Cerebrum library
* Copyright (c) 2020, by <NAME>. All rights reserved.
*
* 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 ... |
colorer/Colorer-library | src/colorer/parsers/HrdNode.h | #ifndef COLORER_HRDNODE_H
#define COLORER_HRDNODE_H
#include <vector>
#include "colorer/Common.h"
class HrdNode
{
public:
HrdNode() = default;
UnicodeString hrd_class;
UnicodeString hrd_name;
UnicodeString hrd_description;
std::vector<UnicodeString> hrd_location;
};
#endif // COLORER_HRDNODE_H
|
colorer/Colorer-library | src/colorer/viewer/ParsedLineWriter.h | <reponame>colorer/Colorer-library
#ifndef _COLORER_PARSEDLINEWRITER_H_
#define _COLORER_PARSEDLINEWRITER_H_
#include "colorer/handlers/LineRegion.h"
#include "colorer/io/Writer.h"
/**
Static service methods of LineRegion output.
@ingroup colorer_viewer
*/
class ParsedLineWriter
{
public:
/** Writes given li... |
colorer/Colorer-library | src/colorer/editor/BaseEditor.h | <gh_stars>10-100
#ifndef _COLORER_BASEEDITOR_H_
#define _COLORER_BASEEDITOR_H_
#include "colorer/LineSource.h"
#include "colorer/ParserFactory.h"
#include "colorer/TextParser.h"
#include "colorer/editor/EditorListener.h"
#include "colorer/editor/PairMatch.h"
#include "colorer/handlers/LineRegionsCompactSupport.h"
#inc... |
colorer/Colorer-library | src/colorer/HrcLibrary.h | <filename>src/colorer/HrcLibrary.h
#ifndef COLORER_HRCLIBRARY_H
#define COLORER_HRCLIBRARY_H
#include "colorer/Exception.h"
#include "colorer/FileType.h"
#include "colorer/Region.h"
#include "colorer/common/spimpl.h"
#include "colorer/xml/XmlInputSource.h"
/** Informs application about internal HRC parsing problems.
... |
colorer/Colorer-library | src/colorer/parsers/CatalogParser.h | <reponame>colorer/Colorer-library
#ifndef COLORER_CATALOGPARSER_H
#define COLORER_CATALOGPARSER_H
#include <vector>
#include <xercesc/dom/DOM.hpp>
#include "colorer/Common.h"
#include "colorer/Exception.h"
#include "colorer/parsers/HrdNode.h"
class CatalogParser
{
public:
CatalogParser() = default;
~CatalogParse... |
colorer/Colorer-library | src/colorer/parsers/ParserFactoryImpl.h | #ifndef COLORER_PARSERFACTORYIMPL_H
#define COLORER_PARSERFACTORYIMPL_H
#include "colorer/HrcLibrary.h"
#include "colorer/ParserFactory.h"
#include "colorer/TextParser.h"
#include "colorer/handlers/StyledHRDMapper.h"
#include "colorer/handlers/TextHRDMapper.h"
#include "colorer/parsers/HrdNode.h"
class ParserFactory:... |
colorer/Colorer-library | src/colorer/handlers/StyledRegion.h | #ifndef _COLORER_STYLEDREGION_H_
#define _COLORER_STYLEDREGION_H_
#include "colorer/handlers/RegionDefine.h"
/**
* Contains information about region mapping into real colors.
* These mappings are stored in HRD files and processed
* by StyledHRDMapper class.
* @ingroup colorer_handlers
*/
class StyledRegion : pub... |
colorer/Colorer-library | src/colorer/handlers/RegionDefine.h | #ifndef _COLORER_REGIONDEFINE_H_
#define _COLORER_REGIONDEFINE_H_
/**
* Object contains information about region mapping into real colors or other properties.
* This class represents abstract mapping information and declares required methods
* to be implemented in it's subclasses.
*
* @ingroup colorer_handlers
*... |
colorer/Colorer-library | src/colorer/FileType.h | <filename>src/colorer/FileType.h
#ifndef COLORER_FILETYPE_H
#define COLORER_FILETYPE_H
#include <vector>
#include "colorer/Common.h"
#include "colorer/Exception.h"
#include "colorer/Scheme.h"
#include "colorer/common/spimpl.h"
/**
* HRC FileType (or prototype) instance.
* @ingroup colorer
*/
class FileType
{
fri... |
colorer/Colorer-library | src/colorer/Scheme.h | <gh_stars>10-100
#ifndef COLORER_SCHEME_H
#define COLORER_SCHEME_H
#include "colorer/Common.h"
class FileType;
/** HRC Scheme instance information.
Used in RegionHandler calls to pass curent region's scheme.
@ingroup colorer
*/
class Scheme
{
public:
/** Full qualified schema name.
*/
[[nodiscard]] vi... |
colorer/Colorer-library | src/colorer/io/Writer.h | <filename>src/colorer/io/Writer.h
#ifndef _COLORER_WRITER_H_
#define _COLORER_WRITER_H_
#include "colorer/Common.h"
/** Abstract character writer class.
Writes specified character sequences into abstract stream.
@ingroup common_io
*/
class Writer
{
public:
virtual ~Writer() = default;
/** Writes string *... |
colorer/Colorer-library | src/colorer/parsers/HrcLibraryImpl.h | <reponame>colorer/Colorer-library<filename>src/colorer/parsers/HrcLibraryImpl.h<gh_stars>10-100
#ifndef _COLORER_HRCLIBRARYIMPL_H_
#define _COLORER_HRCLIBRARYIMPL_H_
#include <xercesc/dom/DOM.hpp>
#include "colorer/HrcLibrary.h"
#include "colorer/cregexp/cregexp.h"
#include "colorer/parsers/SchemeImpl.h"
#include "col... |
colorer/Colorer-library | src/colorer/handlers/LineRegion.h | <filename>src/colorer/handlers/LineRegion.h
#ifndef _COLORER_LINEREGION_H_
#define _COLORER_LINEREGION_H_
#include "colorer/Scheme.h"
#include "colorer/handlers/RegionDefine.h"
#include "colorer/handlers/StyledRegion.h"
#include "colorer/handlers/TextRegion.h"
#include "colorer/Region.h"
/** Defines region position p... |
colorer/Colorer-library | src/colorer/common/UnicodeLogger.h | #ifndef COLORER_UNICODELOGGER_H
#define COLORER_UNICODELOGGER_H
#include <fmt/format.h>
#include <unicode/unistr.h>
namespace fmt {
template <>
struct formatter<icu::UnicodeString>
{
template <typename ParseContext>
constexpr auto parse(ParseContext& ctx)
{
return ctx.begin();
}
template <typename Form... |
colorer/Colorer-library | src/colorer/editor/Outliner.h | <reponame>colorer/Colorer-library
#ifndef _COLORER_OUTLINER_H_
#define _COLORER_OUTLINER_H_
#include "colorer/LineSource.h"
#include "colorer/RegionHandler.h"
#include "colorer/editor/BaseEditor.h"
#include "colorer/editor/OutlineItem.h"
/**
* Used to create, store and maintain list or tree of different special regi... |
colorer/Colorer-library | src/colorer/parsers/TextParserImpl.h | #ifndef _COLORER_TEXTPARSERIMPL_H_
#define _COLORER_TEXTPARSERIMPL_H_
#include "colorer/TextParser.h"
#include "colorer/parsers/TextParserHelpers.h"
#define MAX_RECURSION_LEVEL 100
/**
* Implementation of TextParser interface.
* This is the base Colorer syntax parser, which
* works with parsed internal HRC struct... |
colorer/Colorer-library | src/colorer/ParserFactory.h | <gh_stars>10-100
#ifndef COLORER_PARSERFACTORY_H
#define COLORER_PARSERFACTORY_H
#include "colorer/Common.h"
#include "colorer/Exception.h"
#include "colorer/HrcLibrary.h"
#include "colorer/TextParser.h"
#include "colorer/common/spimpl.h"
#include "colorer/handlers/StyledHRDMapper.h"
#include "colorer/handlers/TextHRD... |
colorer/Colorer-library | src/colorer/xml/BaseEntityResolver.h | <reponame>colorer/Colorer-library
#ifndef COLORER_BASE_ENTITY_RESOLVER_H
#define COLORER_BASE_ENTITY_RESOLVER_H
#include <xercesc/util/XMLEntityResolver.hpp>
class BaseEntityResolver : public xercesc::XMLEntityResolver
{
public:
xercesc::InputSource* resolveEntity(xercesc::XMLResourceIdentifier* resourceIdentifier... |
colorer/Colorer-library | src/colorer/handlers/LineRegionsCompactSupport.h | #ifndef _COLORER_LINEREGIONSCOMPACTSUPPORT_H_
#define _COLORER_LINEREGIONSCOMPACTSUPPORT_H_
#include "colorer/handlers/LineRegionsSupport.h"
/** Compact Region store implementation based on LineRegionsSupport class.
This class guarantees non-interlaced creation of LineRegion structures in line.
Client applica... |
colorer/Colorer-library | src/colorer/viewer/TextLinesStore.h | <reponame>colorer/Colorer-library
#ifndef _COLORER_TEXTLINESSTORE_H_
#define _COLORER_TEXTLINESSTORE_H_
#include <vector>
#include "colorer/LineSource.h"
/** Reads array of text lines and
makes it accessible with LineSource interface.
All lines should be separated with \\r\\n , \\n or \\r characters.
@in... |
colorer/Colorer-library | src/colorer/handlers/LineRegionsSupport.h | <reponame>colorer/Colorer-library
#ifndef _COLORER_LINEREGIONSSUPPORT_H_
#define _COLORER_LINEREGIONSSUPPORT_H_
#include "colorer/RegionHandler.h"
#include "colorer/handlers/LineRegion.h"
#include "colorer/handlers/RegionDefine.h"
#include "colorer/handlers/RegionMapper.h"
#include <vector>
/** Region store implement... |
colorer/Colorer-library | src/colorer/base/BaseNames.h | #ifndef COLORER_BASENAMES_H
#define COLORER_BASENAMES_H
const char16_t HrdNameDefault[] = u"default\0";
const char16_t HrdClassRgb[] = u"rgb\0";
const char16_t HrdClassText[] = u"text\0";
#endif // COLORER_BASENAMES_H
|
colorer/Colorer-library | src/colorer/parsers/KeywordList.h | #ifndef _COLORER_KEYWORDLIST_H_
#define _COLORER_KEYWORDLIST_H_
#include "colorer/Common.h"
#include "colorer/Region.h"
#include <unicode/uniset.h>
/** Information about one parsed keyword.
Contains keyword, symbol specifier, region reference
and internal optimization field.
@ingroup colorer_parsers
*/
st... |
colorer/Colorer-library | src/colorer/Common.h | #ifndef COLORER_COMMON_H
#define COLORER_COMMON_H
#include <spdlog/spdlog.h>
#include "colorer/common/Features.h"
#include "colorer/common/UnicodeLogger.h"
#include "colorer/common/UnicodeStringContainer.h"
/// system dependent byte
// TODO std::byte
using byte = unsigned char;
using UnicodeString = icu::UnicodeStrin... |
colorer/Colorer-library | src/colorer/parsers/SchemeNode.h | #ifndef _COLORER_SCHEMENODE_H_
#define _COLORER_SCHEMENODE_H_
#include "colorer/Common.h"
#include "colorer/Region.h"
#include "colorer/cregexp/cregexp.h"
#include "colorer/parsers/KeywordList.h"
#include "colorer/parsers/VirtualEntry.h"
#include <vector>
class SchemeImpl;
typedef std::vector<VirtualEntry*> VirtualEn... |
colorer/Colorer-library | src/colorer/parsers/FileTypeChooser.h | #ifndef COLORER_FILETYPECHOOSER_H
#define COLORER_FILETYPECHOOSER_H
#include "colorer/cregexp/cregexp.h"
/** Stores regular expressions of filename and firstline
elements and helps to detect file type.
@ingroup colorer_parsers
*/
class FileTypeChooser
{
public:
enum class ChooserType { CT_FILENAME, CT_FIRS... |
colorer/Colorer-library | src/colorer/xml/XmlInputSource.h | #ifndef COLORER_XMLINPUTSOURCE_H
#define COLORER_XMLINPUTSOURCE_H
#include <filesystem>
#include <xercesc/sax/InputSource.hpp>
#include "colorer/Common.h"
const char16_t kJar[] = u"jar:\0";
const char16_t kPercent[] = u"%\0";
class XmlInputSource;
typedef std::unique_ptr<XmlInputSource> uXmlInputSource;
/**
* @br... |
colorer/Colorer-library | tests/performance/tests.h | <gh_stars>10-100
#include <colorer/parsers/ParserFactoryImpl.h>
#include <colorer/editor/BaseEditor.h>
#include <colorer/viewer/TextLinesStore.h>
void TestParserFactoryConstructor(int count, UnicodeString* catalogPath);
void TestParserFactoryHrcLibrary(int count, UnicodeString* catalogPath);
void TestParserFactoryStyl... |
colorer/Colorer-library | src/colorer/xml/XmlParserErrorHandler.h | <reponame>colorer/Colorer-library
#ifndef COLORER_XML_PARSER_ERROR_HANDLER_H
#define COLORER_XML_PARSER_ERROR_HANDLER_H
#include <xercesc/sax/ErrorHandler.hpp>
#include <xercesc/sax/SAXParseException.hpp>
/* XmlParserErrorHandler - class to catch errors and warnings from the XML Parser*/
class XmlParserErrorHandler :... |
colorer/Colorer-library | src/colorer/parsers/SchemeImpl.h | #ifndef COLORER_HRCPARSERPELPERS_H
#define COLORER_HRCPARSERPELPERS_H
#include <memory>
#include <vector>
#include "colorer/Scheme.h"
#include "colorer/TextParser.h"
#include "colorer/cregexp/cregexp.h"
#include "colorer/parsers/SchemeNode.h"
class FileType;
/** Scheme storage implementation.
Manages the vector ... |
seanshpark/rpigpiopp | rpigpiopp/lib/gpio/include/gpio/AddrInfo.h | /*
* Copyright 2022 <EMAIL>
*
* 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 applicable law or agreed to in w... |
seanshpark/rpigpiopp | rpigpiopp/lib/gpio/include/gpio/gpio.h | /*
* Copyright 2022 <EMAIL>
*
* 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 applicable law or agreed to in w... |
seanshpark/rpigpiopp | rpigpiopp/lib/tm1637/include/tm1637/tm1637_def.h | <gh_stars>1-10
/*
* Copyright 2022 <EMAIL>
*
* 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 applicable law or... |
seanshpark/rpigpiopp | rpigpiopp/lib/tm1637/include/tm1637/tm1637.h | <filename>rpigpiopp/lib/tm1637/include/tm1637/tm1637.h
/*
* Copyright 2022 <EMAIL>
*
* 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
*... |
seanshpark/rpigpiopp | rpigpiopp/lib/lcd1602/include/lcd1602/lcd1602.h | <reponame>seanshpark/rpigpiopp
/*
* Copyright 2022 <EMAIL>
*
* 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 a... |
seanshpark/rpigpiopp | rpigpiopp/api/src/Wrapper.h | <gh_stars>1-10
/*
* Copyright 2022 <EMAIL>
*
* 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 applicable law or... |
seanshpark/rpigpiopp | rpigpiopp/lib/oled128x64/include/oled128x64/oled128x64.h | <gh_stars>1-10
/*
* Copyright 2022 <EMAIL>
*
* 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 applicable law or... |
seanshpark/rpigpiopp | rpigpiopp/lib/pcf8574/include/pcf8574/pcf8574.h | /*
* Copyright 2022 <EMAIL>
*
* 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 applicable law or agreed to in w... |
ZYXiao/HSProtocolView | HSProtocolView/HSProtocolView.h | #import <UIKit/UIKit.h>
typedef enum {
HSProtocolViewLayoutDirectionHorizontal = 0,
HSProtocolViewLayoutDirectionVertical
}HSProtocolViewLayoutDirection;
@protocol HSProtocolViewDelegate;
@interface HSProtocolView : UIView
@property (nonatomic,weak) id <HSProtocolViewDelegate>delegate;
/**
初始化创建协议视图
... |
envire/envire_collider_mls | src/collision_util.h | <gh_stars>1-10
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001,2002 <NAME>. *
* All rights reserved. Email: <EMAIL> Web: www.q12.org *
* ... |
OffByOneStudios/libRocket | Samples/shell/include/Shell.h | /*
* This source file is part of libRocket, the HTML/CSS Interface Middleware
*
* For the latest information, see http://www.librocket.com
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and assoc... |
bilgili/CppInsightsPlugin | constants.h | <filename>constants.h
// Copyright (c) 2019 <NAME>
// Licensed under the MIT licence
#pragma once
namespace CppInsightsPlugin {
namespace Constants {
const char ACTION_ID[] = "CppInsightsPlugin.Action";
const char MENU_ID[] = "CppInsightsPlugin.Menu";
const char SETTINGS_GROUP[] = "CppInsights";
const char OPTIONS_... |
bilgili/CppInsightsPlugin | settings.h | // Copyright (c) 2019 <NAME>
// Licensed under the MIT licence
#pragma once
#include <utils/mimetypes/mimetype.h>
#include <QList>
namespace CppInsightsPlugin
{
namespace Internal
{
class Settings
{
public:
explicit Settings();
void read();
void save();
QString cppInsightsTool() const;
void setCppInsight... |
bilgili/CppInsightsPlugin | global.h | <filename>global.h<gh_stars>1-10
// Copyright (c) 2019 <NAME>
// Licensed under the MIT licence
#pragma once
#include <QtGlobal>
#if defined(MYPLUGIN_LIBRARY)
# define CPPINSIGHTSPLUGIN_EXPORT Q_DECL_EXPORT
#else
# define CPPINSIGHTSPLUGIN_EXPORT Q_DECL_IMPORT
#endif
|
bilgili/CppInsightsPlugin | plugin.h | <reponame>bilgili/CppInsightsPlugin<filename>plugin.h
// Copyright (c) 2019 <NAME>
// Licensed under the MIT licence
#pragma once
#include "global.h"
#include <extensionsystem/iplugin.h>
#include <QSharedPointer>
namespace CppInsightsPlugin {
namespace Internal {
class Settings;
class Plugin : public ExtensionSy... |
bilgili/CppInsightsPlugin | settingspage.h | // Copyright (c) 2019 <NAME>
// Licensed under the MIT licence
#pragma once
#include <coreplugin/dialogs/ioptionspage.h>
#include <QPointer>
#include <QSharedPointer>
#include <QWidget>
namespace CppInsightsPlugin {
namespace Internal {
class Settings;
namespace Ui {
class OptionsPage;
}
class SettingsPageWidget... |
Jonhson123/WPClipView | WPClipView.framework/Headers/WPPointView.h | //
// WPPointView.h
//
// Created by johnson on 14/12/11.
// Email: <EMAIL>
// Copyright © 2014 Johnson All rights reserved.
//
#import <UIKit/UIKit.h>
#import "WPClipCommon.h"
@interface WPPointView : UIView
@property (assign, nonatomic) CGFloat pointRadius;
@property (assign, nonatomic) CGFloat innerRadius;
@p... |
Jonhson123/WPClipView | WPClipView.framework/Headers/WPPopView.h | //
// WPClipView.h
//
// Created by johnson on 15/02/14.
// Email: <EMAIL>
// Copyright © 2015 Johnson All rights reserved.
//
#import <UIKit/UIKit.h>
#import "WPClipCommon.h"
#import "WPPointView.h"
@interface WPPopView : UIView
@property (strong, nonatomic) UIImage *image;
@property (strong, nonatomic) NSArra... |
Jonhson123/WPClipView | WPClipView.framework/Headers/WPClipView.h | //
// WPClipView.h
//
// Created by johnson on 14/12/11.
// Email: <EMAIL>
// Copyright © 2014 Johnson All rights reserved.
//
#import <UIKit/UIKit.h>
#import "WPClipCommon.h"
@interface WPClipView : UIView
@property (strong, nonatomic) UIImage *image;
@property (assign, nonatomic) CGFloat initMaskScale;
@prope... |
Jonhson123/WPClipView | WPClipView.framework/Headers/WPClipCommon.h | //
// WPClipView.h
//
// Created by johnson on 14/12/11.
// Email: <EMAIL>
// Copyright © 2014 Johnson All rights reserved.
//
#ifndef WPClipCommon_h
#define WPClipCommon_h
#define WIDTH(_view) CGRectGetWidth(_view.bounds)
#define HEIGHT(_view) CGRectGetHeight(_view.bounds)
#define MAXX(_view) CGRectGetMaxX(_view... |
dodekja/heuristics | primary_insertion_best_benefit_item_limit/unchecked_items.h | <filename>primary_insertion_best_benefit_item_limit/unchecked_items.h
#pragma once
#include <vector>
#include "knapsack_item.h"
class unchecked_items
{
std::vector<knapsack_item*>* unchecked_items_;
std::vector<knapsack_item*>* not_inserted_items_;
public:
unchecked_items();
void load() const;
knapsa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.