본문 바로가기

Singleton Pattern (C++) 사용 목적: Single Pattern. 이 패턴 형식의 근본 목적은 정해진 개수의 객체를 사용한다는 부분에 있다. 사용 예를 들면, 클래스 자체나 그 클래스의 상속을 받은 클래스의 객체를 수없이 만들어야 하는 상황에서 객체의 숫자에 따라서 시스템의 성능을 좌우하는 경우가 있다. 무한 생성되지 않도록 막거나, 단 1개의 객체 상태로 유지해야 할 필요가 있는 경우. 이 상황에서 객체의 개수를 상위 클래스 내에서 컨트롤을 한다는 것이다. 보통 1개의 객체만을 공용으로 사용해야 하는 경우 이 패턴 형식을 쓰는 것이 가장 효율적이라고 한다. 클래스 구조: #: protected +: public BaseClass는 ChildClass1과 ChildClass2의 Parent Class이다. BaseClass에서 .. 더보기
Settings in OpenXML Settings in OpenXML Let's compare that with the OpenXML specification where the large majority are fully documented, and only a few are partially documented (none are application defined). Also note that all of these are completely optional for implementation, and even within Microsoft Office we try to move our customers toward turning many of them off (especially the application specific legacy.. 더보기
What’s up with all those “rsids”? What’s up with all those “rsids”? As many folks who worked with the 2003 wordprocessingML format have probably noticed by now, there are is a new set of attributes/elements in the Open XML wordprocessingML format that shows up all over the place. I'm talking about RSIDs. The rsid element is used to allow applications to more effectively merge two documents that have forked. It's best to use an e.. 더보기