Program: gdcm
Module: $RCSfile: gdcmDataEntry.cxx,v $
Language: C++
- Date: $Date: 2009/02/05 09:50:09 $
- Version: $Revision: 1.55 $
+ Date: $Date: 2011/03/29 07:36:00 $
+ Version: $Revision: 1.57 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
Flag = FLAG_NONE;
BinArea = 0;
-
+
SelfArea = true;
Copy(e);
DataEntry::~DataEntry ()
{
DeleteBinArea();
-
}
//-----------------------------------------------------------------------------
bool DataEntry::IsNumerical()
{
const VRKey &vr = GetVR();
-
+
return
vr == "DS" ||
vr == "FL" ||
{
/// \todo rewrite the whole method, in order *not to use* std::string !
std::vector<std::string> tokens;
-
+
Util::Tokenize ( GetString().c_str(), tokens, "\\" );
-
+
int nbValues= tokens.size();
if (nbValues == 0)
return false;
else
for (loop=0; loop<nbValues; loop++)
valueVector.push_back(atoi(tokens[loop].c_str()));
-
+
return true;
}
-
+
uint32_t nbValues = GetValueCount();
if (nbValues == 0)
return false;
-
+
if( vr == "US") {
for (loop=0; loop<nbValues; loop++)
valueVector.push_back(((uint16_t *)BinArea)[loop]);