STK++ 1.0
STK::Import Namespace Reference

The STK::Import namespace contains the constants 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 STK::Import namespace contains the constants used in the DManager project when importing data in STK containers.


Enumeration Type Documentation

define the type of import we want to perform.

Enumerator:
unknown_ 

try to convert the columns in numeric values and let the others as string

numeric_ 

try to convert the columns in numeric values and let the others as string

only_numeric_ 
string_ 

copy the columns

directed_ 

convert using a table of conversion. NOT implemented

intelligent_ 

try to convert with the most appropriate format the columns. NOT implemented

Definition at line 54 of file STK_Import_Util.h.


Function Documentation

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 66 of file STK_Import_Util.cpp.

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

{
  if (type == numeric_)  return String(_T("numeric"));
  if (type == only_numeric_) return String(_T("only_numeric"));
  if (type == string_) return String(_T("string"));
  if (type == directed_) return String(_T("directed"));
  if (type == intelligent_) return String(_T("intelligent"));
  return String(_T("unknown"));
}