|
Last change
on this file since 827 was 816, checked in by イグトランス (egtra), 15 years ago |
|
ab_commonにおいて、各クラスのコピー禁止を明確化、ならびにコピー可能なものにムーブコンストラクタ・ムーブ代入演算子を追加
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | #pragma once
|
|---|
| 2 |
|
|---|
| 3 | namespace ActiveBasic{ namespace Common{
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 | struct Platform
|
|---|
| 7 | {
|
|---|
| 8 | enum EnumType
|
|---|
| 9 | {
|
|---|
| 10 | X86,
|
|---|
| 11 | X64,
|
|---|
| 12 | };
|
|---|
| 13 | };
|
|---|
| 14 |
|
|---|
| 15 | // ターゲット
|
|---|
| 16 | struct TargetModuleType
|
|---|
| 17 | {
|
|---|
| 18 | enum EnumType
|
|---|
| 19 | {
|
|---|
| 20 | Exe = 0,
|
|---|
| 21 | Dll,
|
|---|
| 22 | Sll,
|
|---|
| 23 | };
|
|---|
| 24 | };
|
|---|
| 25 |
|
|---|
| 26 | class Environment
|
|---|
| 27 | {
|
|---|
| 28 | static std::string rootPath;
|
|---|
| 29 | static bool isRemoveExternal;
|
|---|
| 30 | public:
|
|---|
| 31 | static void SetAbdevRootPath( const std::string &rootPath );
|
|---|
| 32 |
|
|---|
| 33 | static const std::string GetAbdevRootPath();
|
|---|
| 34 |
|
|---|
| 35 | static const std::string GetUserAppDir();
|
|---|
| 36 |
|
|---|
| 37 | static const std::string GetAbdevSystemDirPath()
|
|---|
| 38 | {
|
|---|
| 39 | return GetAbdevRootPath() + "\\system";
|
|---|
| 40 | }
|
|---|
| 41 |
|
|---|
| 42 | static const std::string GetCompilerExePath( Platform::EnumType platform );
|
|---|
| 43 |
|
|---|
| 44 | static bool IsRemoveExternal()
|
|---|
| 45 | {
|
|---|
| 46 | return isRemoveExternal;
|
|---|
| 47 | }
|
|---|
| 48 | static void SetRemoveExternalMark( bool isRemoveExternalMark )
|
|---|
| 49 | {
|
|---|
| 50 | Environment::isRemoveExternal = isRemoveExternalMark;
|
|---|
| 51 | }
|
|---|
| 52 |
|
|---|
| 53 | private:
|
|---|
| 54 | Environment();
|
|---|
| 55 | Environment(Environment const&);
|
|---|
| 56 | Environment& operator =(Environment const&);
|
|---|
| 57 | ~Environment();
|
|---|
| 58 | };
|
|---|
| 59 |
|
|---|
| 60 | BOOL EnableNX();
|
|---|
| 61 | void SetHeapOptions();
|
|---|
| 62 |
|
|---|
| 63 | }}
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.