Skip to main content

Solution Generator

Solution Generator (Solgen) tool allows generating TimeBase sample projects for different programming languages based on specific arguments.

Solution Generator can operate in two modes:

  • cmd - command line mode. Use cmd options that are listed below in this tutorial.
  • interactive (default) - to activate, run project without any cmd args. Follow interactive solution guidance to generate sample project
tip

Options that are listed below for each programming language are common for cmd args and interactive mode.

Java

cmd arg: -java, project type

cmd arg: -java.projectType <projectType>

Projects

Gradle

java.project.root - Directory, where project will be stored

Default value: C:\Users\Username\Deltix\samples\java

java.project.group - Project group, like com.google.collections

Default value: org.sample

java.project.name - Project name, like google-collections

Default value: sample-project

Ant

java.project.root - Directory, where project will be stored

Default value: C:\Users\Username\Deltix\samples\java

Samples

Common properties:

timebase.url - The URL of TimeBase location in the following form: dxtick://<host>:<port>

Default value: dxtick://localhost:8011

cmd arg: -java.ListStreams

No specific properties for this sample type.

Launch examples

Generate Java Gradle project with ListStreams sample in ./liststream directory.

./solgen.sh -java -java.project-type Grade -java.ReadStream java.project.root ./liststream timebase.stream alltypes timebase.url dxtick://localhost:8011

Generate Java Ant project with ReadStream, WriteStream, ListStreams and SpeedTest samples in ./samples directory for stream alltypes.

./solgen.sh -java -java.project-type ant -java.ReadStream -java.WriteStream -java.ListStreams -java.SpeedTest java.project.root ./samples timebase.stream alltypes timebase.url dxtick://localhost:8011

.NET

cmd arg: -net, project type

cmd arg: -net.projectType <projectType>

Projects

vs2010+

net.project.root - Directory, where project will be stored

Default value: C:\Users\Username\Deltix\samples\NET

net.project.name - Project name

Default value: TimebaseSample

Samples

Common properties:

timebase.url - The URL of TimeBase location, in the form of dxtick://<host>:<port>

Default value: dxtick://localhost:8011

cmd arg: -net.ReadStream

timebase.stream - TimeBase stream key

Default value: NULL

Launch examples

Generate .NET project with ReadStream, WriteStream, SpeedTest and ListStreams samples in ./samples directory.

./solgen.sh -net -net.project-type vs2010+ -net.ReadStream -net.WriteStream -net.ListStreams -net.SpeedTest net.project.root ./samples timebase.stream alltypes timebase.url dxtick://localhost:8011

Python

cmd arg: -python, project type

cmd arg: -python.projectType <projectType>

Projects

pip

python.project.root - Directory, where project will be stored

Default value: C:\Users\Username\Deltix\samples\python

python.project.name - Project name, e.g. google-collections

Default value: sample

Samples

Common properties

timebase.url - The URL of TimeBase location, in the form of dxtick://<host>:<port>

Default value: dxtick://localhost:8011

cmd arg: -python.ListStreams

No specific properties for this sample type.

Launch examples

Generate Python project with ReadStream, WriteStream, SpeedTest and ListStreams samples in ./samples directory.

./solgen.sh -python -python.project-type pip -python.ReadStream -python.WriteStream -python.ListStreams -python.SpeedTest python.project.root ./samples timebase.stream alltypes timebase.url dxtick://localhost:8011

C++

cmd arg: -cpp, project type

cmd arg: -cpp.projectType <projectType>

Projects

conan

cpp.project.root - Directory, where project will be stored

Default value: C:\Users\Username\Deltix\samples\cpp

cpp.project.name - Project name, e.g. google-collections

Default value: sample-project

vs2015

cpp.project.root - Directory, where project will be stored

Default value: C:\Users\Username\Deltix\samples\cpp

cpp.project.name - Project name, e.g. google-collections

Default value: sample-project

make

cpp.project.root - Directory, where project will be stored

Default value: C:\Users\Username\Deltix\samples\cpp

cpp.project.name - Project name, e.g. google-collections

Default value: sample-project

Samples

Common properties

timebase.url - The URL of TimeBase location, in the form of dxtick://<host>:<port>

Default value: dxtick://localhost:8011

cmd arg: -cpp.ListStreams

No specific properties for this sample type.

Launch examples

Generate C++ Conan project with ReadStream, WriteStream, SpeedTest and ListStreams samples in ./conan_samples directory.

./solgen.sh -cpp -cpp.project-type conan -cpp.ReadStream -cpp.WriteStream -cpp.ListStreams -cpp.SpeedTest cpp.project.root ./conan_samples timebase.stream alltypes timebase.url dxtick://localhost:8011

Generate C++ Visual Studio project with ReadStream sample in ./vs_samples directory.

./solgen.sh -cpp -cpp.project-type vs2015 -cpp.ReadStream cpp.project.root ./vs_samples timebase.stream alltypes timebase.url dxtick://localhost:8011

Generate C++ make project with ListStreams sample in ./make_sample directory.

./solgen.sh -cpp -cpp.project-type make -cpp.ListStreams cpp.project.root ./make_sample timebase.url dxtick://localhost:8011

Generate C++ Visual Studio project with WriteTopic sample in ./vs_samples directory.

./solgen.sh -cpp -cpp.project-type vs2015 -cpp.WriteTopic cpp.project.root ./vs_samples timebase.topic topic_key timebase.url dxtick://localhost:8011