Environ.h
// Environ.h
//
// Author David Barrett-Lennard
// (C)opyright Cedanet Pty Ltd 2013
#pragma once
#ifndef Ceda_cxUtils_Environ_H
#define Ceda_cxUtils_Environ_H
#include "cxUtils.h"
#include "xstring.h"
#if !defined(WINCE)
namespace ceda
{
cxUtils_API bool GetEnvironmentVar(ConstStringZ name, xstring& value);
cxUtils_API bool PutEnvironmentVar(ConstStringZ name, ConstStringZ value);
// Retrieve the folder to be used for ceda unit tests. Read from the environment variable
// CEDA_TEST_DIR, or else c:/ceda/test
// Always uses forward slashes in the path.
cxUtils_API xstring GetCedaTestDir();
// Returns a path made by calling GetCedaTestDir() and appending the given relative path
// Always delimited with forward slashes.
cxUtils_API xstring GetCedaTestPath(ConstStringZ relativePath);
} // namespace ceda
#endif // !WINCE
#endif // include guard