source: dev/trunk/ab5.0/abdev/ab_common/Environment.cpp@ 478

Last change on this file since 478 was 478, checked in by dai_9181, 16 years ago

・リポジトリ参照の張りなおし。
・Environment::GetAbdevRootPathメソッドにて、自動的にデータの初期化を行うようにした。
・reg_exp.cppの文字コードをShift-JISに統一。

File size: 703 bytes
Line 
1#include "stdafx.h"
2
3std::string ActiveBasic::Common::Environment::rootPath;
4
5using namespace ActiveBasic::Common;
6
7void Environment::SetAbdevRootPath( const std::string &rootPath )
8{
9 Environment::rootPath = Jenga::Common::Path::MakeFullPath( rootPath, Jenga::Common::Environment::GetAppDir() );
10}
11const std::string Environment::GetAbdevRootPath()
12{
13 if( rootPath.empty() )
14 {
15 SetAbdevRootPath( "" );
16 }
17 return rootPath;
18}
19const std::string Environment::GetCompilerExePath( Platform::EnumType platform )
20{
21 switch( platform )
22 {
23 case Platform::X86:
24 return rootPath + "\\bin\\x86\\abc.exe";
25 case Platform::X64:
26 return rootPath + "\\bin\\x64\\abc.exe";
27 }
28 throw;
29}
Note: See TracBrowser for help on using the repository browser.