Commit 964aa044 authored by Antoine Regimbeau's avatar Antoine Regimbeau

REFAC: delete file from old merge and restore VectorDataIOBase

parent 3dd9998d
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef otbOGRExtendedFilenameToReaderOptions_h
#define otbOGRExtendedFilenameToReaderOptions_h
#include <set>
#include "otbExtendedFilenameHelper.h"
namespace otb
{
/** \class OGRExtendedFilenameToReaderOptions
*/
class ITK_EXPORT OGRExtendedFilenameToReaderOptions : public ExtendedFilenameHelper
{
public:
/** Standard class typedefs. */
typedef OGRExtendedFilenameToReaderOptions Self;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
typedef ExtendedFilenameHelper Superclass;
typedef Superclass::OptionMapType OptionMapType;
typedef OptionMapType::iterator MapIteratorType;
itkTypeMacro(OGRExtendedFilenameToReaderOptions, otb::ExtendedFilenameHelper);
itkNewMacro(Self);
/** The creation option structure. */
struct OptionType
{
std::pair< bool , std::string > simpleFileName;
std::pair< bool , std::string > shapeFileType;
std::set< std::string > availableOptions;
};
/* Set Methods */
void SetExtendedFileName(const char * extFname) override;
protected:
OGRExtendedFilenameToReaderOptions();
~OGRExtendedFilenameToReaderOptions() override {};
private:
OGRExtendedFilenameToReaderOptions(const Self &) = delete ;
void operator =(const Self&) = delete ;
OptionType m_Options;
};
} //end namespace otb
#endif // otbOGRExtendedFilenameToReaderOptions_h
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef otbOGRExtendedFilenameToWriterOptions_h
#define otbOGRExtendedFilenameToWriterOptions_h
#include "otbExtendedFilenameHelper.h"
namespace otb
{
/** \class OGRExtendedFilenameToWriterOptions
*/
class ITK_EXPORT OGRExtendedFilenameToWriterOptions : public ExtendedFilenameHelper
{
public:
};
} //end namespace otb
#endif // otbOGRExtendedFilenameToWriterOptions_h
\ No newline at end of file
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "otbOGRExtendedFilenameToReaderOptions.h"
namespace otb
{
OGRExtendedFilenameToReaderOptions::
OGRExtendedFilenameToReaderOptions()
{
m_Options.simpleFileName.first = false;
m_Options.simpleFileName.second = "";
m_Options.shapeFileType.first = false;
m_Options.shapeFileType.second = "";
m_Options.availableOptions.insert("shpt");
}
void
OGRExtendedFilenameToReaderOptions::
SetExtendedFileName(const char *extFname)
{
Superclass::SetExtendedFileName(extFname);
OptionMapType map = GetOptionMap();
m_Options.simpleFileName.first = true;
m_Options.simpleFileName.second = this->GetSimpleFileName();
}
} //end namespace otb
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "otbOGRExtendedFilenameToReaderOptions.h"
namespace otb
{
} //end namespace otb
\ No newline at end of file
......@@ -29,7 +29,6 @@
#include "itkDataObject.h"
#include "OTBVectorDataBaseExport.h"
#include "otbOGRExtendedFilenameToOptions.h"
namespace otb
{
......@@ -73,8 +72,6 @@ public:
typedef itk::Vector<double, VDimension> SpacingType;
typedef itk::Point<double, VDimension> PointType;
typedef otb::OGRExtendedFilenameToOptions FileNameHelperType;
/** Set/Get the name of the file to be read. */
itkSetStringMacro(FileName);
itkGetStringMacro(FileName);
......@@ -176,8 +173,6 @@ private:
VectorDataIOBase(const Self &); //purposely not implemented
void operator =(const Self&); //purposely not implemented
FileNameHelperType m_FileNameHelper;
};
} // end namespace otb
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment