repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/CommandStack.h | #ifndef CMDSTACK
#define CMDSTACK
#include "Command.h"
#include <stack>
class CMDStack
{
public:
CMDStack();
CMDStack(const std::stack<Command*> executeStack, const std::stack<Command*> revertStack);
~CMDStack();
void Add(Command * const newCMD);
void Undo();
void Redo();
void Flush(); //empties the commandstac... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/AddRectangleCommand.h | <gh_stars>0
#ifndef ADDRECTCMD
#define ADDRECTCMD
#include "Command.h"
#include "Shape.h"
#include <vector>
class AddRectangleCommand : public Command
{
public:
AddRectangleCommand(Windows::UI::Xaml::Controls::Canvas ^canvas, std::vector<Shape*> &shapes, Windows::UI::Xaml::Shapes::Rectangle ^rect, Windows::UI::Color... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/MoveGroupBackVisitor.h | <reponame>snellejelle99/C-GUI-Drawing
#ifndef MOVEGROUPBACKVISITOR
#define MOVEGROUPBACKVISITOR
#include "ShapeVisitor.h"
//MoveGroupVisitor class defenition
class MoveGroupBackVisitor : public ShapeVisitor
{
public:
MoveGroupBackVisitor(Windows::UI::Xaml::Controls::Canvas ^canvas, double leftfactor, double topfacto... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/ChangeGroupColorVisitor.h | <reponame>snellejelle99/C-GUI-Drawing<gh_stars>0
#ifndef CHANGEGROUPCOLORVISITOR
#define CHANGEGROUPCOLORVISITOR
#include "ShapeVisitor.h"
//ChangeGroupColorVisitor class defenition
class ChangeGroupColorVisitor : public ShapeVisitor
{
public:
ChangeGroupColorVisitor(Windows::UI::Color newColor);
~ChangeGroupColorV... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/MoveGroupCommand.h | #ifndef MOVEGROUPCOMMAND
#define MOVEGROUPCOMMAND
#include "Command.h"
#include "Shape.h"
class MoveGroupCommand : public Command
{
public:
MoveGroupCommand(Windows::UI::Xaml::Controls::Canvas ^canvas, Shape* shape, double newLeft, double newTop);
~MoveGroupCommand();
virtual void Execute();
virtual void Undo();... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/ChangeGroupColorCommand.h | <filename>c++ GUI Drawing/ChangeGroupColorCommand.h
#ifndef CHANGEGROUPCOLORCMD
#define CHANGEGROUPCOLORCMD
#include "Command.h"
#include "Shape.h"
class ChangeGroupColorCommand :
public Command
{
public:
ChangeGroupColorCommand(Shape* shape, Windows::UI::Color newColor);
~ChangeGroupColorCommand();
virtual void... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/RedBorderDecorator.h | #ifndef REDBORDERDECORATOR
#define REDBORDERDECORATOR
#include "Shape.h"
#include "ShapeDecorator.h"
//border decorator which inherits from ShapeDecorator
class RedBorderDecorator : public ShapeDecorator
{
public:
RedBorderDecorator(Shape* shape);
~RedBorderDecorator();
virtual void Draw();
};
#endif //!SHAPEDECO... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/BlueBorderDecorator.h | <reponame>snellejelle99/C-GUI-Drawing
#ifndef BLUEBORDERDECORATOR
#define BLUEBORDERDECORATOR
#include "Shape.h"
#include "ShapeDecorator.h"
//border decorator which inherits from ShapeDecorator
class BlueBorderDecorator : public ShapeDecorator
{
public:
BlueBorderDecorator(Shape* shape);
~BlueBorderDecorator();
v... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/ShapeDecorator.h | #ifndef SHAPEDECORATOR
#define SHAPEDECORATOR
#include "Shape.h"
//definition of the shapedecorator class with a virtual draw method
class ShapeDecorator
{
public:
ShapeDecorator(Shape* shape);
~ShapeDecorator();
virtual void Draw() = 0;
protected:
Shape* shape;
};
#endif //!SHAPEDECORATOR |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/ShapeVisitor.h | #ifndef SHAPEVISITOR
#define SHAPEVISITOR
class Rectangle;
class Ellipse;
//interface that defines the Visit for Rectangle and Ellipse
class ShapeVisitor
{
public:
virtual void Visit(Rectangle* shape) = 0;
virtual void Visit(Ellipse* shape) = 0;
};
#endif // !SHAPEVISITOR
|
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/Ellipse.h | <reponame>snellejelle99/C-GUI-Drawing<filename>c++ GUI Drawing/Ellipse.h
#ifndef ELLIPSE
#define ELLIPSE
#include "Shape.h"
#include "ShapeAccept.h"
class Ellipse : public Shape, public ShapeAccept
{
public:
Ellipse(double left, double top, Windows::UI::Color color, Windows::UI::Xaml::Shapes::Ellipse ^ellipse);
~El... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/Saver.h | #ifndef SAVER
#define SAVER
#include "pch.h"
#include <vector>
#include <iostream>
#include <fstream>
#include <filesystem>
#include <collection.h>
#include "Shape.h"
using namespace concurrency;
using namespace Platform;
using namespace Windows::Storage;
using namespace Windows::Storage::Pickers;
using namespace Wi... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/DeleteCommand.h | #ifndef DELCOMMAND
#define DELCOMMAND
#include "Command.h"
#include "Shape.h"
class DeleteCommand : public Command
{
public:
DeleteCommand(Windows::UI::Xaml::Controls::Canvas ^canvas, Shape* shape, std::vector<Shape*> &shapes);
~DeleteCommand();
virtual void Execute();
virtual void Undo();
private:
Shape* shap... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/Loader.h | <reponame>snellejelle99/C-GUI-Drawing
#pragma once
#include "DrawPage.g.h"
#include "DrawPage.xaml.h"
#include "pch.h"
#include "Shape.h"
#include "Rectangle.h"
#include "Ellipse.h"
#include "DeleteCommand.h"
#include <string>
using namespace concurrency;
using namespace Platform;
using namespace Windows::Storage... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/ShapeAccept.h | #ifndef SHAPEACCEPT
#define SHAPEACCEPT
#include "ShapeDeleteVisitor.h"
#include "ShapeAddVisitor.h"
#include "ChangeGroupColorVisitor.h"
#include "ChangeGroupColorBackVisitor.h"
#include "MoveGroupVisitor.h"
#include "MoveGroupBackVisitor.h"
//interface that defines the Accept for all the visitors
class ShapeAccept
... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/ShapeDeleteVisitor.h | #ifndef SHAPEDELVISITOR
#define SHAPEDELVISITOR
#include "ShapeVisitor.h"
//ShapeDeleteVisitor class defenition
class ShapeDeleteVisitor : public ShapeVisitor
{
public:
ShapeDeleteVisitor(Windows::UI::Xaml::Controls::Canvas^ canvas);
~ShapeDeleteVisitor();
virtual void Visit(Rectangle* shape);
virtual void Visit(... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/ChangeGroupColorBackVisitor.h | <reponame>snellejelle99/C-GUI-Drawing
#ifndef CHANGEGROUPCOLORBACKVISITOR
#define CHANGEGROUPCOLORBACKVISITOR
#include "ShapeVisitor.h"
#include <vector>
#include <tuple>
#include "Shape.h"
//ChangeGroupColorVisitorBack class defenition
class ChangeGroupColorBackVisitor : public ShapeVisitor
{
public:
ChangeGroupCol... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/Shape.h | #ifndef SHAPE
#define SHAPE
#include <string>
#include <vector>
using namespace Windows::UI::Xaml::Media;
class Shape
{
public:
Shape(double left, double top, Windows::UI::Color color);
~Shape();
Windows::UI::Color GetColor(); //returns the color of the shape
bool AddSubShape(Shape* subShape);
void DelSubShape... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/DrawPage.xaml.h | <gh_stars>0
//
// DrawPage.xaml.h
// Declaration of the DrawPage class
//
#pragma once
#include "DrawPage.g.h"
#include "Loader.h"
#include <thread>
#include <chrono>
namespace c___GUI_Drawing
{
using namespace Platform;
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/MoveCommand.h | #ifndef MOVECOMMAND
#define MOVECOMMAND
#include "Command.h"
#include "Shape.h"
class MoveCommand : public Command
{
public:
MoveCommand(Windows::UI::Xaml::Controls::Canvas ^canvas, Shape* shape, double newLeft, double newTop);
~MoveCommand();
virtual void Execute();
virtual void Undo();
private:
Shape* shape;
... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/AddEllipseCommand.h | #ifndef ADDELLIPCMD
#define ADDELLIPCMD
#include "Command.h"
#include "Shape.h"
#include <vector>
class AddEllipseCommand : public Command
{
public:
AddEllipseCommand(Windows::UI::Xaml::Controls::Canvas ^canvas, std::vector<Shape*> &shapes, Windows::UI::Xaml::Shapes::Ellipse ^ellip, Windows::UI::Color color);
~AddE... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/Stratergy.h | <reponame>snellejelle99/C-GUI-Drawing<gh_stars>0
#ifndef STRAT
#define STRAT
#include "Rectangle.h"
#include "Ellipse.h"
class Stratergy
{
virtual void doOperation() = 0;
};
#endif |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/GroupCommand.h | #ifndef GROUPCMD
#define GROUPCMD
#include "Command.h"
#include "Shape.h"
class GroupCommand : public Command
{
public:
GroupCommand(Shape* shape, Shape* subShape, std::vector<Shape*> &shapes);
~GroupCommand();
virtual void Execute();
virtual void Undo();
private:
Shape* shape;
Shape* subShape;
std::vector<Sh... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/MoveGroupVisitor.h | <reponame>snellejelle99/C-GUI-Drawing
#ifndef MOVEGROUPVISITOR
#define MOVEGROUPVISITOR
#include "ShapeVisitor.h"
//MoveGroupVisitor class defenition
class MoveGroupVisitor : public ShapeVisitor
{
public:
MoveGroupVisitor(Windows::UI::Xaml::Controls::Canvas ^canvas, double leftfactor, double topfactor);
~MoveGroupV... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/Command.h | <reponame>snellejelle99/C-GUI-Drawing
#ifndef COMMAND
#define COMMAND
//virtual classs that defines the execute and undo method of commands
class Command
{
public:
virtual void Execute() = 0;
virtual void Undo() = 0;
};
#endif |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/NoBorderDecorator.h | #ifndef NOBORDERDECORATOR
#define NOBORDERDECORATOR
#include "Shape.h"
#include "ShapeDecorator.h"
//border decorator which inherits from ShapeDecorator
class NoBorderDecorator : public ShapeDecorator
{
public:
NoBorderDecorator(Shape* shape);
~NoBorderDecorator();
virtual void Draw();
};
#endif //!SHAPEDECORATOR |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/ChangeColorCommand.h | <reponame>snellejelle99/C-GUI-Drawing
#ifndef CHANGECOLORCMD
#define CHANGECOLORCMD
#include "Command.h"
#include "Shape.h"
class ChangeColorCommand :
public Command
{
public:
ChangeColorCommand(Shape* shape, Windows::UI::Color newColor);
~ChangeColorCommand();
virtual void Execute();
virtual void Undo();
priv... |
snellejelle99/C-GUI-Drawing | c++ GUI Drawing/ShapeAddVisitor.h | #ifndef SHAPEADDVISITOR
#define SHAPEADDVISITOR
#include "ShapeVisitor.h"
//ShapeAddVisitor class defenition
class ShapeAddVisitor : public ShapeVisitor
{
public:
ShapeAddVisitor(Windows::UI::Xaml::Controls::Canvas^ canvas);
~ShapeAddVisitor();
virtual void Visit(Rectangle* shape);
virtual void Visit(Ellipse* sha... |
misc0110/libsrf | include/cstring.h | <gh_stars>1-10
#ifndef YDKJEXTRACTOR_SIMPLESTRING_H
#define YDKJEXTRACTOR_SIMPLESTRING_H
#define CSTRING_MIN_CAPACITY 16
char *libsrf_cstring_create();
void libsrf_cstring_destroy(char *str);
size_t libsrf_cstring_get_capacity(char *str);
char* libsrf_cstring_set_capacity(char *str, size_t capacity);
char* libsrf... |
misc0110/libsrf | src/formats/aifc.c | /* public domain
* ima4, sowt and sdx2 handled
* sdx2 not hardly tested, may fail, contact me if problems
* endian-independant code
* <EMAIL> for comments/suggestions/anything
* http://sed.free.fr/aifc2wav.html
* Wed, 22 Jan 2003
* Last update: Fri, 30 Mar 2007
*
* algo, tables ripped from http://www.pcisys.ne... |
misc0110/libsrf | include/formats/json.h | #ifndef YDKJEXTRACTOR_JSON_H
#define YDKJEXTRACTOR_JSON_H
#include <stdio.h>
typedef struct {
char* data;
size_t capacity;
size_t pos;
size_t flags;
int requires_sep;
} libsrf_json_t;
#define LIBSRF_JSON_FLAG_PRETTY 1
libsrf_json_t* libsrf_json_create();
void libsrf_json_destroy(libsrf_json_t* ... |
misc0110/libsrf | src/formats/sound.c | #include <stdlib.h>
#include <string.h>
#include "libsrf.h"
#include "formats/sound.h"
#include "formats/aifc.h"
#include "util.h"
#include "libsrf.h"
#include "plugin.h"
// ---------------------------------------------------------------------------
static libsrf_files_t *readWAVEEntry(libsrf_t *session, libsrf_entry... |
misc0110/libsrf | include/formats/qhdr.h | #ifndef YDKJEXTRACTOR_QHDR_H
#define YDKJEXTRACTOR_QHDR_H
#include <stdint.h>
typedef struct {
uint16_t length;
char name[4];
uint8_t unk1;
uint8_t unk2;
uint8_t value;
uint8_t type;
uint8_t unk3;
uint8_t subtype;
uint32_t unk4;
char category[64];
char file[66];
char co... |
misc0110/libsrf | src/formats/json.c | #include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "libsrf.h"
#include "formats/json.h"
// ---------------------------------------------------------------------------
libsrf_json_t* libsrf_json_create() {
libsrf_json_t* json = (libsrf_json_t*)malloc(sizeof(libsrf_json_t));
json->flags = 0; /... |
misc0110/libsrf | include/encoding.h | #ifndef YDKJEXTRACTOR_ENCODING_H
#define YDKJEXTRACTOR_ENCODING_H
char* libsrf_encoding_to_utf8(char* str);
char* libsrf_encoding_move_to_utf8(char* str);
char *libsrf_encoding_add_bom(char *str);
#endif //YDKJEXTRACTOR_ENCODING_H
|
misc0110/libsrf | src/properties.c | #include "properties.h"
const char *LIBSRF_PROPERTY_VALUE_STRING[] = {
FOREACH_PROPERTY_VALUE(GENERATE_STRING)
};
const char *LIBSRF_PROPERTY_STRING[] = {
FOREACH_PROPERTY(GENERATE_STRING)
};
|
misc0110/libsrf | include/util.h | #ifndef _UTIL_H_
#define _UTIL_H_
#include <stdio.h>
#include <stdint.h>
#include "libsrf.h"
uint16_t libsrf_swap16(uint16_t num);
uint32_t libsrf_swap32(uint32_t num);
float libsrf_swap_float(float inFloat);
libsrf_files_t* libsrf_to_single_file(char* data, size_t size, char* type);
#if 0
char *readEntry(FileEn... |
misc0110/libsrf | src/formats/img.c | #include <stdlib.h>
#include <string.h>
#include "formats/img.h"
#include "formats/libattopng.h"
static const uint32_t palette_1[] = {
0x00000000, 0xff000080, 0xff008000, 0xff008080, 0xff800000, 0xff800080, 0xff808000, 0xffc0c0c0, 0xffc0dcc0,
0xfff0caa6, 0xffccffff, 0xff99ffff, 0xff66ffff, 0xff33ffff, ... |
misc0110/libsrf | src/plugin.c | <reponame>misc0110/libsrf
#include "plugin.h"
#include <string.h>
#include <stdio.h>
// ---------------------------------------------------------------------------
int libsrf_find_plugin(char* type) {
int h;
for (h = 0; h < libsrf_plugin_count; h++) {
if (!strncmp(type, libsrf_plugin[h].type, strlen(li... |
misc0110/libsrf | include/settings.h | #ifndef YDKJEXTRACTOR_SETTINGS_H
#define YDKJEXTRACTOR_SETTINGS_H
#include "libsrf.h"
#include "properties.h"
void libsrf_setting_set(libsrf_t *session, const char *key, const char *value);
void libsrf_setting_set_int(libsrf_t *session, const char *key, int value);
void libsrf_setting_set_float(libsrf_t *session, ... |
misc0110/libsrf | src/settings.c | #include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "settings.h"
// ---------------------------------------------------------------------------
void libsrf_setting_cleanup(libsrf_t* session) {
size_t i;
for(i = 0; i < session->settings.count; i++) {
free(session->settings.settings[i].k... |
misc0110/libsrf | include/formats/binary.h | <filename>include/formats/binary.h
#ifndef YDKJEXTRACTOR_BINARY_H
#define YDKJEXTRACTOR_BINARY_H
#endif //YDKJEXTRACTOR_BINARY_H
|
misc0110/libsrf | include/formats/img.h | <reponame>misc0110/libsrf
#ifndef YDKJEXTRACTOR_BMP_H
#define YDKJEXTRACTOR_BMP_H
#include <stdint.h>
typedef struct {
uint8_t header[2];
uint32_t filesize;
uint32_t zero;
uint32_t pos;
uint32_t header_len;
uint32_t width;
uint32_t height;
uint16_t layers;
uint16_t depth;
uint3... |
misc0110/libsrf | src/encoding.c | <filename>src/encoding.c
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "cstring.h"
static const uint32_t upper_encoding[] = {
0xC384, 0xC385, 0xC387, 0xC389, 0xC391, 0xC396, 0xC39C, 0xC3A1, 0xC3A0, 0xC3A2, 0xC3A4, 0xC3A3, 0xC3A5, 0xC3A7,
0xC3A9, 0xC3A8, 0xC... |
misc0110/libsrf | include/libsrf.h | <filename>include/libsrf.h
#ifndef YDKJEXTRACTOR_SRF_H
#define YDKJEXTRACTOR_SRF_H
#include <stdio.h>
#include "properties.h"
typedef struct {
FILE *file;
size_t entries_to_read;
char current_type[5];
size_t srf_size;
libsrf_settings_t settings;
} libsrf_t;
typedef struct {
char type[5];
... |
misc0110/libsrf | src/formats/strings.c | #include <stdlib.h>
#include <string.h>
#include "libsrf.h"
#include "strings.h"
#include "util.h"
#include "plugin.h"
#include "cstring.h"
#include "encoding.h"
#include "formats/json.h"
// ---------------------------------------------------------------------------
static char *handleString(libsrf_t *session, libsrf... |
misc0110/libsrf | src/formats/qhdr.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "formats/qhdr.h"
#include "formats/json.h"
#include "libsrf.h"
#include "plugin.h"
#include "encoding.h"
#include "util.h"
// ---------------------------------------------------------------------------
static libsrf_files_t *handlerQhdr(libsrf_t *sess... |
misc0110/libsrf | include/properties.h | <gh_stars>1-10
#ifndef YDKJEXTRACTOR_PROPERTIES_H
#define YDKJEXTRACTOR_PROPERTIES_H
#include <stdio.h>
#define FOREACH_PROPERTY(PROPERTY) \
PROPERTY(IMAGE_FORMAT) \
PROPERTY(IMAGE_PALETTE) \
PROPERTY(_LAST_PROPERTY) \
#define FOREACH_PROPERTY_VALUE(PROPVAL) \
PROPVAL(IMAGE_FORMAT_BMP)... |
misc0110/libsrf | src/libsrf.c | <filename>src/libsrf.c
/*
* Copyright (c) 2017 <NAME>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will ... |
misc0110/libsrf | include/plugin.h | #ifndef YDKJEXTRACTOR_PLUGIN_H
#define YDKJEXTRACTOR_PLUGIN_H
#include "libsrf.h"
#define MAX_PLUGINS 32
// ---------------------------------------------------------------------------
extern int libsrf_plugin_count;
typedef struct {
const char *type;
libsrf_files_t* (*handler)(libsrf_t *, libsrf_entry_t*);
... |
misc0110/libsrf | include/formats/image.h | <reponame>misc0110/libsrf
#ifndef YDKJEXTRACTOR_IMAGE_H
#define YDKJEXTRACTOR_IMAGE_H
#include <stdint.h>
typedef struct {
uint32_t offset;
uint16_t version;
uint16_t block_word_size;
uint16_t entries;
} __attribute__((packed)) ImageHeader;
typedef struct {
uint16_t share_offset;
int16_t left... |
misc0110/libsrf | src/formats/image.c | #include <stdlib.h>
#include <string.h>
#include "formats/image.h"
#include "plugin.h"
#include "libsrf.h"
#include "util.h"
#include "properties.h"
#include "settings.h"
#include "formats/img.h"
#include "formats/json.h"
// ---------------------------------------------------------------------------
static uint16_t *c... |
misc0110/libsrf | src/formats/binary.c | #include "formats/binary.h"
#include <stdlib.h>
#include <string.h>
#include "libsrf.h"
#include "plugin.h"
#include "util.h"
#include "cstring.h"
// ---------------------------------------------------------------------------
static libsrf_files_t *handlerAns(libsrf_t *session, libsrf_entry_t *entry) {
char* json ... |
misc0110/libsrf | src/util.c | <filename>src/util.c
#include "util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// ---------------------------------------------------------------------------
uint32_t libsrf_swap32(uint32_t num) {
return ((num>>24)&0xff) |
((num<<8)&0xff0000) |
((num>>8)&0xff00) |
... |
misc0110/libsrf | include/formats/sound.h | #ifndef _SOUND_H_
#define _SOUND_H_
#include <stdio.h>
#include <stdint.h>
typedef struct {
char magic[4];
uint32_t size;
char aifc[4];
char aifc_ver[4];
uint32_t version;
uint32_t aifc1_version;
char comm[4];
uint32_t comm_size;
uint16_t channels;
uint32_t frames;
uint16_t... |
misc0110/libsrf | src/cstring.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "cstring.h"
typedef struct {
size_t capacity;
char data[];
} cstring;
#define TO_CSTR(x) ((cstring*)((size_t)(x) - sizeof(cstring)))
#define TO_CHAR(x) ((char*)(((size_t)(x)) + sizeof(cstring)))
// -----------------------... |
misc0110/libsrf | include/formats/aifc.h | #ifndef YDKJEXTRACTOR_AIFC_H
#define YDKJEXTRACTOR_AIFC_H
char *libsrf_aifc2wav(char *in, int len, int *out_len);
#endif //YDKJEXTRACTOR_AIFC_H
|
misc0110/libsrf | include/formats/strings.h | #ifndef YDKJEXTRACTOR_STRINGS_H
#define YDKJEXTRACTOR_STRINGS_H
#endif //YDKJEXTRACTOR_STRINGS_H
|
sotayamashita/growthbeat-ios-sample | ios/GrowthbeatStarterProject/GrowthbeatStarterProject/AppDelegate.h | <filename>ios/GrowthbeatStarterProject/GrowthbeatStarterProject/AppDelegate.h
//
// AppDelegate.h
// GrowthbeatStarterProject
//
// Created by SIROK,Inc. on 04/03/2016.
// Copyright © 2016 SIROK, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Growthbeat/Growthbeat.h>
#import <GrowthLink/GrowthLink.h... |
sotayamashita/growthbeat-ios-sample | ios/GrowthbeatStarterProject-Swift/GrowthbeatStarterProject/GrowthbeatStarterProject-Bridging-Header.h | //
// GrowthbeatStarterProject-Bridging-Header.h
// GrowthbeatStarterProject
//
// Created by <NAME> on 22/03/2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#ifndef GrowthbeatStarterProject_Bridging_Header_h
#define GrowthbeatStarterProject_Bridging_Header_h
#import <Growthbeat/Growthbeat.h>
#import <G... |
sotayamashita/growthbeat-ios-sample | ios/GrowthbeatStarterProject/GrowthbeatStarterProject/ViewController.h | <filename>ios/GrowthbeatStarterProject/GrowthbeatStarterProject/ViewController.h
//
// ViewController.h
// GrowthbeatStarterProject
//
// Created by SIROK, Inc. on 04/03/2016.
// Copyright © 2016 SIROK, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController {
IBOutle... |
fredlee12001/DAPLink | source/family/freescale/hexing_wisun/flash_blob.c | <filename>source/family/freescale/hexing_wisun/flash_blob.c<gh_stars>0
/**
* @file flash_blob.c
* @brief Flash algorithm for the i.MXRT1050 QSPI
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2019, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache Lic... |
jayahariv/becomeACppDeveloper | CppND-System-Monitor-Project-Updated-master/include/processor.h | <gh_stars>0
#ifndef PROCESSOR_H
#define PROCESSOR_H
#include <vector>
class Processor {
public:
std::vector<float> Utilization();
};
#endif |
jayahariv/becomeACppDeveloper | CppND-Route-Planning-Project-master/src/shared.h | <filename>CppND-Route-Planning-Project-master/src/shared.h
#ifndef SHARED_H
#define SHARED_H
// uncomment this to turn on logs
// #define ENABLE_LOG 1
#endif |
kai4711x/zellview | Com/Interfaces/Lookup/Lookup_p.c | /* this ALWAYS GENERATED file contains the proxy stub code */
/* File created by MIDL compiler version 2.00.0102 */
/* at Wed Oct 30 17:25:28 1996
*/
//@@MIDL_FILE_HEADING( )
#include "rpcproxy.h"
#include "Lookup.h"
extern const MIDL_FORMAT_STRING __MIDLFormatString;
extern const MIDL_FORMAT_STRI... |
kai4711x/zellview | Com/Interfaces/Lookup/Lookup.h | /* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 2.00.0102 */
/* at Wed Oct 30 17:25:28 1996
*/
//@@MIDL_FILE_HEADING( )
#include "rpc.h"
#include "rpcndr.h"
#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_... |
kai4711x/zellview | Com/Interfaces/Lookup/Lookup_i.c | /* this ALWAYS GENERATED file contains the actual definitions of */
/* the IIDs and CLSIDs */
/* link this file in with the server and any clients */
/* File created by MIDL compiler version 2.00.0102 */
/* at Wed Oct 30 17:25:28 1996
*/
//@@MIDL_FILE_HEADING( )
#ifdef __cplusplus
extern "C"{
#endif
... |
hadrianw/chrwin | chrwin.c | /*
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 PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCL... |
txje/fastvar | fasttype.c | <reponame>txje/fastvar
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "htslib/sam.h"
#include "incl/klib/khash.h"
#include "incl/klib/ksort.h"
#include "incl/klib/kseq.h"
#include "incl/klib/kvec.h"
#include "bed.h"
// wikipedia
void show_bits(unsigned int x) {
int i;
... |
txje/fastvar | fastdiff.c | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "htslib/sam.h"
#include "incl/klib/khash.h"
#include "incl/klib/ksort.h"
#include "incl/klib/kseq.h"
/*
* fastdiff.c
*
* <NAME>
* 20180419
*
* As fast as possible compute the loci where the average read from
* the bam file d... |
txje/fastvar | bed.c | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "bed.h"
bed_header_t parse_header(FILE* bed_fp) {
bed_header_t header;
// 1024 maximum ref sequences
header.num_sequences = 0;
header.sequences = malloc(sizeof(char*) * 1024);
header.sequence_lengths = malloc(sizeof(size_... |
txje/fastvar | ktype.c | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "incl/klib/khash.h"
#include "incl/klib/ksort.h"
#include "incl/klib/kseq.h"
#include "incl/klib/kvec.h"
#include "bed.h"
#include <zlib.h>
// wikipedia
void show_bits(unsigned int x) {
int i;
for(i=(sizeof(int)*8)-1; i>=0; i--)
(x&(1u... |
txje/fastvar | bed.h | <reponame>txje/fastvar
typedef struct bed_header_t {
char* version;
size_t num_sequences;
char** sequences;
size_t* sequence_lengths;
} bed_header_t;
typedef struct bed_file_t {
FILE *fp;
bed_header_t header;
size_t cur_row;
} bed_file_t;
typedef struct bed_line_t {
char chrom[10];
int st;
int en... |
rfungquicklogic/vtr-verilog-to-routing | vpr/src/base/read_options.h | <reponame>rfungquicklogic/vtr-verilog-to-routing
#ifndef READ_OPTIONS_H
#define READ_OPTIONS_H
#include "read_blif.h"
#include "vpr_types.h"
#include "constant_nets.h"
#include "argparse_value.hpp"
struct t_options {
/* File names */
argparse::ArgValue<std::string> ArchFile;
argparse::ArgValue<std::string... |
rfungquicklogic/vtr-verilog-to-routing | ODIN_II/SRC/include/verilog_preprocessor.h | #ifndef verilog_preprocessor_h
#define verilog_preprocessor_h
#define DefaultSize 20
#define MaxLine 4096
#include <stdio.h>
//#define BLOCK_EMPTY_DEFINES
/* Structs */
typedef struct veri_include
{
char *path;
struct veri_include *included_from;
int line;
} veri_include;
typedef struct veri_define
{
char *symb... |
amarmaduke/kind2 | lfsc/checker/code.h | <gh_stars>10-100
#ifndef SC2_CODE_H
#define SC2_CODE_H
#include "expr.h"
Expr *read_code();
Expr *check_code(Expr *); // compute the type for the given code
Expr *run_code(Expr *);
int read_index();
extern bool dbg_prog;
extern bool run_scc;
#endif
|
amarmaduke/kind2 | lfsc/checker/print_smt2.h | <gh_stars>10-100
#ifndef PRINT_SMT2_H
#define PRINT_SMT2_H
#define PRINT_SMT2
#include "expr.h"
#ifdef PRINT_SMT2
void print_smt2( Expr* p, std::ostream& s, short mode = 0 );
bool is_smt2_poly_formula( Expr* p );
short get_mode( Expr* p );
#endif
#endif
|
amarmaduke/kind2 | lfsc/checker/scccode.h | <reponame>amarmaduke/kind2
#ifndef SCC_CODE_H
#define SCC_CODE_H
#include "check.h"
void init_compiled_scc();
Expr* run_compiled_scc( Expr* p, std::vector< Expr* >& args );
inline Expr* f_append( Expr* c1, Expr* c2 );
inline Expr* f_simplify_clause( Expr* c );
inline Expr* f_unroll_from( Expr* T, Expr* I, Expr* k... |
amarmaduke/kind2 | lfsc/checker/sccwriter.h | <reponame>amarmaduke/kind2
#ifndef SCC_WRITER_H
#define SCC_WRITER_H
#include "expr.h"
#include <vector>
#include "check.h"
enum
{
opt_write_case_body = 0x00000001,
opt_write_check_sym_expr = 0x00000002,
opt_write_add_args = 0x000000004,
opt_write_no_inc = 0x00000008,
opt_write_call_debug = 0x00000010,
o... |
amarmaduke/kind2 | lfsc/checker/chunking_memory_management.h | ///////////////////////////////////////////////////////////////////////////////
// //
// Copyright (C) 2002 by the Board of Trustees of Leland Stanford //
// Junior University. See LICENSE for details. //
... |
amarmaduke/kind2 | lfsc/checker/libwriter.h | #ifndef LIB_WRITER_H
#define LIB_WRITER_H
#include "expr.h"
#include <map>
class libwriter
{
private:
std::vector< Expr* > syms;
std::vector< Expr* > defs;
std::vector< Expr* > judgements;
//get the variable name
void get_var_name( const std::string& n, std::string& nn );
public:
libwriter(){}
virtual ... |
theopolisme/react-native-cardflight | ios/RNCardFlight/CardFlightManager.h | <filename>ios/RNCardFlight/CardFlightManager.h
//
// CardFlightManager.h
//
#import "RCTBridgeModule.h"
#import "CardFlight.h"
@interface CardFlightManager : NSObject <RCTBridgeModule, CFTReaderDelegate>
@property (nonatomic) CFTCard *swipedCard;
@property (nonatomic) CFTReader *reader;
@property (atomic) RCTRespon... |
theopolisme/react-native-cardflight | ios/CardFlight/CFTEnum.h | /*
*****************************************************************
* CFTEnum.h
*
* Copyright (c) 2015 CardFlight Inc. All rights reserved.
*****************************************************************
*/
typedef NS_ENUM(NSUInteger, CFTEMVMessage) {
EMVMessage_UNKNOWN,
EMVMessage_AMOUNT_OK,
EMVM... |
theopolisme/react-native-cardflight | ios/CardFlight/CFTBaseReader.h | <reponame>theopolisme/react-native-cardflight<gh_stars>1-10
//
// CFTBaseReader.h
// CardFlightLibrary
//
// Created by <NAME> on 6/10/14.
// Copyright (c) 2014 CardFlight Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class CFTCard;
@protocol CFTReaderDelegate <NSObject>
... |
theopolisme/react-native-cardflight | ios/CardFlight/CFTCustomView.h | <reponame>theopolisme/react-native-cardflight<filename>ios/CardFlight/CFTCustomView.h
/*
*****************************************************************
* CFTCustomView.h
*
* Containing view to hold the custom manual entry textfields.
* The view receives no events directly and should never have an
* appearance ... |
theopolisme/react-native-cardflight | ios/CardFlight/CardFlight.h | /*
*****************************************************************
* CFTCardFlight.h
*
* Master header file for CardFlight SDK. This single file can
* be included and all supporting headers will be available in a
* project.
*
* Copyright (c) 2015 CardFlight Inc. All rights reserved.
*************************... |
theopolisme/react-native-cardflight | ios/CardFlight/CFTCustomEntryTextField.h | /*
*****************************************************************
* CFTCustomEntryTextField.h
*
* Public facing interfaces to the private custom manual entry
* textfields.
*
* Appearance method calls are sent to a CFTCustomEntryTextField
* contained in a CFTCustomView to set the look and feel of the
* priva... |
theopolisme/react-native-cardflight | ios/CardFlight/CFTCard.h | /*
*****************************************************************
* CFTCard.h
*
* Class to handle all functions associated with a particular
* credit card. Is returned after a successful swipe or after
* calling generateCard from the custom manual entry UIView.
*
* Charges are called on the specific card th... |
theopolisme/react-native-cardflight | ios/CardFlight/CFTPaymentView.h | /*
*****************************************************************
* CFTPaymentView.h
*
* Copyright (c) 2015 CardFlight Inc. All rights reserved.
*****************************************************************
*/
#import <UIKit/UIKit.h>
@class CFTCard;
@protocol CFTPaymentViewDelegate <NSObject>
@required
... |
theopolisme/react-native-cardflight | ios/CardFlight/CFTReader.h | <filename>ios/CardFlight/CFTReader.h<gh_stars>1-10
/*
*****************************************************************
* CFTReader.h
*
* Class to manage the hardware reader. Contains a protocol that
* must be implemented by a delegate in order to process
* responses from the hardware reader.
*
* An instance of... |
theopolisme/react-native-cardflight | ios/CardFlight/CFTSessionManager.h | /*
*****************************************************************
* CFTSessionManager.h
*
* A CardFlight singleton is created to maintain session-wide
* settings and information.
*
* All additional functionality is supplied by the individual class
* related to the function that you want to perform. Only the
... |
theopolisme/react-native-cardflight | ios/CardFlight/CFTCharge.h | <reponame>theopolisme/react-native-cardflight
/*
*****************************************************************
* CFTCharge.h
*
* Is returned after a successful charge is made.
* Contains all the information about a charge and has the ability
* to refund it, either partially or in full
*
* Copyright (c) 2015... |
F4r3n/FarenMediaLibrary | lib/src/Script/Script.h | #pragma once
#include <string>
#include <Core/FilePath.h>
#include <nlohmann/json_fwd.hpp>
class Entity;
namespace fm {
class CppScript;
class BaseEvent;
}
namespace fmc
{
class CTransform;
}
class Behaviour
{
friend class fm::CppScript;
public:
Behaviour() {}
virtual ~Behaviour() {}
... |
F4r3n/FarenMediaLibrary | lib/src/Core/FilePath.h | <reponame>F4r3n/FarenMediaLibrary
#pragma once
#include <string>
#include <functional>
#include "Resource/FileSystem.h"
#include <ctime>
namespace fm
{
class FilePath
{
public:
FilePath() {}
~FilePath() {}
FilePath(const std::string &inPath);
FilePath(const FilePath &inPath);
FilePath(fm::LOCATION inLocati... |
F4r3n/FarenMediaLibrary | lib/src/Core/Bounds.h | <gh_stars>1-10
#pragma once
#include "Core/Math/Vector3.h"
#include "Core/Math/Vector2.h"
namespace fm {
class Bounds {
public:
Bounds();
Bounds(const fm::math::vec3& center, const fm::math::vec3& size);
void encapsulate(const Bounds& bounds);
bool isInside(const fm::math::vec3 &point);
bool isInsi... |
F4r3n/FarenMediaLibrary | gui/src/Window/GGameView.h | <reponame>F4r3n/FarenMediaLibrary
#pragma once
#include "Rendering/RenderTexture.h"
#include <memory>
#include "Core/GameObject.h"
#include <vector>
#include "GWindow.h"
namespace fms
{
class PickingSystem;
}
namespace gui
{
class GGameView : public GWindow
{
struct CameraPreview
{
std::weak_ptr<fm::RenderT... |
F4r3n/FarenMediaLibrary | lib/src/Music/Listener.h | <reponame>F4r3n/FarenMediaLibrary
#pragma once
#include "Core/Math/Vector2.h"
namespace fm {
class Listener {
public:
Listener();
~Listener();
void setPosition(math::Vector2f pos);
private:
float listenerOri[6] = { 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f };
};
} |
F4r3n/FarenMediaLibrary | lib/src/Core/Math/Quaternion.h | <filename>lib/src/Core/Math/Quaternion.h
#pragma once
#include "Vector4.h"
#include "Vector3.h"
#include "Matrix.h"
namespace fm
{
namespace math
{
class Quaternion
{
public:
Quaternion();
Quaternion(const Quaternion &q);
Quaternion(float w, float x, float y, float z);
Quaternion(const vec4& inVec4)... |
F4r3n/FarenMediaLibrary | lib/src/Rendering/RenderTexture.h | <filename>lib/src/Rendering/RenderTexture.h
#pragma once
#include <Core/Config.h>
#include "Rendering/Texture.h"
namespace fm
{
class RenderTexture
{
public:
RenderTexture() {}
RenderTexture(size_t width, size_t height,
unsigned int numberColorAttchment, Format *formats, Type *types, unsig... |
F4r3n/FarenMediaLibrary | lib/src/Components/CTransform.h | <filename>lib/src/Components/CTransform.h
#pragma once
#include "component.h"
#include "Core/Transform.h"
#include "Core/Math/Vector3.h"
#include "Core/Math/Vector4.h"
#include "Core/Math/Matrix.h"
#include "Core/Math/Quaternion.h"
#include <nlohmann/json_fwd.hpp>
class Entity;
class EntityManager;
namespace fmc {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.