<commit_before>//*****************************************************************************
// FILE: ossimQuickbirdRpcModel.h
//
// Copyright (C) 2001 ImageLinks, Inc.
//
// License:  MIT
//
// See LICENSE.txt file in the top level directory for more details.
//
// DESCRIPTION: Contains declaration of class ossimQuickbirdRpcModel. This
//    derived class implements the capability of reading Quickbird RPC support
//    data.
//
// LIMITATIONS: None.
//
//*****************************************************************************
//  $Id: ossimQuickbirdRpcModel.h 20606 2012-02-24 12:29:52Z gpotts $
#ifndef ossimQuickbirdRpcModel_HEADER
#define ossimQuickbirdRpcModel_HEADER

#include <ossim/projection/ossimRpcModel.h>
#include <ossim/support_data/ossimQuickbirdMetaData.h>
#include <ossim/support_data/ossimQuickbirdRpcHeader.h>
#include <memory>

class ossimFilename;
class ossimQuickbirdMetaData;
class ossimQbTileFilesHandler;

/*!****************************************************************************
 *
 * CLASS:  ossimQuickbirdRpcModel
 *
 *****************************************************************************/
class ossimQuickbirdRpcModel : public ossimRpcModel
{
 public:
   ossimQuickbirdRpcModel();
   ossimQuickbirdRpcModel(const ossimQuickbirdRpcModel &rhs);

   //! Initializes
   ossimQuickbirdRpcModel(const ossimQbTileFilesHandler *handler);
   ~ossimQuickbirdRpcModel();

   virtual ossimObject *dup() const;
   virtual bool saveState(ossimKeywordlist &kwl,
                          const char *prefix = 0) const;

   virtual bool loadState(const ossimKeywordlist &kwl,
                          const char *prefix = 0);

   virtual bool parseFile(const ossimFilename &file);

   void setSupportData(ossimQuickbirdMetaData *supportData)
   {
      theSupportData = supportData;
   }
   ossimQuickbirdMetaData *getSupportData()
   {
      return theSupportData.get();
   }
   const ossimQuickbirdMetaData *getSupportData() const
   {
      return theSupportData.get();
   }

 protected:
   bool parseNitfFile(const ossimFilename &file);
   bool parseTiffFile(const ossimFilename &file);
   bool parseMetaData(const ossimFilename &file);
   bool parseRpcData(const ossimFilename &file);
   bool parseTileData(const ossimFilename &file);

   //! Given an initial filename with case-agnostic extension, this method searches first for an
   //! image-specific instance of that file (i.e., with _R*C* in the filename) before considering
   //! the mosaic-global support file (_R*C* removed). If a file is found, the argument is modified
   //! to match the actual filename and TRUE is returned. Otherwise, argument filename is left
   //! unchanged and FALSE is returned.
   bool findSupportFile(ossimFilename &file) const;

   void finishConstruction();

   ossimRefPtr<ossimQuickbirdMetaData> theSupportData;
   std::shared_ptr<ossimQuickbirdRpcHeader> m_qbRpcHeader;

   TYPE_DATA
};

#endif
<commit_msg>Moved method from protected to public<commit_after>//*****************************************************************************
// FILE: ossimQuickbirdRpcModel.h
//
// Copyright (C) 2001 ImageLinks, Inc.
//
// License:  MIT
//
// See LICENSE.txt file in the top level directory for more details.
//
// DESCRIPTION: Contains declaration of class ossimQuickbirdRpcModel. This
//    derived class implements the capability of reading Quickbird RPC support
//    data.
//
// LIMITATIONS: None.
//
//*****************************************************************************
//  $Id: ossimQuickbirdRpcModel.h 20606 2012-02-24 12:29:52Z gpotts $
#ifndef ossimQuickbirdRpcModel_HEADER
#define ossimQuickbirdRpcModel_HEADER

#include <ossim/projection/ossimRpcModel.h>
#include <ossim/support_data/ossimQuickbirdMetaData.h>
#include <ossim/support_data/ossimQuickbirdRpcHeader.h>
#include <memory>

class ossimFilename;
class ossimQuickbirdMetaData;
class ossimQbTileFilesHandler;

/*!****************************************************************************
 *
 * CLASS:  ossimQuickbirdRpcModel
 *
 *****************************************************************************/
class ossimQuickbirdRpcModel : public ossimRpcModel
{
 public:
   ossimQuickbirdRpcModel();
   ossimQuickbirdRpcModel(const ossimQuickbirdRpcModel &rhs);

   //! Initializes
   ossimQuickbirdRpcModel(const ossimQbTileFilesHandler *handler);
   ~ossimQuickbirdRpcModel();

   virtual ossimObject *dup() const;
   virtual bool saveState(ossimKeywordlist &kwl,
                          const char *prefix = 0) const;

   virtual bool loadState(const ossimKeywordlist &kwl,
                          const char *prefix = 0);

   virtual bool parseFile(const ossimFilename &file);

   void setSupportData(ossimQuickbirdMetaData *supportData)
   {
      theSupportData = supportData;
   }
   ossimQuickbirdMetaData *getSupportData()
   {
      return theSupportData.get();
   }
   const ossimQuickbirdMetaData *getSupportData() const
   {
      return theSupportData.get();
   }

   bool parseRpcData(const ossimFilename &file);

 protected:
   bool parseNitfFile(const ossimFilename &file);
   bool parseTiffFile(const ossimFilename &file);
   bool parseMetaData(const ossimFilename &file);
   bool parseTileData(const ossimFilename &file);

   //! Given an initial filename with case-agnostic extension, this method searches first for an
   //! image-specific instance of that file (i.e., with _R*C* in the filename) before considering
   //! the mosaic-global support file (_R*C* removed). If a file is found, the argument is modified
   //! to match the actual filename and TRUE is returned. Otherwise, argument filename is left
   //! unchanged and FALSE is returned.
   bool findSupportFile(ossimFilename &file) const;

   void finishConstruction();

   ossimRefPtr<ossimQuickbirdMetaData> theSupportData;
   std::shared_ptr<ossimQuickbirdRpcHeader> m_qbRpcHeader;

   TYPE_DATA
};

#endif

{'fraction_non_alphanumeric': 0.18320094642555348, 'fraction_numerical': 0.008450228156160216, 'mean_word_length': 4.536014967259121, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2267833', 'n_tokens_mistral': 1760, 'n_tokens_neox': 1616, 'n_words': 437}