source: Sophya/trunk/SophyaLib/BaseTools/datatype.h

Last change on this file was 3208, checked in by ansari, 18 years ago

Ajout classe ThSafeOp (thsafeop.h) pour rendre NDataBlock<T> (et SegDataBlock) thread-safe, ajout methode DataTypeInfo::getTypeId() , implementation ThSafeOp ds ndatablock.cc (.h), Reza 10/04/2007

File size: 608 bytes
Line 
1// This may look like C code, but it is really -*- C++ -*-
2// Classe pour nom, taille, ... de types de donnees
3// C.Magneville 10/2000
4// LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA
5
6#ifndef DATATYPE_H
7#define DATATYPE_H
8
9#include "machdefs.h"
10
11#include <string>
12
13namespace SOPHYA {
14
15//! class returning type name for usual numrical types (int_2,int_4,r_4,r_8 ...)
16template <class T>
17class DataTypeInfo {
18public:
19 static string getTypeName();
20 static int getTypeId();
21 DataTypeInfo();
22};
23
24string DecodeGCCTypeName(string gcctype);
25
26} // Fin du namespace
27
28#endif
Note: See TracBrowser for help on using the repository browser.