# vfs::ComposedServiceDir

## Summary

### Inheritance

Inherits from: [vfs::Node](https://fuchsia.dev/reference/cpp/class/vfs/node)

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/vfs/composed-service-dir#classvfs_1_1_composed_service_dir_1a0afda875db3ad8e6127af7f901623287()` ||

| ### Public attributes ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/vfs/composed-service-dir#classvfs_1_1_composed_service_dir_1a9416a6773536823f4eb86da28870f1cb` | `void` |

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/vfs/composed-service-dir#classvfs_1_1_composed_service_dir_1abe2f340f78d55fa97b039bc354dff371(const std::string & service_name, std::unique_ptr< https://fuchsia.dev/reference/cpp/class/vfs/service#classvfs_1_1_service > service)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/vfs/composed-service-dir#classvfs_1_1_composed_service_dir_1aaa1844a15ea3929f533aa96a1c38e4da(fuchsia_io::Flags flags, https://fuchsia.dev/reference/cpp/other/singletonfidl/server-end#singletonfidl_1_1_server_end< fuchsia_io::Directory > server_end, async_dispatcher_t *dispatcher) const ` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/class/vfs/composed-service-dir#classvfs_1_1_composed_service_dir_1a5150791145e132548059b1bd777f9ab8(https://fuchsia.dev/reference/cpp/other/singletonfidl/client-end#singletonfidl_1_1_client_end< fuchsia_io::Directory > fallback_dir)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/vfs/composed-service-dir#classvfs_1_1_composed_service_dir_1ac7a34d8729d9951af2f50d885b20e158() ` | `void Replaced by` |
| `https://fuchsia.dev/reference/cpp/class/vfs/composed-service-dir#classvfs_1_1_composed_service_dir_1a492d2aa308422bcd30fecba639300989(https://fuchsia.dev/reference/cpp/class/fidl/interface-handle#classfidl_1_1_interface_handle< fuchsia::io::Directory > fallback_dir) ZX_REMOVED_SINCE(1` | `void` |

## Public attributes

### NEXT

```c++
void NEXT
```

## Public functions

### AddService

```c++
void AddService(
  const std::string & service_name,
  std::unique_ptr< vfs::Service > service
)
```

### ComposedServiceDir

```c++
 ComposedServiceDir()
```

### Serve

```c++
zx_status_t Serve(
  fuchsia_io::Flags flags,
  fidl::ServerEnd< fuchsia_io::Directory > server_end,
  async_dispatcher_t *dispatcher
) const 
```

### SetFallback

```c++
void SetFallback(
  fidl::ClientEnd< fuchsia_io::Directory > fallback_dir
)
```

### SetFallback

```c++
void Replaced by SetFallback() 
```

### set_fallback

```c++
void set_fallback(
  fidl::InterfaceHandle< fuchsia::io::Directory > fallback_dir
) ZX_REMOVED_SINCE(1
```