Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
anonymous_namespace{test_server.cpp}::EnvGuard Class Reference

Sets an environment variable for the lifetime of the object. More...

Public Member Functions

 EnvGuard (const char *name, const QByteArray &value)
 Sets name to value (or unsets it when value is null).
 ~EnvGuard ()
 Unsets the variable.
 EnvGuard (const EnvGuard &)=delete
EnvGuard & operator= (const EnvGuard &)=delete

Private Attributes

const char * m_name
 Variable name.

Detailed Description

Sets an environment variable for the lifetime of the object.


The documentation for this class was generated from the following file:
  • tests/core/test_server.cpp