{-# LANGUAGE EmptyDataDecls, ExistentialQuantification, FlexibleContexts, FlexibleInstances, ForeignFunctionInterface, MultiParamTypeClasses, ScopedTypeVariables, TypeFamilies, TypeSynonymInstances #-} module HROOT.Core.TDirectory.Interface where import Data.Word import Foreign.C import Foreign.Ptr import FFICXX.Runtime.Cast import HROOT.Core.TDirectory.RawType import HROOT.Core.TObject.RawType import HROOT.Core.TNamed.Interface import {-# SOURCE #-} HROOT.Core.TObject.Interface import {-# SOURCE #-} HROOT.Core.TKey.Interface class ITNamed a => ITDirectory a where append :: (ITObject c0, FPtr c0) => a -> c0 -> CInt -> IO () addD :: (ITObject c0, FPtr c0) => a -> c0 -> CInt -> IO () appendKey :: (ITKey c0, FPtr c0) => a -> c0 -> IO CInt close :: Castable c0 CString => a -> c0 -> IO () get :: Castable c0 CString => a -> c0 -> IO TObject cd_TDirectory :: Castable c0 CString => a -> c0 -> IO CInt upcastTDirectory :: forall a . (FPtr a, ITDirectory a) => a -> TDirectory upcastTDirectory h = let fh = get_fptr h fh2 :: Ptr RawTDirectory = castPtr fh in cast_fptr_to_obj fh2 downcastTDirectory :: forall a . (FPtr a, ITDirectory a) => TDirectory -> a downcastTDirectory h = let fh = get_fptr h fh2 = castPtr fh in cast_fptr_to_obj fh2