STK++ 0.9.13
STK::Import Namespace Reference

The import namespace contains the constants and global functions used in the DManager project when importing data in STK containers. More...

Enumerations

enum  TypeImport {
  unknown_ =0 , numeric_ , only_numeric_ , string_ ,
  directed_ , intelligent_
}
 define the type of import we want to perform. More...
 

Functions

TypeImport stringToTypeImport (String const &type)
 Convert a String to a TypeImport.
 
String typeImportToString (TypeImport const &type)
 convert a TypeImport to a String.
 

Detailed Description

The import namespace contains the constants and global functions used in the DManager project when importing data in STK containers.

Function Documentation

◆ typeImportToString()

String STK::Import::typeImportToString ( TypeImport const type)

convert a TypeImport to a String.

Parameters
typethe type of import we want to use
Returns
the string associated to this type.

Definition at line 65 of file STK_Import_Util.cpp.

66{
67 if (type == numeric_) return String(_T("numeric"));
68 if (type == only_numeric_) return String(_T("only_numeric"));
69 if (type == string_) return String(_T("string"));
70 if (type == directed_) return String(_T("directed"));
71 if (type == intelligent_) return String(_T("intelligent"));
72 return String(_T("unknown"));
73}
#define _T(x)
Let x unmodified.
std::basic_string< Char > String
STK fundamental type of a String.

References _T, directed_, intelligent_, numeric_, only_numeric_, and string_.