44#ifndef LASS_GUARDIAN_OF_INCLUSION_UTIL_IMPL_ENVIRONMENT_H
45#define LASS_GUARDIAN_OF_INCLUSION_UTIL_IMPL_ENVIRONMENT_H
56LASS_DLL const std::string LASS_CALL lass_getenv(
const std::string& iName);
57LASS_DLL void LASS_CALL lass_putenv(
const std::string& iName,
const std::string& iValue);
62 static const T get(
const std::string& iName)
64 return stringCast<T>(lass_getenv(iName));
66 static void put(
const std::string& iName,
typename CallTraits<T>::TParam iValue)
68 lass_putenv(iName, stringCast<std::string>(iValue));
73struct Environment<std::string>
75 static const std::string get(
const std::string& iName)
77 return lass_getenv(iName);
79 static void put(
const std::string& iName,
const std::string& iValue)
81 lass_putenv(iName, iValue);
88const T getEnvironment(
const std::string& iName)
90 return impl::Environment<typename CallTraits<T>::TValue>::get(iName);
94void putEnvironment(
const std::string& iName,
const T& iValue)
96 impl::Environment<typename CallTraits<T>::TValue>::put(iName, iValue);
#define LASS_DLL
DLL interface: import or export symbols?
general utility, debug facilities, ...
Library for Assembled Shared Sources.