{-# LANGUAGE EmptyDataDecls, FlexibleContexts, FlexibleInstances,
  ForeignFunctionInterface, IncoherentInstances,
  MultiParamTypeClasses, OverlappingInstances, TemplateHaskell,
  TypeFamilies, TypeSynonymInstances #-}
module HROOT.Net.THttpServer.Implementation where
import Data.Monoid
import Data.Word
import Data.Int
import Foreign.C
import Foreign.Ptr
import Language.Haskell.TH
import Language.Haskell.TH.Syntax
import System.IO.Unsafe
import FFICXX.Runtime.Cast
import FFICXX.Runtime.CodeGen.Cxx
import FFICXX.Runtime.TH
import HROOT.Net.THttpServer.RawType
import HROOT.Net.THttpServer.FFI
import HROOT.Net.THttpServer.Interface
import HROOT.Net.THttpServer.Cast
import HROOT.Net.THttpServer.RawType
import HROOT.Net.THttpServer.Cast
import HROOT.Net.THttpServer.Interface
import HROOT.Core.TClass.RawType
import HROOT.Core.TClass.Cast
import HROOT.Core.TClass.Interface
import HROOT.Core.TNamed.RawType
import HROOT.Core.TNamed.Cast
import HROOT.Core.TNamed.Interface
import HROOT.Core.TObject.RawType
import HROOT.Core.TObject.Cast
import HROOT.Core.TObject.Interface
import STD.Deletable.RawType
import STD.Deletable.Cast
import STD.Deletable.Interface

instance () => ITHttpServer (THttpServer) where

instance () => ITNamed (THttpServer) where
        setName :: forall c0. Castable c0 CString => THttpServer -> c0 -> IO ()
setName = (Ptr RawTHttpServer -> CString -> IO ())
-> THttpServer -> c0 -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTHttpServer -> CString -> IO ()
c_thttpserver_setname
        setNameTitle :: forall c1 c0.
(Castable c1 CString, Castable c0 CString) =>
THttpServer -> c0 -> c1 -> IO ()
setNameTitle = (Ptr RawTHttpServer -> CString -> CString -> IO ())
-> THttpServer -> c0 -> c1 -> IO ()
forall a ca x1 cx1 x2 cx2 y cy.
(Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) =>
(ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y
xform2 Ptr RawTHttpServer -> CString -> CString -> IO ()
c_thttpserver_setnametitle
        setTitle :: forall c0. Castable c0 CString => THttpServer -> c0 -> IO ()
setTitle = (Ptr RawTHttpServer -> CString -> IO ())
-> THttpServer -> c0 -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTHttpServer -> CString -> IO ()
c_thttpserver_settitle

instance () => ITObject (THttpServer) where
        clear :: forall c0. Castable c0 CString => THttpServer -> c0 -> IO ()
clear = (Ptr RawTHttpServer -> CString -> IO ())
-> THttpServer -> c0 -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTHttpServer -> CString -> IO ()
c_thttpserver_clear
        draw :: forall c0. Castable c0 CString => THttpServer -> c0 -> IO ()
draw = (Ptr RawTHttpServer -> CString -> IO ())
-> THttpServer -> c0 -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTHttpServer -> CString -> IO ()
c_thttpserver_draw
        findObject :: forall c0. Castable c0 CString => THttpServer -> c0 -> IO TObject
findObject = (Ptr RawTHttpServer -> CString -> IO (Ptr RawTObject))
-> THttpServer -> c0 -> IO TObject
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTHttpServer -> CString -> IO (Ptr RawTObject)
c_thttpserver_findobject
        getName :: THttpServer -> IO CString
getName = (Ptr RawTHttpServer -> IO CString) -> THttpServer -> IO CString
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawTHttpServer -> IO CString
c_thttpserver_getname
        isA :: THttpServer -> IO TClass
isA = (Ptr RawTHttpServer -> IO (Ptr RawTClass))
-> THttpServer -> IO TClass
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawTHttpServer -> IO (Ptr RawTClass)
c_thttpserver_isa
        paint :: forall c0. Castable c0 CString => THttpServer -> c0 -> IO ()
paint = (Ptr RawTHttpServer -> CString -> IO ())
-> THttpServer -> c0 -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTHttpServer -> CString -> IO ()
c_thttpserver_paint
        printObj :: forall c0. Castable c0 CString => THttpServer -> c0 -> IO ()
printObj = (Ptr RawTHttpServer -> CString -> IO ())
-> THttpServer -> c0 -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTHttpServer -> CString -> IO ()
c_thttpserver_printobj
        saveAs :: forall c1 c0.
(Castable c1 CString, Castable c0 CString) =>
THttpServer -> c0 -> c1 -> IO ()
saveAs = (Ptr RawTHttpServer -> CString -> CString -> IO ())
-> THttpServer -> c0 -> c1 -> IO ()
forall a ca x1 cx1 x2 cx2 y cy.
(Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) =>
(ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y
xform2 Ptr RawTHttpServer -> CString -> CString -> IO ()
c_thttpserver_saveas
        write :: forall c0.
Castable c0 CString =>
THttpServer -> c0 -> CInt -> CInt -> IO CInt
write = (Ptr RawTHttpServer -> CString -> CInt -> CInt -> IO CInt)
-> THttpServer -> c0 -> CInt -> CInt -> IO CInt
forall a ca x1 cx1 x2 cx2 x3 cx3 y cy.
(Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3,
 Castable y cy) =>
(ca -> cx1 -> cx2 -> cx3 -> IO cy) -> a -> x1 -> x2 -> x3 -> IO y
xform3 Ptr RawTHttpServer -> CString -> CInt -> CInt -> IO CInt
c_thttpserver_write
        write_ :: THttpServer -> IO CInt
write_ = (Ptr RawTHttpServer -> IO CInt) -> THttpServer -> IO CInt
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawTHttpServer -> IO CInt
c_thttpserver_write_

instance () => IDeletable (THttpServer) where
        delete :: THttpServer -> IO ()
delete = (Ptr RawTHttpServer -> IO ()) -> THttpServer -> IO ()
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawTHttpServer -> IO ()
c_thttpserver_delete

newTHttpServer :: (Castable c0 CString) => c0 -> IO THttpServer
newTHttpServer :: forall c0. Castable c0 CString => c0 -> IO THttpServer
newTHttpServer = (CString -> IO (Ptr RawTHttpServer)) -> c0 -> IO THttpServer
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 CString -> IO (Ptr RawTHttpServer)
c_thttpserver_newthttpserver

tHttpServer_SetReadOnly :: () => THttpServer -> CBool -> IO ()
tHttpServer_SetReadOnly :: THttpServer -> CBool -> IO ()
tHttpServer_SetReadOnly
  = (Ptr RawTHttpServer -> CBool -> IO ())
-> THttpServer -> CBool -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTHttpServer -> CBool -> IO ()
c_thttpserver_thttpserver_setreadonly