STK++ 0.9.13
STK_TypeBase.h File Reference

In this file we include all the headers of the fundamental types used internally in the STK applications. More...

#include <Sdk.h>
#include "STK_Char.h"
#include "STK_String.h"
#include "STK_Integer.h"
#include "STK_Real.h"
#include "STK_Binary.h"
#include "STK_Sign.h"
#include "STK_Range.h"
Include dependency graph for STK_TypeBase.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

In this file we include all the headers of the fundamental types used internally in the STK applications.

You can add any type matching your need.

Actually (the 20190228) the fundamental types defined are:

  • Char (char)
  • String (std::string)
  • Real (double)
  • int (long)
  • Binary enum {0, 1}
  • Sign enum {-1, 1}
  • Range (int begin; int size)

    If you add a type:

    1. Specialize the struct Arithmetic, otherwise the type will not have NA value defined.
    2. Specialize the struct IdTypeImpl, otherwise calling the returnType method in the class Variable will give the unknown type.
    3. Surdefine the operators >> and << for the input and output stream in order to handle the NA value in a transparent way.

Definition in file STK_TypeBase.h.