/usr/include/ossim/imaging/ossimImageDataFactory.h is in libossim-dev 2.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | //*******************************************************************
// Copyright (C) 2000 ImageLinks Inc.
//
// License: MIT
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Garrett Potts
//
// Description:
//
//*************************************************************************
// $Id: ossimImageDataFactory.h 13474 2008-08-22 14:20:42Z gpotts $
#ifndef ossimImageDataFactory_HEADER
#define ossimImageDataFactory_HEADER
#include <ossim/imaging/ossimImageData.h>
#include <ossim/base/ossimRefPtr.h>
#include <mutex>
class ossimSource;
class ossimImageSource;
/*!
* This factory should be called by all image source producers to allocate
* an image tile.
*/
class OSSIM_DLL ossimImageDataFactory
{
public:
virtual ~ossimImageDataFactory();
static ossimImageDataFactory* instance();
virtual ossimRefPtr<ossimImageData> create(ossimSource* owner,
ossimScalarType scalar,
ossim_uint32 bands = 1)const;
virtual ossimRefPtr<ossimImageData> create(ossimSource* owner,
ossimScalarType scalar,
ossim_uint32 bands,
ossim_uint32 width,
ossim_uint32 height)const;
virtual ossimRefPtr<ossimImageData> create(
ossimSource* owner,
ossim_uint32 bands,
ossimImageSource* inputSource)const;
virtual ossimRefPtr<ossimImageData> create(
ossimSource* owner,
ossimImageSource* inputSource)const;
protected:
ossimImageDataFactory(); // hide
ossimImageDataFactory(const ossimImageDataFactory&){}//hide
void operator = (ossimImageDataFactory&){}// hide
static ossimImageDataFactory* theInstance;
static std::mutex theInstanceMutex;
};
#endif
|