Book a Demo

Author Topic: C++ typedef  (Read 3663 times)

flyingrobots

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
C++ typedef
« on: August 26, 2002, 11:12:03 am »
Hi,

I am working on making a model of a subsystem that I will soon be coding.  One of the datatypes that I am using for parameters to various members is a function pointer:

int (*ipc_msg_handler)(int rcvid, ipc_msg &msg)

Instead of using this wordy datatype everywhere, I'd like to use "ipc_msg_handler".  How do I model this?  Do I create a new datatype for C++, or do I create a stereotyped class?

Thanks
Kevin