C++ code for EventShop Operators