GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AndrewAMD/DynamicArray: A basic dynamic array library intended for the Zorro Trading Automaton.

BranchesTags
Open more actions menu

Latest commit

 

History

34 Commits
34 Commits

Folders and files

NameName
Last commit message
Last commit date
DynamicArray
DynamicArray
 
 
DynamicArrayTester
DynamicArrayTester
 
 
zorro_folder
zorro_folder
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
DynamicArray.sln
DynamicArray.sln
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

DynamicArray

This is a basic library that allows one to easily create dynamic arrays using a C interface. Actually, it was intended as a DLL plug-in for the Zorro Trading Automaton. The backend was written in Win32 C++17 using Visual Studio. Its only dependency is the STL library.

What This Library Does

  • A dynamic array is basically the equivalent of a C++ std::vector.
  • Dynamic arrays can be created, modified, and deleted from memory.
  • When you create an array, you define its element size permanently. (For example, sizeof(int) for a dynamic array of ints, or sizeof(STRUCTNAME) for an array of STRUCTNAMEs.)
  • You can track an array with a handler, returned from da_new().
  • You are advised to delete any dynamic array no longer needed. Simply call da_delete(h), where h is the handler.
  • You also have the option of clearing all dynamic arrays. Simply call da_delete_all(). It will clear all dynamic arrays from memory, no exceptions.
  • All of the remaining functions are simply wrappers for the std::vector library. You can insert elements or arrays of elements at any location in a given dynamic array. You can erase any element(s) at the beginning, middle, or end. You can resize, reserve, and shrink-to-fit.
  • All of the individual functions are documented in detail in the include/dynamic.h file.

Build Instructions

Currently, the library is meant to be built in Visual Studio 2017, though it should not be hard to recycle the core code for UNIX, since it only depends on the STL library.

To build a DLL for Zorro, simply open the solution file, and build in the Release/x86 mode.

Zorro Installation Instructions

To install DynamicArray in Zorro, the procedure is simple:

  1. Build DynamicArray.dll
  2. Copy the newly built DynamicArray.dll to your Zorro folder.
  3. Copy dynamic.h to your Zorro/include folder.
  4. Optionally, copy Zorro/DynamicArray.c to your Zorro/Strategy folder. This script demonstrates most of the functionality of the library.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A basic dynamic array library intended for the Zorro Trading Automaton.

Resources

Readme
MIT license
Activity

Stars

5 stars

Watchers

0 watching

Forks

5 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.