> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# File dvs_server_interface.h

![][C++]

C++ Server API for using Dynamic Visualization Store Server.

```text theme={null}
1.) Instantiate [DVS::IServer](#class_d_v_s_1_1_i_server) using [DVS::CREATE_SERVER_INSTANCE()](#dvs__server__interface_8h_1a852580b9a49ac305e4ae26ca637bcc75) method
2.) Set options using [DVS::IServer::set_options()](#class_d_v_s_1_1_i_server_1a964b0420773ec5f47dbcea04334ba0d3) or [DVS::IServer::set_option()](#class_d_v_s_1_1_i_server_1a1edb4dec67086f10bc0329b6adf9084c)
3.) Startup server using [DVS::IServer::startup()](#class_d_v_s_1_1_i_server_1a6699cf48b29583ab3391b9b8397e611c)
4.) If needed see if it's running via [DVS::IServer::running()](#class_d_v_s_1_1_i_server_1a5fdee3f663dbe7b7dab11621f76737e2)
5.) Shutdown server using [DVS::IServer::shutdown()](#class_d_v_s_1_1_i_server_1a7ce6bb49a2d383b0821267415a93802d)
6.) Destroy instance using [DVS::DESTROY_SERVER_INSTANCE()](#dvs__server__interface_8h_1adcdcbab1954ec53631a7136af7fc49b8)
```

## Classes

* [DVS::IServer](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/classes/class_d_v_s_1_1_i_server.md)

## Namespaces

* [DVS](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/namespaces/namespace_d_v_s.md)

## Includes

* \<map>
* \<string>
* [dvs\_query\_interface.h](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/dvs__query__interface_8h.md)
* transport\_interface.h
* dvs\_import\_export.h

```mermaid theme={null}
graph LR
8["dvs_dataset_interface.h"]
click 8 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__dataset__interface_8h"
8 --> 5
8 --> 7
8 --> 9
8 --> 10

14["dvs_element_block_interface.h"]
click 14 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__element__block__interface_8h"
14 --> 5
14 --> 7
14 --> 12
14 --> 15

12["dvs_hash_interface.h"]
click 12 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__hash__interface_8h"
12 --> 5
12 --> 7

13["dvs_mesh_chunk_interface.h"]
click 13 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__mesh__chunk__interface_8h"
13 --> 5
13 --> 7
13 --> 14
13 --> 9
13 --> 10
13 --> 12
13 --> 15

9["dvs_object_interface.h"]
click 9 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__object__interface_8h"
9 --> 5
9 --> 7

11["dvs_plot_chunk_interface.h"]
click 11 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__plot__chunk__interface_8h"
11 --> 5
11 --> 7
11 --> 9
11 --> 12

4["dvs_query_interface.h"]
click 4 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__query__interface_8h"
4 --> 2
4 --> 3
4 --> 5
4 --> 7
4 --> 8
4 --> 9
4 --> 10
4 --> 11
4 --> 13
4 --> 16
4 --> 19

1["dvs_server_interface.h"]
click 1 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__server__interface_8h"
1 --> 2
1 --> 3
1 --> 4
1 --> 20
1 --> 19

15["dvs_var_hash_interface.h"]
click 15 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__var__hash__interface_8h"
15 --> 5
15 --> 7
15 --> 10

10["dvs_var_interface.h"]
click 10 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__var__interface_8h"
10 --> 5
10 --> 7

17["dynamic_visualization_store_api.h"]
click 17 "/docs/ensight/dynamic-visualization-store/reference/files/dynamic__visualization__store__api_8h"
17 --> 6
17 --> 5
17 --> 7
17 --> 18
17 --> 19

5["dynamic_visualization_store_enums.h"]
click 5 "/docs/ensight/dynamic-visualization-store/reference/files/dynamic__visualization__store__enums_8h"
5 --> 6

7["dynamic_visualization_store_error_codes.h"]
click 7 "/docs/ensight/dynamic-visualization-store/reference/files/dynamic__visualization__store__error__codes_8h"
7 --> 6

18["dynamic_visualization_store_version.h"]
click 18 "/docs/ensight/dynamic-visualization-store/reference/files/dynamic__visualization__store__version_8h"

16["logger_interface.h"]
16 --> 17

19["dvs_import_export.h"]

2["map"]

6["stdint.h"]

3["string"]

20["transport_interface.h"]

```

## Included by

* [dvs\_client\_interface.h](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/dvs__client__interface_8h.md)
* [test\_dvs\_client\_cxx.cpp](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/test__dvs__client__cxx_8cpp.md)
* [test\_dvs\_reader.cpp](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/test__dvs__reader_8cpp.md)
* [test\_dvs\_server.cpp](https://developer.synopsys.com/docs/ensight/dynamic-visualization-store/reference/files/test__dvs__server_8cpp.md)

```mermaid theme={null}
graph RL
2["dvs_client_interface.h"]
click 2 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__client__interface_8h"
3 --> 2

1["dvs_server_interface.h"]
click 1 "/docs/ensight/dynamic-visualization-store/reference/files/dvs__server__interface_8h"
2 --> 1
3 --> 1
4 --> 1
5 --> 1

3["test_dvs_client_cxx.cpp"]
click 3 "/docs/ensight/dynamic-visualization-store/reference/files/test__dvs__client__cxx_8cpp"

4["test_dvs_reader.cpp"]
click 4 "/docs/ensight/dynamic-visualization-store/reference/files/test__dvs__reader_8cpp"

5["test_dvs_server.cpp"]
click 5 "/docs/ensight/dynamic-visualization-store/reference/files/test__dvs__server_8cpp"

```

## Source

```cpp theme={null}
/*  *************************************************************
 *   Copyright 2017-2025 ANSYS, Inc.
 *   All Rights Reserved.
 *
 *        Restricted Rights Legend
 *
 *   Use, duplication, or disclosure of this
 *   software and its documentation by the
 *   Government is subject to restrictions as
 *   set forth in subdivision [(b)(3)(ii)] of
 *   the Rights in Technical Data and Computer
 *   Software clause at 52.227-7013.
 *  *************************************************************
 */

#ifndef ___DVS_SERVER_INTERFACE___
#define ___DVS_SERVER_INTERFACE___


#include <map>
#include <string>

#include "dvs_query_interface.h"
#include "transport_interface.h"
#include "dvs_import_export.h"



namespace DVS
{
    class IServer
    {
    public:

        IServer() = default; 
        virtual ~IServer() = default; 
        IServer(IServer&&) = default;  
        IServer& operator=(IServer&&) = default; 
        IServer(const IServer&) = default; 
        IServer& operator=(const IServer&) = default; 

        virtual void set_options(const std::map<const char*,const char*>& options) = 0;

        virtual void set_option(const char* key, const char* value) = 0;

        virtual void clear_options() = 0;

        virtual bool running() const = 0;

        virtual dvs_ret get_timestep_count(uint32_t& num_pending, uint32_t& num_complete) const = 0;

        virtual dvs_ret startup(uint32_t server_number, uint32_t local_ranks) = 0;

        virtual dvs_ret startup_unthreaded(uint32_t server_number, uint32_t local_ranks) = 0;

        virtual dvs_ret update() = 0;

        virtual dvs_ret terminating() = 0;

        virtual void shutdown() = 0;

        virtual ITransport* create_transport(const std::string& shared_secret) = 0;

        virtual const char* get_uri() = 0;

        virtual DVS::IQuery* create_query(const std::string& filter=std::string(), DVS::IQuery* parent=nullptr) = 0;

    };

    DVS_DLL_EXPORT IServer* CREATE_SERVER_INSTANCE(const char* uri);

    DVS_DLL_EXPORT void DESTROY_SERVER_INSTANCE(DVS::IServer* destroy);
    
}

#endif //___DVS_SERVER_INTERFACE___
```

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[protected]: https://img.shields.io/badge/-protected-yellow "protected"

[static]: https://img.shields.io/badge/-static-lightgrey "static"

[Python]: https://img.shields.io/badge/language-Python-blue "Python"

[private]: https://img.shields.io/badge/-private-red "private"

[const]: https://img.shields.io/badge/-const-lightblue "const"

[Markdown]: https://img.shields.io/badge/language-Markdown-blue "Markdown"
