Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:30

0001 // @(#)root/graf:$Id$
0002 // Author: Valeriy Onuchin   23/06/05
0003 
0004 /*************************************************************************
0005  * Copyright (C) 2001-2002, Rene Brun, Fons Rademakers and Reiner Rohlfs *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TASImagePlugin
0013 #define ROOT_TASImagePlugin
0014 
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 //  TASImagePlugin                                                      //
0019 //                                                                      //
0020 //////////////////////////////////////////////////////////////////////////
0021 
0022 #include "TImagePlugin.h"
0023 
0024 struct ASImage;
0025 
0026 class TASImagePlugin : public TImagePlugin {
0027 
0028 public:
0029    TASImagePlugin(const char *ext) : TImagePlugin(ext) { }
0030    ~TASImagePlugin() override { ROOT::CallRecursiveRemoveIfNeeded(*this); }
0031 
0032    ULong_t Hash() const override { return fExtension.Hash(); }
0033 
0034    unsigned char *ReadFile(const char * /*filename*/, UInt_t & /*w*/,  UInt_t & /*h*/) override { return nullptr; }
0035    Bool_t WriteFile(const char * /*filename*/, unsigned char * /*argb*/, UInt_t /*w*/,  UInt_t  /*h*/) override { return kFALSE; }
0036    virtual ASImage *File2ASImage(const char * /*filename*/) {  return nullptr; }
0037    virtual Bool_t ASImage2File(ASImage * /*asimage*/) { return kFALSE; }
0038 
0039    ClassDefOverride(TASImagePlugin, 0)  // asimage plugin
0040 };
0041 
0042 #endif