사양 데이터 파일
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 11"> <meta name=Originator content="Microsoft Word 11"> <link rel=File-List href="Stellarium%20%20%20파일%20및%20디렉토리%20구조.files/filelist.xml"> <link rel=Edit-Time-Data href="Stellarium%20%20%20파일%20및%20디렉토리%20구조.files/editdata.mso"> <title>Stellarium : 파일 및 디렉토리 구조</title> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="time"/>
<link rel=Stylesheet type="text/css" media=all href="Stellarium%20%20%20파일%20및%20디렉토리%20구조_files/doxygen.css"> <link rel=Stylesheet type="text/css" media=all href="Stellarium%20%20%20파일%20및%20디렉토리%20구조_files/translateelement.css"> <style> </style> <![if mso 9]> <style> p.MsoNormal {margin-left:15.0pt;} </style> <![endif]> <script type="text/javascript" charset="UTF-8" src="./Stellarium 파일 및 디렉토리 구조_files/main_ko.js"> </script>
<script type="text/javascript" charset="UTF-8" src="./Stellarium 파일 및 디렉토리 구조_files/element_main.js"> </script>
</head>
<body bgcolor=white lang=KO link="#1A41A8" vlink="#2A3798" style='tab-interval: 40.0pt;margin-left:15.0pt;margin-right:15.0pt'>
|
<a href="http://www.stellarium.org/"></a><![if !vml]><a href="http://www.stellarium.org/"><img border=0 width=64 height=64 src="Stellarium%20%20%20파일%20및%20디렉토리%20구조_files/stellarium-logo.png" align=left v:shapes="_x0000_s1026"></a><![endif]><a href="http://www.stellarium.org/"></a><o:p></o:p> |
<o:p></o:p> |
Stellarium 트렁크 - 월요일 수정 - 4929<o:p></o:p> |
<o:p> </o:p> |
|
<a href="http://www.stellarium.org/doc/head/index.html">홈</a> · <a href="http://www.stellarium.org/doc/head/namespaces.html">모든 네임 스페이스</a> · <a href="http://www.stellarium.org/doc/head/classes.html">모든 클래스</a> · <a href="http://www.stellarium.org/doc/head/functions.html">기능</a> · <a href="http://www.stellarium.org/doc/head/codingStyle.html">코딩 스타일</a> · <a href="http://www.stellarium.org/doc/head/scripting.html">스크립팅</a> · <a href="http://www.stellarium.org/doc/head/plugins.html">플러그인</a> · <a href="Stellarium%20%20%20파일%20및%20디렉토리%20구조_files/Stellarium%20%20%20파일%20및%20디렉토리%20구조.htm">파일 구조</a> <o:p></o:p> |
Contents |
파일 및 디렉토리 구조 <o:p></o:p>
이 문서는 디렉토리와 Stellarium은 프로그래머의 관점에서 사용하는 파일의 레이아웃을 설명하고 그 뒤에있는 근거를 나타냅니다, 그리고 사물이 작동하는 방식을 설명하기 위해 예제를 사용합니다.<o:p></o:p>
디렉토리 구조<o:p></o:p>
파일은 크게 데이터의 종류로 구분됩니다. 에 대한 StelModules 많은 데이터 파일이 필요 한 디렉토리가 있습니다. 예 : <a
href="http://www.stellarium.org/doc/head/classStarMgr.html"
title="별표 카탈로그 데이터를 저장합니다.">StarMgr의</a> 파일에 저장 별 디렉토리 <a
href="http://www.stellarium.org/doc/head/classLandscapeMgr.html"
title="관찰자의 환경 수준에서 모든 렌더링을 관리합니다.">LandscapeMgr의</a> 파일에서 찾을 수 있습니다 풍경의
디렉토리.<o:p></o:p>
예를를위한 모듈과 프로그램의 다른 부분들 사이에 공유 디렉토리도 있습니다 질감
디렉토리.<o:p></o:p>
사용자 및 설치 디렉토리 분리<o:p></o:p>
Stellarium 데이터, 텍스처 및 기타 파일을 검색할 때 그것은 두 개의 서로 다른 위치에 보입니다 : <o:p></o:p>
<![if !supportLists]>· <![endif]>사용자 데이터 디렉토리 의 모든 사용 자별 복사본을 저장, 데이터 파일을 사용자 정의. 그것은 Stellarium은 구성 파일을 저장 장소, 녹음 스크립트이고 또한에있는 파일 오버 라이드하는 데 사용할 수있는 설치 데이터 디렉토리를 사용자가 Stellarium을 사용자 정의하고자하는 경우. 이 디렉토리의 위치는 운영 체제에 따라 다릅니다.<o:p></o:p>
|
OS<o:p></o:p> |
위치 <o:p></o:p> |
|
리눅스 / BSD / 기타 POSIX<o:p></o:p> |
|
|
윈도우 2000 / XP<o:p></o:p> |
이것은이다 |
|
윈도우 비스타<o:p></o:p> |
이것은이다 |
|
맥 OS X<o:p></o:p> |
|
<![if !supportLists]>· <![endif]>내의 디렉토리 트리 사용자 데이터 디렉토리 와 동일 설치 데이터 디렉토리 . 에 존재하는 모든 파일에 사용자 데이터 디렉토리 것입니다 초과 타고 그 안에 설치 데이터 디렉토리 .<o:p></o:p>
<![if !supportLists]>· <![endif]>예를 들어, 성운 텍스처의 위치를 수정하려면 사용자가 복사할 수 있습니다 성운 / 기본 /
nebula_textures.fab 에서 파일을 설치 데이터 디렉토리 에 성운 / 기본 의 하위 디렉토리 사용자 데이터 디렉토리 와 그곳을 수정합니다. 이러한 방식에서는 다중 사용자 시스템에서 각 사용자는 자신의 사용자 정의 Stellarium 데이터 파일이있을 수 있습니다.<o:p></o:p>
<![if !supportLists]>· <![endif]>설치 데이터 디렉토리 프로그램을 함께 배포하는 프로그램 실행, 도서관 및 모든 데이터 파일이 설치된 위치를이다. 그것은 Stellarium의 데이터 파일이 컴퓨터에 설치되어있는 장소입니다. 이 디렉토리는 운영 체제에 따라 다릅니다.<o:p></o:p>
|
OS<o:p></o:p> |
위치 <o:p></o:p> |
|
리눅스 / BSD / 기타 POSIX<o:p></o:p> |
그것은 Stellarium를 구축할 때 사용되는 설치 접두사에 따라 달라집니다. 이 소스에서 구축하고, 명시적으로 설치 접두사를 지정하지 않은 경우, 접두사는 것입니다 |
|
윈도우<o:p></o:p> |
그것은 Stellarium이 설치된 위치에 따라 달라집니다. 주요 Stellarium 설치 디렉토리는 설치 데이터 디렉토리 . 일반적으로이됩니다 |
|
맥 OS X<o:p></o:p> |
설치 데이터 디렉토리는 응용 프로그램 번들 안에서 발견된다. <o:p></o:p> |
<![if !supportLists]>· <![endif]>에서 찾을 수 있습니다 중요한 데이터 파일을 설치 데이터 디렉토리 포함 :<o:p></o:p>
데이터 / ssystem.ini: 태양계 기관 설명 파일<o:p></o:p>별 / 기본 / *: 별 카탈로그<o:p></o:p>성운 / 기본 / *: 성운의 질감 및 데이터 파일<o:p></o:p>스크립트 /: 스크립트 파일<o:p></o:p>질감 /: 일반적인 목적의 텍스처 파일 (버튼 아이콘 등)<o:p></o:p>풍경 / * / *: 가로 질감 및 데이터 파일<o:p></o:p>
파일이 존재하면 사용자 데이터 디렉토리 , 그것은 기존 동일한 이름을 가진 파일에 환경 설정에 사용됩니다 설치 데이터 디렉토리 . 이것은 사용자가 원래 설치된 파일을 수정하지 않고 데이터 파일, 질감 등을 사용자 정의할 수 있습니다.<o:p></o:p>
이렇게 몇 가지 이유가 있습니다 : <o:p></o:p>
- 컴퓨터에있는 여러 개의 사용자 계정, 설치 데이터 디렉토리 가능성이 모든 사용자가 쓸 수 없습니다. 허용하지 않고 사용자 데이터 디렉토리 파일을 통해 - 태워다에 설치 데이터 디렉토리 같은 사용자가 완전히 별도로 설치하지 않고 프로그램을 사용자 정의할 수 없습니다 파일.<o:p></o:p>
- 다중 사용자 시스템에서 다른 사용자가 프로그램의 다른 사용자에 영향을주지 않고 Stellarium을 사용자 정의할 수 있습니다. <o:p></o:p>
- 에서 파일 수정 사용자 설치 데이터 디렉토리 가능성은 Stellarium을 업그레이 드하면 자신의 일을 삭제하거나 덮어 것입니다. 유지하여 설치와는 별도로 파일을 사용자 - 정의, 업그레 이드 절차는 관리하기 쉽게하고, 사용자는 자신의 일에 대해 더 나은 보안 있습니다.<o:p></o:p>
- 사용자 정의 시도를 엉망으로 사용자는 제거해야 사용자 데이터 디렉토리 원본 (작업) 복사로 돌아갑니다 파일의 복사본을.<o:p></o:p>
StelFileMgr 클래스로 찾기 파일<o:p></o:p>
파일이 Stellarium에서 필요할 때마다, 그것은 사용은 어느곳에 있어야합니까 <a href="http://www.stellarium.org/doc/head/classStelFileMgr.html"
title="파일 찾기 및 취급을위한 유틸리티를 제공합니다.">StelFileMgr의</a>
클래스를. 이 클래스는 검색 경로의 첫 번째 위치에 파일을 찾을 수 있습니다. 이 클래스의 인스턴스에 의해 유지 <a href="http://www.stellarium.org/doc/head/classStelApp.html"
title="싱글톤 주 Stellarium 응용 프로그램 클래스.">StelApp</a> . 하나씩 일어나는 <a
href="http://www.stellarium.org/doc/head/classStelFileMgr.html#a21f72cc27d5fc6a3603c093bd0b28d94"
title="예를 들어 "질감 / fog.png"에 대한 검색 경로 내에 경로를 검색.">StelFileMgr : findFile ()는</a>
문제가 발생 예외를 던져되므로 항상 사용하는 것이 중요합니다 하려고 ... 캐치 ... 예외 처리를 그것을 사용할 때.<o:p></o:p>
예를 들어,. 당신은라는 클래스를 작성하는 <a href="http://www.stellarium.org/doc/head/classComet.html">혜성을</a>
, 그리고라는 데이터 파일을 검색하려면 comets.dat 에있는 데이터
디렉토리, 당신은 이런식으로 갈 것입니다 :<o:p></o:p>
<span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family: 굴림체;color:black'>QString </span><span style='font-size:10.0pt;mso-ascii-font-family: "Courier New";mso-hansi-font-family:"Courier New";color:black'>경로</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family: 굴림체;color:black'>;<o:p></o:p></span>
<span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;color:black'> </span><span class=keywordflow><span style='font-size:10.0pt;font-family:굴림체;mso-ascii-font-family: "Courier New";mso-hansi-font-family:"Courier New";mso-bidi-font-family:굴림체'>시도</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:
굴림체;color:black'><o:p></o:p></span>
<span lang=EN-US style='font-size:10.0pt;font-family:
"Courier New";mso-bidi-font-family:굴림체;color:black'>{<o:p></o:p></span><span lang=EN-USstyle='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체; color:black'><span style='mso-spacerun:yes'> </span></span><span style='font-size:10.0pt;mso-ascii-font-family:"Courier New";mso-hansi-font-family: "Courier New";color:black'>경로</span><span lang=EN-US style='font-size:10.0pt; font-family:"Courier New";mso-bidi-font-family:굴림체;color:black'> = <a href="http://www.stellarium.org/doc/head/classStelApp.html#a1737cdc7266e4ecc8f2f259048e6f1b6" title="StelApp 하나씩 일어나는 인스턴스를 받으세요."><span style='color:blue;text-decoration: none;text-underline:none'>StelApp : : getInstance</span></a> .. () getFileMgr () findFile ( </span><span class=stringliteral><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"; mso-bidi-font-family:굴림체'>"</span></span><span class=stringliteral><span style='font-size:10.0pt;font-family:굴림체;mso-ascii-font-family:"Courier New"; mso-hansi-font-family:"Courier New";mso-bidi-font-family:굴림체'>데이터</span></span><span class=stringliteral><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"; mso-bidi-font-family:굴림체'> / comets.dat"</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'> );<o:p></o:p></span>
<span lang=EN-US style='font-size:10.0pt;font-family: "Courier New";mso-bidi-font-family:굴림체;color:black'>}<o:p></o:p></span>
<span class=keywordflow><spanstyle='font-size:10.0pt;font-family:굴림체;mso-ascii-font-family:"Courier New"; mso-hansi-font-family:"Courier New";mso-bidi-font-family:굴림체'>캐치</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family: 굴림체;color:black'> (</span><span style='font-size:10.0pt;mso-ascii-font-family: "Courier New";mso-hansi-font-family:"Courier New";color:black'>표준</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:
굴림체;color:black'> : : runtime_error & E)<o:p></o:p></span>
<span lang=EN-USstyle='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'>{<o:p></o:p></span>
<spanlang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family: 굴림체;color:black'><span style='mso-spacerun:yes'> </span><span style='mso-spacerun:yes'> </span>qWarning () << </span><span class=stringliteral><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"; mso-bidi-font-family:굴림체'>"</span></span><span class=stringliteral><span style='font-size:10.0pt;font-family:굴림체;mso-ascii-font-family:"Courier New"; mso-hansi-font-family:"Courier New";mso-bidi-font-family:굴림체'>파일을</span></span><span class=stringliteral><span style='font-size:10.0pt;font-family:"Courier New"; mso-bidi-font-family:굴림체'> </span></span><span class=stringliteral><span style='font-size:10.0pt;font-family:굴림체;mso-ascii-font-family:"Courier New"; mso-hansi-font-family:"Courier New";mso-bidi-font-family:굴림체'>찾을</span></span><span class=stringliteral><span style='font-size:10.0pt;font-family:"Courier New"; mso-bidi-font-family:굴림체'> </span></span><span class=stringliteral><span style='font-size:10.0pt;font-family:굴림체;mso-ascii-font-family:"Courier New"; mso-hansi-font-family:"Courier New";mso-bidi-font-family:굴림체'>수</span></span><span class=stringliteral><span style='font-size:10.0pt;font-family:"Courier New"; mso-bidi-font-family:굴림체'> </span></span><span class=stringliteral><span style='font-size:10.0pt;font-family:굴림체;mso-ascii-font-family:"Courier New"; mso-hansi-font-family:"Courier New";mso-bidi-font-family:굴림체'>없습니다</span></span><span class=stringliteral><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"; mso-bidi-font-family:굴림체'> : </span></span><span class=stringliteral><span style='font-size:10.0pt;font-family:굴림체;mso-ascii-font-family:"Courier New"; mso-hansi-font-family:"Courier New";mso-bidi-font-family:굴림체'>데이터</span></span><span class=stringliteral><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"; mso-bidi-font-family:굴림체'> / comets.dat :"</span></span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'> <<e.what ();<o:p></o:p></span>
<span lang=EN-US style='font-size:10.0pt;font-family: "Courier New";mso-bidi-font-family:굴림체;color:black'>}<o:p></o:p></span>
<span lang=EN-USstyle='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'>...<o:p></o:p></span>
당신이 볼 수 있듯이,이 파일은 부분 경로로 지정됩니다. 이 부분 경로가 최초로 추가되는 사용자 데이터 디렉토리 . 파일도 발견되지 않으면, 그리고 경우에만,
그것은에서를 검색 설치 데이터 디렉토리 . 사용자가에서 정의 사본이 따라서 경우 <user 데이터 Directory> / 데이터 / comets.dat 가 사용됩니다를 다른 버전에서 설치 데이터 디렉토리가 사용됩니다.<o:p></o:p>
예 : 스타 카탈로그 다운로드 도구<o:p></o:p>
구 파일의 첫 4 성급 카탈로그 파일과 Stellarium의 배송. 카탈로그 다운로드 도구의 구현은 다운로드하고 설치 절차를 자동화함으로써 여분의 카탈로그을 원하는 사용자를위한 작업을 쉽게하는 데 도움이됩니다.<o:p></o:p>
Stellarium 같이 파일이 경로 부분에서 발견된다 : <o:p></o:p>
<span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family: 굴림체;color:black'>stars/default/stars_0_0v0_1.cat<o:p></o:p></span>
<span lang=EN-USstyle='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'>stars/default/stars_1_0v0_1.cat<o:p></o:p></span>
<span lang=EN-USstyle='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'>stars/default/stars_2_0v0_1.cat<o:p></o:p></span>
<span lang=EN-USstyle='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'>stars/default/stars_3_1v0_1.cat<o:p></o:p></span>
물론, 이러한 파일에 위치하는 것입 설치 데이터 디렉토리 (그들은 설치와 함께 제공하기 때문에).<o:p></o:p>
카탈로그 다운 로더 도구는 Stellarium 내에서 실행됩니다. 그것이 여분 별 카탈로그 파일을 다운로드하면, 그것은 그들을 대신해야 사용자 데이터 디렉토리 . 모든 카탈로그를 다운로드 후, 다양한 파일 경로는 다음과 같이해야합니다 :<o:p></o:p>
<span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family: 굴림체;color:black'><Installation data Directory> / stars/default/stars_0_0v0_1.cat<o:p></o:p></span>
<span lang=EN-USstyle='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'><Installation data Directory> / stars/default/stars_1_0v0_1.cat<o:p></o:p></span>
<span lang=EN-USstyle='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'><Installation data Directory> / stars/default/stars_2_0v0_1.cat<o:p></o:p></span>
<span lang=EN-USstyle='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'><Installation data Directory> / stars/default/stars_3_1v0_1.cat<o:p></o:p></span>
<span lang=EN-USstyle='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'><user data Directory> / stars/default/stars_4_1v0_0.cat<o:p></o:p></span>
<span lang=EN-USstyle='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'><user data Directory> / stars/default/stars_5_2v0_0.cat<o:p></o:p></span>
<span lang=EN-USstyle='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'><user data Directory> / stars/default/stars_6_2v0_0.cat<o:p></o:p></span>
<span lang=EN-USstyle='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'><user data Directory> / stars/default/stars_7_2v0_0.cat<o:p></o:p></span>
<span lang=EN-USstyle='font-size:10.0pt;font-family:"Courier New";mso-bidi-font-family:굴림체;
color:black'><user data Directory> / stars/default/stars_8_2v0_0.cat<o:p></o:p></span>
아마도 특별한 에디션 DVD에 - 그 사람이 기본 설치의 모든 별 카탈로그를 포함 Stellarium의 사용자 지정 설치 프로그램을 만들 수 있습니다. 이 경우, 모든 파일에있을 것입니다 <Installation 데이터 Directory> / 별 / 기본 디렉토리. 다운 로더 도구를 다시 다운로드 파일에,이 안 대처 할 수 있어야한다 사용자 데이터 디렉토리 이미에있는 설치 데이터 디렉토리 .<o:p></o:p>
<address>에 의해 수요일 8월 3일 Stellarium에 대한 2011 <st1:time Minute="21" Hour="21" o:ls="trans" w:st="on">21시 21분 3초</st1:time>에서 생성된 1.7.3<a href="http://www.doxygen.org/index.html"> <img border=0 width=104 height=31 id="_x0000_i1026" src="Stellarium%20%20%20파일%20및%20디렉토리%20구조_files/doxygen.png" alt=doxygen class=footer></a><o:p></o:p></address>
</body>
</html>