Skip to content
Snippets Groups Projects
Commit 7d1aea34 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

ENH: remove unfinished, untested and unused class FileName

parent 36db6f9e
No related branches found
No related tags found
No related merge requests found
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#include "otbFileName.h"
namespace otb
{
FileName::FileName() : ossimFilename()
{}
FileName::FileName(const FileName& src)
: ossimFilename(src)
{}
FileName::FileName(const ossimFilename& src)
: ossimFilename(src)
{}
FileName::FileName(const ossimString& src)
: ossimFilename(src)
{}
FileName::FileName(const char* src)
: ossimFilename(src)
{}
FileName FileName::ObtainFileNameWithNoExtension() const
{
return this->fileNoExtension();
}
} // end namespace otb
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef __otbFileName_h
#define __otbFileName_h
#include "itkDataObject.h"
#include "ossim/base/ossimFilename.h"
// The keyword "Try" is exported by OSSIM's headers but clashes with Boost
// Spirit. It needs to be undefined.
#undef Try
namespace otb
{
/** \class FileName
* \brief This class represents a file name
*
* It is derived from the ossimFilename class, which allows to manipulate a
* file name the appropriate methods to use it
*/
class ITK_EXPORT FileName : public ossimFilename
{
public:
FileName();
FileName(const FileName &src);
FileName(const ossimFilename &src);
FileName(const ossimString &src);
FileName(const char* src);
/**
* Return "t1" if file is "/data/images/t1.tif".
*/
FileName ObtainFileNameWithNoExtension() const;
};
}
#endif
......@@ -27,7 +27,6 @@
#include "otbSystem.h"
#include "otbDataNode.h"
#include "otbMetaDataKey.h"
#include "otbFileName.h"
#include "itkTimeProbe.h"
#include "otbVectorDataKeywordlist.h"
......
......@@ -21,7 +21,6 @@
#include "otbMacro.h"
#include "otbVectorDataFileWriter.h"
#include "otbFileName.h"
#include "otbVectorDataIOFactory.h"
namespace otb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment