text stringlengths 14 6.51M |
|---|
unit uDM;
interface
uses
System.SysUtils, System.Classes, UniProvider, SQLServerUniProvider, Data.DB,
MemDS, DBAccess, Uni, Controls, Dialogs, OracleUniProvider, EMS.Consts, EMS.Services;
type
TDM = class(TDataModule)
UniConnection1: TUniConnection;
dsTables: TUniDataSource;
qryTables: TUniQuery;
... |
unit ServerConfig;
interface
uses
System.Generics.Collections, Client, ObjectsMappers, RepositoryConfig;
type
/// <summary>A mutable abstract data type for a server configuration. It is made mutable
/// due to the use of the DMVCFramework's ObjectMapper parser that imposes this
/// restriction. Once one get... |
unit vRtti;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Data.DB, Datasnap.DBClient, Vcl.Grids,
Vcl.DBGrids, System.Generics.Collections, mPessoa, System.Rtti, Vcl.StdCtrls;
type
TfRTTI = class(TForm)
... |
{******************************************************************
* 项目名称:
* 单元名称:除魔任务面板内容
* 单元作者:
* 摘 要:
* 备 注:
*******************************************************************}
program Mir2;
{$I common.pas}
//本任务的任务编号,每个任务对应不同的任务编号,这个不可以重复
const CurrentTaskID = 10008;
//TASK_TYPE_MAIN 任务类型为主... |
{ Just another Lase Show Editor (Jlse) (based on Heathcliff)
Copyright (C) 1999,2000,2010 Patrick Michael Kolla.
2013 Christian Ulrich (info@cu-tec.de)
This source is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Fre... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.3.2-3, FILE=CONF053, CLAS... |
{
gitprompt: Git prompt utility
Author: Jerry Jian (emisjerry@gmail.com)
v0.01 2014/09/02: Initial version
v0.02 2014/09/03: Add different color for branch status
v0.03 2014/09/04: Get root folder to read HEAD file properly
v0.04 2014/09/09: Add version entry to ini for recreating it
v0.05 2014/09/09: Fi... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.2.4-3, FILE=DEV060, C... |
namespace TwinPeaks;
interface
uses
UIKit;
type
TPHeaderView = public class(UIView)
private
var fCaption: String;
public
method initWithWidth(aWidth: CGFloat) caption(aCaption: String): id;
method drawRect(rect: CGRect); override;
class method headerHeight: CGFloat;
... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.3.8-5, FILE=LEV1F47, ... |
(*
CreatedAt: 2020-04-30 @ Jatinangor, Sumedang, Jawa Barat
CreatedBy: Sony NS
Description: sunmi v1 printer ESC command
java source: https://github.com/shangmisunmi/SunmiPrinterDemo
*)
unit Sunmi.ESC.Utils;
interface
uses Classes, SysUtils, Generics.Collections;
const
ESC = $1B;// Escape
FS = $1... |
{*******************************************************************************
Title: T2Ti ERP
Description: Classe de controle do cliente.
The MIT License
Copyright: Copyright (C) 2010 T2Ti.COM
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentatio... |
{
part of: MP3FileUtils v0.6b
-------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (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.mo... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.5.3.2-1, FILE=CONF089, CLAS... |
unit uDados;
interface
uses
IniFiles, System.SysUtils, System.Classes, Data.FMTBcd, Data.DB, Data.SqlExpr,
Windows, Messages, Variants, Graphics,
Controls, Forms, Dialogs, StdCtrls, Buttons, Data.DBXMSSQL, Datasnap.DBClient,
SimpleDS, Data.Win.ADODB;
type
TDmPrincipal = class(TDataModule)
ADOConn: TADO... |
unit MVCFramework.Session;
interface
uses System.SysUtils,
System.Generics.Collections;
type
TWebSession = class abstract
strict protected
FSessionID: string;
FLastAccess: TDateTime;
FTimeout: UInt64;
function GetItems(const Key: string): string; virtual; abstract;
procedure S... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.2.2-10, FILE=DEV041, CL... |
unit PGraphics;
// panel graphics
// je trida, ktera obsahuje vykreslovaci nastroje dostupne pro vsechny podtridy panelu
interface
uses DXDraws, Graphics, Classes, Types, SysUtils, StrUtils, Controls, Global,
symbolHelper;
type
TPanelGraphics = class
private
DrawObject: TDXDraw;
IL_Text: TImageList;
... |
unit Service;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.SvcMgr, Vcl.Dialogs, ZapMQ.Threads;
type
TZapMQservice = class(TService)
procedure ServiceStart(Sender: TService; var Started: Boolean);
procedure ServiceStop(Sender... |
unit UmapMgr;
interface
uses classes, sysutils,
Ucommon;
type
{$H-}
Rmapdata = reCord
fname, name, descr: string;
fsize: integer;
Width, Height, hdrsize: word;
end;
TmapMgr = class(TObject)
private
fcurmap : word;
procedure Setcurmap(const Value: word);
public
... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.8.3.7-1, FILE=CONF172, CLAS... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.3.6-1, FILE=DEV136, C... |
namespace RemObjects.Elements.System;
interface
type
&Nullable<T> = public record
where
T is record;
private
fHasValue: Boolean; readonly;
fValue: T; readonly;
public
constructor; empty;
constructor(aValue: T);
property HasValue: Boolean read fHasValue;
method GetValue: T;
met... |
unit FORM_Cadastro;
interface
uses
MyORM.Atributos.Dao,
MyORM.Dao.Firedac,MyORM.Controller,
MyORM.Collections,
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs,Rtti, Vcl.StdCtrls,StrUtils;
type
TFormFichaORM = class(TFo... |
unit TestServerControllerExceptionU;
interface
uses
MVCFramework, System.SysUtils;
type
EMyException = class(Exception)
end;
[MVCPath('/exception/aftercreate')]
TTestServerControllerExceptionAfterCreate = class(TMVCController)
protected
procedure MVCControllerAfterCreate; overrid... |
unit AtlasBuilder;
interface
uses SysUtils, Types;
Type
TNode = class
Child: Array[0..1] of TNode;
FRect: TRect;
Busy: Boolean;
public
Function Insert(const Width, Height: Integer): TNode;
Constructor Create;
Destructor Destroy; override;
Property Rect: TRect read FRect;
end;
T... |
unit AQSubscriptionResponce;
interface
uses
ObjectsMappers;
type
TAQSubscriptionResponceMessages = class abstract(TObject)
const
NO_SUBSCRIPTION_DATA = 'No subscription data is found.';
NOT_AUTHORISED = 'Not authorised';
ALREADY_SUBSCRIBED = 'Already subscribed';
SUBSCRIBE_SUCCESS = 'Successful... |
unit Workbook;
interface
uses
Sheets, System.Generics.Collections, CellFormat, SharedStrings;
type
TXlsxWorkbook = class(TObject)
private
FSheets: TObjectList<TXlsxSheet>;
FDefaultFormat: TXlsxCellFormat;
FSharedStrings: TXlsxSharedStrings;
procedure InternalSaveRelations(basePath: String);
p... |
program _pivot;
{ programme utilisant le pivot de gauss-jordan pour inverser et }
{ calculer le détermiant d'une matrice }
{ utilise la bibliothèque matrices.pas }
uses matrices;
{ pivot de Gauss Jordan partiel: on permute les lignes }
procedure inversion(M:matrice; var B:matrice; var det:real);
var
A:matrice;
... |
unit Observer;
interface
type
IObserver = interface
procedure Update(Temperature,Humidity,Pressure: double);
end;
implementation
end.
|
// Copyright (c) 2020 Tomsk, Marat Shaimardanov
// Protocol buffer Generator for Delphi
unit Oz.Pb.Scanner;
interface
uses
System.SysUtils, Oz.Cocor.Utils, Oz.Cocor.Lib;
type
TpbScanner = class(TBaseScanner)
private
function Comment0: Boolean;
function Comment1: Boolean;
procedure CheckLiteral;
... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.5.3-26, FILE=CONF129, CLA... |
unit c_fileprops;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, ExtCtrls, crDefs, fgl,
Graphics, c_settings;
type
{ TFrmFile }
TFrmFile = class(TFrame)
PnText: TPanel;
private
Fselected, Fisdir: boolean;
Ffname: strin... |
{==============================================================================|
| Project : M3wP Yahtzee |
|==============================================================================|
| Content: Socket Independent Platform Layer ... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.2.5-3, FILE=CONF162, CLAS... |
unit frmSettingLocal;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, cxClasses,
// Auto Generate
frmUni, Menus, cxLookAndFeelPainters, cxGraphics, cxCheckBox, cxControls,
cxContainer, cxEdit, cxTextEdit, cxMaskEdit, cxDropDownEdit, StdCtrls,
... |
unit uItemPedido;
interface
uses uController, System.Types , Data.SqlExpr, System.Classes,
System.SysUtils, FireDAC.Stan.Intf, FireDAC.Stan.Option,
FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def,
FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.Phys.FB,
FireDAC.Phys.FBDef... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.7.2.5-10, FILE=DEV187, ... |
unit DispatcherEntryTest;
interface
uses
DUnitX.TestFramework;
type
[TestFixture]
TDispatcherEntrytest = class(TObject)
public
[Setup]
procedure Setup;
[TearDown]
procedure TearDown;
/// Just to see whether the framework constructs a DispatcherEntry object from a json one.
[Test]
... |
program mul_func;
{------------------------------------------------------------------------------]
Shows how to implement a native cdecl function within lape itself,
using lapes "special" argument passing
The goal of this example - Implement the following native method:
-------------------------------------------... |
unit Display;
interface
uses
Observer, WeatherCentral, Subject, System.SysUtils;
type
TDisplay = class(TInterfacedObject, IObserver)
private
FTemperature: double;
FHumidity: double;
FPressure: double;
FWeatherCentral: ISubject;
public
constructor Create(Weather: ISubject);
procedure U... |
(*
CreatedAt: 2020-04-30 @ Jatinangor, Sumedang, Jawa Barat
CreatedBy: Sony NS
Description: sunmi v1 bluetooth printer
java source: https://github.com/shangmisunmi/SunmiPrinterDemo
*)
unit Sunmi.Bluetooth.Printer;
interface
uses
System.SysUtils, System.Classes, System.Bluetooth, System.Bluetooth.Com... |
Unit
TickTack; {origin idea: some unknown programmer from Vologda}
Interface
const
Frequency=1193180;
DefaultDiv=1193;
procedure StartTimer;
procedure StopTimer;
function GetTime : real;
function GetTicks : longint;
function GetStart : longint;
function GetFinish : longint;
p... |
unit UfmExpertMainForm;
interface
uses
SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Grids, ExtCtrls, StdCtrls, ComCtrls,
ActnList, ImgList, ToolWin, Types;
type
TfmExpertMainForm = class(TForm)
ToolBar: TToolBar;
tbnSave: TToolButton;
Actions: TActionList;
actFileSave:... |
{
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/
*
* Copyright (C) 1999-2014, Peter Johnson (www.delphidabbler.com).
*
* $Rev$
* $Date$
*
* Clipboard Viewer Co... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.1.5-6, FILE=DEV011, CLA... |
unit UCL.IntAnimation.Helpers;
interface
uses
Controls,
UCL.IntAnimation;
type
TAnimationProp = (
apTop, apLeft, apWidth, apHeight,
apMarginTop, apMarginLeft, apMarginRight, apMarginBottom,
apPaddingTop, apPaddingLeft, apPaddingRight, apPaddingBottom
);
TWinControlHelper = cla... |
unit TimeUnit;
{ MiniCoin Wallet and Miner Copyright (c) 2019 by Preben Bjorn Biermann Madsen
Based on Kreditz Coin Copyright (c) 2018 Pjor, Kreditz Team
Distributed under the MIT software license, see the accompanying file LICENSE
or visit http://www.opensource.org/licenses/mit-license.php.
This unit is... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.5.4-3, FILE=DEV109, CLA... |
{ ******************************************************************
This unit fits the increasing exponential :
y = Ymin + A.[1 - exp(-k.x)]
****************************************************************** }
unit uiexpfit;
interface
uses
utypes, uConstants;
procedure IncExpFit(X, Y: TVect... |
unit Lucidity.FirstRun;
interface
{$INCLUDE Defines.inc}
// TODO:HIGH this first run setup stuff should be moved to Lucidity.GlobalSetup.pas
procedure FirstRunSetup;
procedure InstallFont(FontFile : string);
implementation
uses
{$IFDEF Logging}VamLib.Logging,{$ENDIF}
WinApi.Windows,
WinApi.Messages,
SysU... |
unit numeroPorExtenso;
interface
type
TNumeroPorExtenso = class
private
FsNumero: string;
function getNumeroPorExtenso: string;
procedure setNumero(const Value: string);
protected
function IncluirLetraE(sNumeroAnt, sNumeroPost: string): string;
public
property sNumero: string ... |
unit uSound;
interface
uses Bass, Classes;
const
mcMenu = 1; // Menu music
mcGame = 2; // Game music
mcClick = 3; // Mouse click sound
var
FF: Boolean = True;
type
TChannelType = (ctUnknown, ctStream, ctMusic);
TSound = class(TObject)
private
FC: Byte;
FChannelTyp... |
unit Iocp.HttpTunnel;
interface
uses
Windows, Messages, Classes, SysUtils, SyncObjs, StrUtils, System.Generics.Collections, Iocp.Winsock2,
IoUtils, Iocp.TcpSocket, Iocp.HttpServer, Iocp.Buffer, Iocp.HttpUtils, Iocp.Logger, uGlobalVars;
type
TIocpHttpTunnelConnection = class;
TIocpHttpAgentConnection = class... |
unit DbCrackerUnit;
interface
uses
Classes,
DB,
DBGrids;
function GetColumnIsStored(Column: TColumn): Boolean;
function GetColumnsFromCustomDbGrid(CustomDbGrid: TCustomDbGrid): TDBGridColumns;
function GetCustomDbGridFromGridDataLink(
GridDataLink: TGridDataLink): TCustomDbGrid;
function GetCust... |
unit Test.VamLib.MultiCastEvents;
interface
uses
WatchTower,
VamLib.MultiCastEvents;
type
TMultiCastEventTest = class(TWatchTowerTest)
private
mc : TMultiCastNotifyEvent;
ACount : integer;
BCount : integer;
CCount : integer;
procedure EventHandlerA(Sender : TObject);
procedure EventHa... |
// Language Bath - Common
// Copyright (c) 2020 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the MIT License
// https://raw.githubusercontent.com/barendgehrels/langbath/main/LICENSE
// This unit provides some general functions
unit lb_lib;
{$mode objfpc}{$H+}
inter... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.2.4-2, FILE=CONF048, CLAS... |
{
Load library on runtime.
Use Win32 API to load the library and then get function address.
Explicit linking.
Compile:
$ fpc client.pas
Run:
$ client.exe
}
program client;
{$mode objfpc}{$H+}
uses dynlibs, SysUtils, Windows;
{
Every function has type signature which gives several information
such as:
-... |
unit Compiler;
{$i Compiler.inc}
interface
uses SysUtils,BeRoStream,BeRoUtils,Globals,Parser,Error,Symbols,Tree,OptimizerHighLevel,
UnitManager,Code,ShellHelper,DebugLogUtils,libtcc;
type TCompiler=class
private
public
Options:TOptions;
Error:TError;
SymbolManager:T... |
{***************************************************************************
* TSR : une unité pour réaliser des programmes résidents en Turbo-Pascal. *
**------------------------------------------------------------------------**
* Auteur : MICHAEL TISCHER *
* Développé... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.8.3.9-24, FILE=DEV234, ... |
unit DispatcherConfig;
interface
uses
System.JSON, Configuration;
type
TDispatcherConfig = class(TConfiguration)
strict private
const
PORT_KEY = 'port';
CLIENT_WHITELIST_KEY = 'client-whitelist-ip';
BACKEND_IP_KEY = 'backend-ip';
BACKEND_PORT_KEY = 'backend-port';
TOKEN_KEY = 'token';
... |
{
Copyright 2009-2011 10gen Inc.
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 ... |
{$loadlib ../Includes/NAS/Libs/liblayer.dll}
var
__SyncInfo: record
Window: ^TWindowLayer;
Handle: PtrUInt;
Thread: PtrUInt;
end;
__Layers: array of TLayer;
procedure __AddLayer(Layer: TLayer);
begin
__Layers += Layer;
end;
procedure __FreeLayers;
var
i: Int32;
begin
for ... |
unit F5;
interface
uses bentukan;
procedure belibahan (tmentah : tabMentah; var timentah: tabiMentah; var tsimulasi: tabsimulasi; tiolah : tabiOlah; idx: integer);
{I.S.: tmentah, timentah, tsimulasi, tiolah, idx terdefinisi
asumsi jika ada bahan dengan nama sama maka bahan dengan tanggal pembelian yang leb... |
unit CTObject;
interface
type
TCTObjectClass = class of TCTObject;
TCTObject = class(TObject)
private
procedure CTCheckResult(aResult: integer);
constructor CreateByRef();
protected
procedure ResultObjectsClear();
procedure CTCreateObject(
aFullName: string;
aParams... |
PROGRAM VectorOOPTest;
USES
VectorOOP, sysutils;
VAR
value1: INTEGER;
ok: BOOLEAN;
v1: Vector;
PROCEDURE AssertEquals(expected: INTEGER; actual: INTEGER);
BEGIN
IF expected <> actual THEN
Writeln('Assert failed! Expected: (', IntToStr(expected), '), Actual: (', IntToStr(actual),')');
END;... |
unit eeProfilerV2.Form;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls;
type
TStringListEvent = procedure(Sender : TObject; var Data:TStringList) of object;
TProfiller... |
(* Symbol table for MiniPascal/MidiPascal compiler. *)
(* GHO, 13.05.2017 *)
UNIT SymTblC;
INTERFACE
(* Resets symbol table clearing all declared variables. *)
PROCEDURE ResetSymbolTable;
(* Declares new variable. *)
(* IN name: Name of variable to declare. *)
(* OUT ok: True if declaration was successful, false if ... |
unit config.types;
{$mode delphi}
interface
uses
Classes,
SysUtils;
type
{ IConfig }
IConfig = interface
['{5CB1759D-1BF9-40C1-98F0-50C3368B468C}']
function SaveToFile(Const AFileName : String; Out Error : String) : Boolean;
function LoadFromFile(Const AFileName : String; Out Error : String) :... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ PRETEST 6.5.3.2-2, FILE=ERR12P... |
unit ReadRegistryInfo;
{ This unit reads a value from the the registry key
HKEY_LOCAL_MACHINE. It accepts the SubKey you want to open and
the name of the value you want to know as input paramters. It
returns the values data or ERROR if there was a problem. }
interface
uses WinTypes;
function GetComputerGUID: ... |
{ Invokable interface IPcPlayer }
unit PcPlayerIntf;
{-------------------------------------------------------------------------------
这个接口用于在服务器上提供一些服务给 ISAPI,以避免 ISAPI 权限不够的问题导致的一些
调用不能成功。
pcplayer 2011-11-23
-------------------------------------------------------------------------------}
interface
... |
namespace RemObjects.Elements.System;
type
AnsiString = public record(IDisposable, IEnumerable<AnsiChar>, IEnumerable)
private
chars: ^AnsiChar;
method GetChar(aIndex: UInt32): AnsiChar;
begin
if aIndex >= Length then exit #0;
var p := chars + aIndex;
exit p^;
end;
method... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.4.3.3-21, FILE=DEV078, ... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.1-10, FILE=DEV117, CL... |
unit FrameworkTestsU;
interface
uses
TestFramework,
MVCFramework.Router,
System.Generics.Collections,
MVCFramework, Data.DB, System.SysUtils;
type
TTestRouting = class(TTestCase)
private
Router: TMVCRouter;
Controllers: TList<TMVCControllerClass>;
public
procedure SetUp; ... |
unit UHashTableGUI;
interface
uses
Grids,Classes,SysUtils,UHashTable,UData,UList;
type
THashTableGUI=class(THashTable)
private
FFileName:string;
FModified:boolean;
FGrid:TStringGrid;
public
Constructor Create (AGrid : TStringGrid);
Destructor Destroy;o... |
unit unitThreadSample;
interface
uses
Classes,sysutils,windows,dialogs,unitLog;
type
TOnTime=function : boolean of object;
//當後代create完後,須呼叫resume讓thread開始執行
TThreadSample = class(TThread)
private
{ Private declarations }
m_AddLog : TOnAddLog; //LOG EVENT
m_hSingle : ar... |
{
*******************************************************************************
* *
* LGPL with linking exception (like Lazarus). See the file license.md, *
* included in this distribution, for details about the copyright. ... |
{
*******************************************************************************
* *
* LGPL with linking exception (like Lazarus). See the file license.md, *
* included in this distribution, for details about the copyright. ... |
unit eeSampleIntFunctions;
interface
uses
eeSampleInt;
function MakeStereo(Source:TSampleInt):TSampleInt;
implementation
function MakeStereo(Source:TSampleInt):TSampleInt;
var
NewSample:TSampleInt;
c1: Integer;
begin
NewSample := TSampleInt.Create;
try
//Try to get sample data memory.
if NewSampl... |
unit NotaFiscalEletronica;
interface
uses DFe.Interf, System.Classes, System.SysUtils;
type
TNotaFiscalEletronicaModel = class(TInterfacedObject, IDFe)
private
class var FInstance: IDFe;
FNota: TStringList;
public
constructor Create;
destructor Destroy; override;
class function New: IDFe;
... |
program aloMundo;
{
@Author : Samuel T. C. Santos
@version 07.11.2014
@description: Faça um Programa que peça um número e então mostre
a mensagem O número informado foi [número].
}
var
numero : integer;
begin
write('Alo, Mundo!');
end. |
Unit TCP_Check_IP_Unit;
Interface
CONST
ChkOpt_ZeroAllowed=1; // Allow ZEro ('') IP Adress as valid
ChkOpt_ZeroNotAllowed=0; // Zero ('') IP is not allowed to be valid
Function ValidIPAdress(IPString:String;CHeckOptions:Byte;EntryFieldName:String):Boolean;
... |
unit JobManager;
interface
uses
System.Classes, System.DateUtils, System.SysUtils, System.SyncObjs,
System.Generics.Collections, System.Threading;
type
TJobItem = class
private
Interval: Integer;
Timeout: TNotifyEvent;
public
LastTimeout: TDateTime;
constructor Create(AInterval: Integer; A... |
unit CadUf;
{*************************************************************************}
{* *}
{* Author : Alcindo Schleder *}
{* Copyright: © 2003 by Alcindo Schleder. All rights reserved. *... |
unit uLogger;
interface
uses
Classes, Windows, SysUtils, Messages, syncobjs;
type
TLogger = class
private
FLogFileName: string;
FLogStream: TStream;
FMaxFileSize: integer;
FMaxBackupIndex: integer;
FLevel: integer;
cs: TCriticalSection;
procedure DoBackup;
function FindFiles(pa... |
unit HomeTheaterFacade;
interface
uses
Tuner, CDPlayer, Screen, Amplifier, DVDPlayer, PopcornMachine, CinemaLights;
type
THomeTheater = class
private
PopcornMachine : TPopCornMachine;
Light : TCinemaLights;
Projetor : TScreen;
Amplificador : TAmplifier;
DVDPlayer : TDVDPlayer;
CDPlayer :... |
unit Cayan.Genius.Transactions;
interface
uses
System.Classes, System.SysUtils, System.Generics.Collections,
Cayan,
Cayan.Genius,
Cayan.Genius.Intf;
type
TCayanGeniusTransaction = class;
TCayanGeniusTransactionEvent = procedure(const ATrans: TCayanGeniusTransaction) of object;
TCayanGeniusTransaction... |
{ Pascal Validation Suite Version 5.7 }
{ }
{ (C) Copyright 1982, British Standards Institution }
{ }
{ TEST 6.6.2-12, FILE=CONF099, CLASS... |
unit Configuration;
interface
uses
System.JSON;
type
TConfiguration = class(TInterfacedObject)
public
/// extract the key value from the json object as an integer. In case of failure, the dafualt value
/// is returned.
class function GetIntValue(const jo: TJsonObject; const key: String; const Defau... |
unit ArrayHelperTests;
interface
uses
DUnitX.TestFramework,
ArrayHelpers;
type
[TTestFixture]
TStringArrayTests = class
private
FSUT: TStringArray;
public
[Setup]
procedure SetUp;
published
procedure Count;
procedure Add_DuplicatedValues;
procedure Add_SkipDuplicates;
proced... |
unit CadPrdPart;
{*************************************************************************}
{* *}
{* Author: Alcindo Schleder. *}
{* Copyright: © 2003 by Sistema Processa Ltda. All rights reserved. ... |
unit LuaWrapper;
interface
uses dorLua,
System.Classes,
System.SysUtils,
System.Rtti;
type
ELuaException = class(Exception)
end;
ILuaValue = interface
['{8621BAD3-B847-4176-937F-2CD016BBE13E}']
/// ///
function IsNil: boolean;
function IsNumber: boolean;
function ... |
unit AQResponce;
interface
uses
ObjectsMappers;
type
TAQResponceMessages = class abstract(TObject)
const
BODY_MISSING = 'AQ: no request body is present';
ERROR_CAST_REPORT = 'AQ: failed to cast the request body into TActiveQueueEntries. Reason: %s';
ERROR_PERSIST_REPORT = 'AQ: failed to save the re... |
{**************************************************************************************************}
{ }
{ Project JEDI Code Library (JCL) }
{ ... |
unit FrmPrincipal;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls,
Vcl.ExtCtrls,
FrmEditar, FrmAdicionar, ClienteController, ClienteModel,
System.Generics.Collections;
type
... |
unit Manager;
interface
uses
System.Generics.Collections,
SysUtils,
Product;
type
TManager = class
public
p_ShowCase : TDictionary<string,TProduct>;
procedure AfterConstruction; override;
procedure BeforeDestruction; override;
procedure RegisterProduct(name : string ;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.