{-# LANGUAGE EmptyDataDecls, ExistentialQuantification, FlexibleContexts, FlexibleInstances, ForeignFunctionInterface, MultiParamTypeClasses, ScopedTypeVariables, TypeFamilies, TypeSynonymInstances #-} module HROOT.Core.TDirectory.Interface where import Data.Word import Data.Int 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 HROOT.Core.TObject.Interface import HROOT.Core.TKey.Interface class (ITNamed a) => ITDirectory a where append :: (ITObject c0, FPtr c0) => a -> c0 -> CBool -> IO () addD :: (ITObject c0, FPtr c0) => a -> c0 -> CBool -> 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 CBool upcastTDirectory :: forall a . (FPtr a, ITDirectory a) => a -> TDirectory upcastTDirectory :: forall a. (FPtr a, ITDirectory a) => a -> TDirectory upcastTDirectory a h = let fh :: Ptr (Raw a) fh = a -> Ptr (Raw a) forall a. FPtr a => a -> Ptr (Raw a) get_fptr a h Ptr RawTDirectory fh2 :: Ptr RawTDirectory = Ptr (Raw a) -> Ptr RawTDirectory forall a b. Ptr a -> Ptr b castPtr Ptr (Raw a) fh in Ptr (Raw TDirectory) -> TDirectory forall a. FPtr a => Ptr (Raw a) -> a cast_fptr_to_obj Ptr (Raw TDirectory) Ptr RawTDirectory fh2 downcastTDirectory :: forall a . (FPtr a, ITDirectory a) => TDirectory -> a downcastTDirectory :: forall a. (FPtr a, ITDirectory a) => TDirectory -> a downcastTDirectory TDirectory h = let fh :: Ptr (Raw TDirectory) fh = TDirectory -> Ptr (Raw TDirectory) forall a. FPtr a => a -> Ptr (Raw a) get_fptr TDirectory h fh2 :: Ptr (Raw a) fh2 = Ptr RawTDirectory -> Ptr (Raw a) forall a b. Ptr a -> Ptr b castPtr Ptr (Raw TDirectory) Ptr RawTDirectory fh in Ptr (Raw a) -> a forall a. FPtr a => Ptr (Raw a) -> a cast_fptr_to_obj Ptr (Raw a) fh2