Newer
Older
snipet / libscpp / trunk / include / scpp_env.hpp
Nomura Kei on 26 Aug 2022 856 bytes old svn data to git
/* =============================================================================
 *  scpp_env.hpp
 *  Copyright (c)  2003 - 2011  Nomura Kei
 *  LICENSE :
 *  LGPL (GNU Lesser General General Public License - Version 3,29 June 2007)
 *  http://www.gnu.org/copyleft/lesser.html
 * =============================================================================
 *
 * 環境変数操作モジュール.
 *
 */
#ifndef SCPP_ENV_HPP
#define SCPP_ENV_HPP

#include <string>
#include <cstdlib>

#include <scpp_os.hpp>


namespace scpp
{


/**
 * 環境変数の取得/設定/削除を行う.
 */
namespace Env
{

bool getEnv(std::string* buf, const std::string& name);
bool setEnv(const std::string& name, const std::string& value, bool overwrite = false);
bool unsetEnv(const std::string& name);

}	// namespace env

}	// namespace scpp


#endif	// SCPP_ENV_HPP