# fdf::Namespace

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace_1a2a8d904a82f7a4ae1cae48a36dbbe89f()` ||
| `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace_1ae35b81996ba09192cea6d077d22ef8d4(https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace && other)` ||
| `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace_1a7f9f7c675e07a9e18435534190c69856()` ||

| ### Public static functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace_1a52ce51dcbb549aed2c03009a5b1af355(https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view< fuchsia_component_runner::wire::ComponentNamespaceEntry > & entries)` | `https://fuchsia.dev/reference/cpp/other/singletonzx/result#singletonzx_1_1result< https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace >` |
| `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace_1a4ae54ff4ee62a885b6f4fb0d82ceb14b(std::vector< fuchsia_component_runner::ComponentNamespaceEntry > & entries)` | `https://fuchsia.dev/reference/cpp/other/singletonzx/result#singletonzx_1_1result< https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace >` |

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace_1a97f7f8ed71dd2aec1d74ac503f7e7985(const char *protocol_name) const ` | `https://fuchsia.dev/reference/cpp/other/singletonzx/result#singletonzx_1_1result< https://fuchsia.dev/reference/cpp/other/singletonfidl/client-end#singletonfidl_1_1_client_end< https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol > >` |
| `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace_1a67293ae3219b750395dccbcf7ee275ca(https://fuchsia.dev/reference/cpp/other/singletonfidl/server-end#singletonfidl_1_1_server_end< https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol > server_end, const char *protocol_name) const ` | `https://fuchsia.dev/reference/cpp/other/singletonzx/result#singletonzx_1_1result` |
| `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace_1a8531dd58c0b8af53f5c9aed33a736fd5(std::string_view instance) const ` | `https://fuchsia.dev/reference/cpp/other/singletonzx/result#singletonzx_1_1result< fidl::internal::ClientEndType< typename ServiceMember::ProtocolType > >` |
| `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace_1a17ccab5bf8c89e492a64a21953dbae82(fidl::internal::ServerEndType< typename ServiceMember::ProtocolType > server_end, std::string_view instance) const ` | `https://fuchsia.dev/reference/cpp/other/singletonzx/result#singletonzx_1_1result` |
| `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace_1ade14da5b475b7ec4a91d474ccdc82a49(const char *path, fuchsia_io::Flags flags) const ` | `https://fuchsia.dev/reference/cpp/other/singletonzx/result#singletonzx_1_1result< https://fuchsia.dev/reference/cpp/other/singletonfidl/client-end#singletonfidl_1_1_client_end< https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol > >` |
| `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace_1ad14de6e6fad792fa9d80ea33f6158247(std::string_view instance) const ` | `https://fuchsia.dev/reference/cpp/other/singletonzx/result#singletonzx_1_1result< typename FidlService::ServiceClient >` |
| `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace_1a792e2b34ee50deef1edd55949418d2a7(std::optional< https://fuchsia.dev/reference/cpp/class/fdf/service-validator#classfdf_1_1_service_validator > service_validator)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace_1a13ad9a45e8da607d41d6e044c3f05b16(https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace && other) noexcept` | `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace &` |
| `https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace_1adf3c072f5bbe3174ea169196ffe0edc3() const ` | `https://fuchsia.dev/reference/cpp/other/singletonfidl/unowned-client-end#singletonfidl_1_1_unowned_client_end< fuchsia_io::Directory >` |

## Public static functions

### Create

```c++
zx::result< Namespace > Create(
  fidl::VectorView< fuchsia_component_runner::wire::ComponentNamespaceEntry > & entries
)
```

### Create

```c++
zx::result< Namespace > Create(
  std::vector< fuchsia_component_runner::ComponentNamespaceEntry > & entries
)
```

## Public functions

### Connect

```c++
zx::result< fidl::ClientEnd< Protocol > > Connect(
  const char *protocol_name
) const 
```

### Connect

```c++
zx::result Connect(
  fidl::ServerEnd< Protocol > server_end,
  const char *protocol_name
) const 
```

### Connect

```c++
zx::result< fidl::internal::ClientEndType< typename ServiceMember::ProtocolType > > Connect(
  std::string_view instance
) const 
```

### Connect

```c++
zx::result Connect(
  fidl::internal::ServerEndType< typename ServiceMember::ProtocolType > server_end,
  std::string_view instance
) const 
```

### Namespace

```c++
 Namespace()=default
```

### Namespace

```c++
 Namespace(
  Namespace && other
) noexcept
```

### Open

```c++
zx::result< fidl::ClientEnd< Protocol > > Open(
  const char *path,
  fuchsia_io::Flags flags
) const 
```

### OpenService

```c++
zx::result< typename FidlService::ServiceClient > OpenService(
  std::string_view instance
) const 
```

### SetServiceValidator

```c++
void SetServiceValidator(
  std::optional< ServiceValidator > service_validator
)
```

### operator=

```c++
Namespace & operator=(
  Namespace && other
) noexcept
```

### svc_dir

```c++
fidl::UnownedClientEnd< fuchsia_io::Directory > svc_dir() const 
```

### \~Namespace

```c++
 ~Namespace()
```