121 manager_t* managerPtr,
long carId,
long numCar,
long price);
151 manager_t* managerPtr,
long roomId,
long numRoom,
long price);
181 manager_t* managerPtr,
long flightId,
long numSeat,
long price);
323 manager_t* managerPtr,
long customerId,
long carId);
335 manager_t* managerPtr,
long customerId,
long roomId);
347 manager_t* managerPtr,
long customerId,
long flightId);
359 manager_t* managerPtr,
long customerId,
long carId);
371 manager_t* managerPtr,
long customerId,
long roomId);
383 manager_t* managerPtr,
long customerId,
long flightId);
386 #define MANAGER_ADD_CAR(mgr, id, num, price) \
387 manager_addCar(TM_ARG mgr, id, num, price)
388 #define MANAGER_DELETE_CAR(mgr, id, num) \
389 manager_deleteCar(TM_ARG mgr, id, num)
390 #define MANAGER_ADD_ROOM(mgr, id, num, price) \
391 manager_addRoom(TM_ARG mgr, id, num, price)
392 #define MANAGER_DELETE_ROOM(mgr, id, num) \
393 manager_deleteRoom(TM_ARG mgr, id, num)
394 #define MANAGER_ADD_FLIGHT(mgr, id, num, price) \
395 manager_addFlight(TM_ARG mgr, id, num, price)
396 #define MANAGER_DELETE_FLIGHT(mgr, id) \
397 manager_deleteFlight(TM_ARG mgr, id)
398 #define MANAGER_ADD_CUSTOMER(mgr, id) \
399 manager_addCustomer(TM_ARG mgr, id)
400 #define MANAGER_DELETE_CUSTOMER(mgr, id) \
401 manager_deleteCustomer(TM_ARG mgr, id)
402 #define MANAGER_QUERY_CAR(mgr, id) \
403 manager_queryCar(TM_ARG mgr, id)
404 #define MANAGER_QUERY_CAR_PRICE(mgr, id) \
405 manager_queryCarPrice(TM_ARG mgr, id)
406 #define MANAGER_QUERY_ROOM(mgr, id) \
407 manager_queryRoom(TM_ARG mgr, id)
408 #define MANAGER_QUERY_ROOM_PRICE(mgr, id) \
409 manager_queryRoomPrice(TM_ARG mgr, id)
410 #define MANAGER_QUERY_FLIGHT(mgr, id) \
411 manager_queryFlight(TM_ARG mgr, id)
412 #define MANAGER_QUERY_FLIGHT_PRICE(mgr, id) \
413 manager_queryFlightPrice(TM_ARG mgr, id)
414 #define MANAGER_QUERY_CUSTOMER_BILL(mgr, id) \
415 manager_queryCustomerBill(TM_ARG mgr, id)
416 #define MANAGER_RESERVE_CAR(mgr, cust, id) \
417 manager_reserveCar(TM_ARG mgr, cust, id)
418 #define MANAGER_RESERVE_ROOM(mgr, cust, id) \
419 manager_reserveRoom(TM_ARG mgr, cust, id)
420 #define MANAGER_RESERVE_FLIGHT(mgr, cust, id) \
421 manager_reserveFlight(TM_ARG mgr, cust, id)
422 #define MANAGER_CANCEL_CAR(mgr, cust, id) \
423 manager_cancelCar(TM_ARG mgr, cust, id)
424 #define MANAGER_CANCEL_ROOM(mgr, cust, id) \
425 manager_cancelRoom(TM_ARG mgr, cust, id)
426 #define MANAGER_CANCEL_FLIGHT(mgr, cust, id) \
427 manager_cancelFlight(TM_ARG mgr, cust, id)
#define TM_CALLABLE
Definition: cxxtm.hpp:32
bool_t manager_addCustomer_seq(manager_t *managerPtr, long customerId)
Definition: manager.c:403
TM_CALLABLE bool_t manager_addRoom(TM_ARGDECL manager_t *managerPtr, long roomId, long numRoom, long price)
Definition: manager.c:291
manager_t * manager_alloc()
Definition: manager.c:116
TM_CALLABLE long manager_queryCarPrice(TM_ARGDECL manager_t *managerPtr, long carId)
Definition: manager.c:543
MAP_T * carTablePtr
Definition: manager.h:82
TM_CALLABLE bool_t manager_reserveFlight(TM_ARGDECL manager_t *managerPtr, long customerId, long flightId)
Definition: manager.c:718
bool_t manager_addRoom_seq(manager_t *managerPtr, long roomId, long numRoom, long price)
Definition: manager.c:299
int bool_t
Definition: portable_defns.h:32
#define TM_ARGDECL
Definition: tm.h:532
TM_CALLABLE bool_t manager_reserveCar(TM_ARGDECL manager_t *managerPtr, long customerId, long carId)
Definition: manager.c:682
TM_CALLABLE long manager_queryFlightPrice(TM_ARGDECL manager_t *managerPtr, long flightId)
Definition: manager.c:595
MAP_T * roomTablePtr
Definition: manager.h:83
TM_CALLABLE bool_t manager_cancelFlight(TM_ARGDECL manager_t *managerPtr, long customerId, long flightId)
Definition: manager.c:815
TM_CALLABLE long manager_queryFlight(TM_ARGDECL manager_t *managerPtr, long flightId)
Definition: manager.c:582
void manager_free(manager_t *managerPtr)
Definition: manager.c:154
TM_CALLABLE bool_t manager_addFlight(TM_ARGDECL manager_t *managerPtr, long flightId, long numSeat, long price)
Definition: manager.c:331
TM_CALLABLE bool_t manager_deleteFlight(TM_ARGDECL manager_t *managerPtr, long flightId)
Definition: manager.c:354
MAP_T * flightTablePtr
Definition: manager.h:84
TM_CALLABLE long manager_queryCar(TM_ARGDECL manager_t *managerPtr, long carId)
Definition: manager.c:530
TM_CALLABLE bool_t manager_addCustomer(TM_ARGDECL manager_t *managerPtr, long customerId)
Definition: manager.c:382
bool_t manager_addFlight_seq(manager_t *managerPtr, long flightId, long numSeat, long price)
Definition: manager.c:340
TM_CALLABLE bool_t manager_deleteRoom(TM_ARGDECL manager_t *managerPtr, long roomId, long numRoom)
Definition: manager.c:316
TM_CALLABLE long manager_queryRoomPrice(TM_ARGDECL manager_t *managerPtr, long roomId)
Definition: manager.c:569
TM_CALLABLE bool_t manager_cancelCar(TM_ARGDECL manager_t *managerPtr, long customerId, long carId)
Definition: manager.c:778
TM_CALLABLE bool_t manager_reserveRoom(TM_ARGDECL manager_t *managerPtr, long customerId, long roomId)
Definition: manager.c:700
TM_CALLABLE bool_t manager_cancelRoom(TM_ARGDECL manager_t *managerPtr, long customerId, long roomId)
Definition: manager.c:796
TM_CALLABLE bool_t manager_addCar(TM_ARGDECL manager_t *managerPtr, long carId, long numCar, long price)
Definition: manager.c:252
MAP_T * customerTablePtr
Definition: manager.h:85
TM_CALLABLE long manager_queryCustomerBill(TM_ARGDECL manager_t *managerPtr, long customerId)
Definition: manager.c:608
TM_CALLABLE bool_t manager_deleteCar(TM_ARGDECL manager_t *managerPtr, long carId, long numCar)
Definition: manager.c:276
TM_CALLABLE bool_t manager_deleteCustomer(TM_ARGDECL manager_t *managerPtr, long customerId)
Definition: manager.c:429
bool_t manager_addCar_seq(manager_t *managerPtr, long carId, long numCar, long price)
Definition: manager.c:260
TM_CALLABLE long manager_queryRoom(TM_ARGDECL manager_t *managerPtr, long roomId)
Definition: manager.c:556