Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/core3/src/util/CMakeLists.txt @ 1929

Last change on this file since 1929 was 1716, checked in by landauf, 16 years ago

Added new 'MultiType', replacing MultiTypePrimitive, MultiTypeString and MultiTypeMath. MultiType can hold all types MultiTypeMath was able to hold, namely all primitives, pointers, string and several math objects (vector2, 3 and 4, quaternion, colourvalue, radian, degree).

The new MultiType has a completely changed behaviour, I'll explain this on a wiki page somewhen.
But to say the most important things in a few words:
The MultiType has a fixed type. This type is determined by the first assigned value (by using setValue(value), operator=(value) or MultiType(value)). Every other value getting assigned later, will be converted to the first type. But you can change the type (setType<T>()), convert the value (convert<T>()) or force the type of a newly assigned value manually (setValue<T>(value)) by using template functions.

In contrast, the old MultiTypeMath changed it's internal type whenever a new type was assigned. So be aware of this important change.

At the moment I can't see any issues, but there might very well be several problems yet to discover, so further tests will be done.

  • Property svn:eol-style set to native
File size: 352 bytes
Line 
1SET(UTIL_SRC_FILES
2  ArgReader.cc
3  Clipboard.cc
4  Error.cc
5  ExprParser.cc
6  Math.cc
7  MultiType.cc
8  OutputBuffer.cc
9  OutputHandler.cc
10  String.cc
11  SubString.cc
12)
13
14ADD_LIBRARY(util SHARED ${UTIL_SRC_FILES})
15
16IF(TESTING_ENABLED)
17  ADD_SUBDIRECTORY(testing)
18ENDIF(TESTING_ENABLED)
19
20TARGET_LINK_LIBRARIES(util
21  ${OGRE_LIBRARIES}
22  ${Lua_LIBRARIES}
23)
Note: See TracBrowser for help on using the repository browser.