Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TASImagePlugin.h
Go to the documentation of this file.
1// @(#)root/graf:$Id$
2// Author: Valeriy Onuchin 23/06/05
3
4/*************************************************************************
5 * Copyright (C) 2001-2002, Rene Brun, Fons Rademakers and Reiner Rohlfs *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TASImagePlugin
13#define ROOT_TASImagePlugin
14
15
16//////////////////////////////////////////////////////////////////////////
17// //
18// TASImagePlugin //
19// //
20//////////////////////////////////////////////////////////////////////////
21
22#include "TImagePlugin.h"
23
24struct ASImage;
25
27
28public:
29 TASImagePlugin(const char *ext) : TImagePlugin(ext) { }
31
32 ULong_t Hash() const override { return fExtension.Hash(); }
33
34 unsigned char *ReadFile(const char * /*filename*/, UInt_t & /*w*/, UInt_t & /*h*/) override { return nullptr; }
35 Bool_t WriteFile(const char * /*filename*/, unsigned char * /*argb*/, UInt_t /*w*/, UInt_t /*h*/) override { return kFALSE; }
36 virtual ASImage *File2ASImage(const char * /*filename*/) { return nullptr; }
37 virtual Bool_t ASImage2File(ASImage * /*asimage*/) { return kFALSE; }
38
39 ClassDefOverride(TASImagePlugin, 0) // asimage plugin
40};
41
42#endif
unsigned long ULong_t
Definition RtypesCore.h:55
constexpr Bool_t kFALSE
Definition RtypesCore.h:101
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
unsigned char * ReadFile(const char *, UInt_t &, UInt_t &) override
Bool_t WriteFile(const char *, unsigned char *, UInt_t, UInt_t) override
virtual Bool_t ASImage2File(ASImage *)
TASImagePlugin(const char *ext)
ULong_t Hash() const override
Return hash value for this object.
virtual ASImage * File2ASImage(const char *)
~TASImagePlugin() override
TString fExtension
file extension
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
Definition TString.cxx:670
void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
Definition TROOT.h:395