Qt's Meta-Object System

One of Qt's major achievements has been the extension of C++ with a mechanism for creating independent software components that can be bound together without any component knowing anything about the other components it is connected to.

Qt-의 주요 성과는 C++를 이용하여, 컴포넌트의 특별한 정보없이, 컴포넌트간의 경계를 접속할수 있게 해주므로써, 독립적인 소프트웨어 컴포너트를 만들수 있다.

 

The mechanism is called the meta-object system, and it provides two key services:

이러한 메커니즘은 Meta-Object 시스템이며, 두가지의 중요기능을 제공함:

signalsslots and introspection.

바로, 시그널 슬롯과  내성기능[?]이다.

 

The introspection functionality is necessary for implementing signals and slots, and allows application programmers to obtain "meta-information" about QObject subclasses at run-time, including the list of signals and slots supported by the object and its class name.

내성기능은 시그널과 슬롯의 구현에 필요한 것이며, 응용프로그래머에 런-타임에, QObject클래스의 상속을 제공하며, 시그널과 슬롯이 지원하는 객체와 클래스 이름을 제공한다.

 

The mechanism also supports properties (for Qt Designer) and text translation (for internationalization), and it lays the foundation for Qt Script for Applications (QSA).

이러한 메커니즘은 특성정보와 문서 번역을 지원하며, Qt 크르립트에 기제 되어있다.

 

Standard C++ doesn't provide support for the dynamic meta-information needed by Qt's meta-object system.

표준 C++는 Qt의 메타객체시스템이 필요로 하는 동적 메타정보를 제공하지 않는다.

 

Qt solves this problem by providing a separate tool, moc, that parses Q_OBJECT class definitions and makes the information available through C++ functions.

Qt는 C++이 선언하고 사용할 수있는 정보를 가능하게 해주는 스크립트

분리툴과 moc를 제공한다.

 

Since moc implements all its functionality using pure C++, Qt's meta-object system works with any C++ compiler.

Qt메타시스템은 moc의 구현은 어떠한 C++컴파일러가 사용할 수 있는 C++의 순수코드를 제공해준다.





[출처]http://blog.naver.com/starw42?Redirect=Log&logNo=80034262821

'QT' 카테고리의 다른 글

GTK와 GDK  (1) 2010.04.11
[QT/Embedded] Qt, Qt/Embedded, Qpe, Qtopia, OPIE 에 대한 개요  (0) 2010.04.11
Meta-Object System  (0) 2009.05.05
Intruduction  (0) 2009.05.04

WRITTEN BY
RootFriend
개인적으로... 나쁜 기억력에 도움되라고 만들게되었습니다.

,