---
name: "ACE_Module_Type"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_Module_Type"
---

# ACE\_Module\_Type(3)

Define the methods for handling the configuration of ACE\_Modules.

## NAME

ACE\_Module\_Type -  Define the methods for handling the configuration of ACE\_Modules.

## SYNOPSIS

```
#include <ace/Service_Types.h>
class ACE_Module_Type : public ACE_Service_Type_Impl
{
  public:
    ACE_Module_Type (
        void *m,
        const ASYS_TCHAR *identifier,
        u_int flags = 0
        );
    ~ACE_Module_Type (void);
    virtual int suspend (void) const;
    virtual int resume (void) const;
    virtual int init (int argc, ASYS_TCHAR *argv[]) const;
    virtual int fini (void) const;
    virtual int info (ASYS_TCHAR **str, size_t len) const;
    ACE_Module_Type *link (void) const;
    void link (ACE_Module_Type *);
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  private:
    ACE_Module_Type *link_;
};
```

## Initialization method.

```
ACE_Module_Type (
    void *m,
    const ASYS_TCHAR *identifier,
    u_int flags = 0
    );
```

```
~ACE_Module_Type (void);
```

\= Implement the hooks for ACE\_Modules.

```
virtual int suspend (void) const;
```

```
virtual int resume (void) const;
```

```
virtual int init (int argc, ASYS_TCHAR *argv[]) const;
```

```
virtual int fini (void) const;
```

```
virtual int info (ASYS_TCHAR **str, size_t len) const;
```

Get/set the link pointer.

```
ACE_Module_Type *link (void) const;
```

```
void link (ACE_Module_Type *);
```

```
void dump (void) const;
```

Dump the state of an object.

```
ACE_ALLOC_HOOK_DECLARE;
```

Declare the dynamic allocation hooks.

## AUTHOR

Doug Schmidt

## LIBRARY

ace
