Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Wasabi Development (http://forums.winamp.com/forumdisplay.php?f=122)
-   -   enum usage question (http://forums.winamp.com/showthread.php?t=113474)

moveek 9th November 2002 17:58

enum usage question
 
Hi everybody, this is my first post :) I have a question that someone here can probably answer pretty easily. Here it is:
I was looking at some of the Wasabi 3 SDK documentation, and I see that enumeration is used quite a lot. In a couple places I see enumerations that appear to assign a string to a value being enumerated. An example I came across in attribute.h:

namespace AttributeType {
enum {
NONE = 0,
INT = 'int',
STRING = 'str',
BOOL = 'bool',
FLOAT = 'flot',
};
};

I understand the enumeration of NONE = 0, but what is happening with
the other ones like INT = 'int'? I don't understand how this is used. I'd appreciate/love you for any explanations of this syntax...I searched around on the web (including the MSDN library), but I don't see this explained anywhere. Thanks in advance for any responses :D

Brennan 11th November 2002 23:16

code:

'abcd' == ('a'<<24)|('b'<<16)|('c'<<8)|('d')




--Brennan


All times are GMT. The time now is 07:18.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.