473,241 Members | 1,665 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,241 software developers and data experts.

enum lookup tables

A C++ facility to make the use of lookup tables indexed by enum values
more maintainable. It uses (gasp) macros.

http://www.geocities.com/wkaras/itemlist.html

Jul 8 '06 #1
3 3319
wkaras wrote:
A C++ facility to make the use of lookup tables indexed by enum values
more maintainable.
http://www.geocities.com/wkaras/itemlist.html
How does it compare to this?

http://www.codeproject.com/macro/metamacros.asp
It uses (gasp) macros.
Real programmers use macros.

Specifically, real programmers use them for these three things, which
nothing else can do:

- token pasting
- stringerization
- conditional compilation

I apologize for all the Scott Meyers wannabes whose knees jerk when they
see them...

--
Phlip
Jul 8 '06 #2

Phlip wrote:
wkaras wrote:
A C++ facility to make the use of lookup tables indexed by enum values
more maintainable.
http://www.geocities.com/wkaras/itemlist.html

How does it compare to this?

http://www.codeproject.com/macro/metamacros.asp
....

I would say that I'm applying the technique that you're refering to.

Jul 9 '06 #3

Phlip wrote:
wkaras wrote:
A C++ facility to make the use of lookup tables indexed by enum values
more maintainable.
http://www.geocities.com/wkaras/itemlist.html
Oops

http://www.geocities.com/wkaras/itemlist/itemlist.html
>
How does it compare to this?

http://www.codeproject.com/macro/metamacros.asp
It uses (gasp) macros.

Real programmers use macros.

Specifically, real programmers use them for these three things, which
nothing else can do:

- token pasting
- stringerization
- conditional compilation

I apologize for all the Scott Meyers wannabes whose knees jerk when they
see them...

--
Phlip
Jul 11 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: s o | last post by:
Hi, I'm creating a xml schema for my existing database. I've about a dozen lookup tables, such as States, Unit of Measures, etc. I figured the most logical way to represent them is to create...
1
by: boonkit | last post by:
For instance, there is one column has values 'New', 'Maintenance', 'Renovation', 'Not Specified', and which options below is better in term of performance? option 1. set the column to tinyint...
2
by: CoreyWhite | last post by:
The future of computer architecture will use lookup tables. Currently computer processor speed outweighs the benefits of using computer memory for lookup tables, except in some cases. As computer...
1
by: herbert | last post by:
How can I get the minimum value, maximum value, the number of items in an enum and a random value from an enum? I intend to use an enum as a lookup table for randomly selected colours. Or is enum...
9
by: Koen | last post by:
Hi all, My application uses a lot of lookup tables. I've splitted the frontend (forms, reports, etc) from the backend (data). The database has around 10 different users. The values in the...
3
by: my-wings | last post by:
I've been reading about how evil Lookup fields in tables are, but I've got to be missing something really basic. I know this subject has been covered before, because I've just spent an hour or two...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
2
by: awebguynow | last post by:
After reading that enum column is very efficient, I'm determined to use it where I can. Does anyone have WebApp experiences, that make life easier. I can see applications for US states, phone...
3
by: John Wright | last post by:
I have an enum based on a lookup table in my database. However, when a new item is added to the lookup table or one is removed, I have to modify the enum to match. Is there a way to dynamically...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.