本文整理汇总了C++中ObjectHandle::Set方法的典型用法代码示例。如果您正苦于以下问题:C++ ObjectHandle::Set方法的具体用法?C++ ObjectHandle::Set怎么用?C++ ObjectHandle::Set使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ObjectHandle
的用法示例。
在下文中一共展示了ObjectHandle::Set方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void
init_constants(ObjectHandle exports) {
Handle<Object> constants = Object::New();
exports->Set(String::NewSymbol("constants"), constants);
DEFINE_CONSTANT(constants, DBUS_BUS_SESSION);
DEFINE_CONSTANT(constants, DBUS_BUS_SYSTEM);
DEFINE_CONSTANT(constants, DBUS_BUS_STARTER);
DEFINE_CONSTANT(constants, DBUS_WATCH_READABLE);
DEFINE_CONSTANT(constants, DBUS_WATCH_WRITABLE);
DEFINE_CONSTANT(constants, DBUS_WATCH_ERROR);
DEFINE_CONSTANT(constants, DBUS_WATCH_HANGUP);
DEFINE_CONSTANT(constants, DBUS_MESSAGE_TYPE_INVALID);
DEFINE_CONSTANT(constants, DBUS_MESSAGE_TYPE_METHOD_CALL);
DEFINE_CONSTANT(constants, DBUS_MESSAGE_TYPE_METHOD_RETURN);
DEFINE_CONSTANT(constants, DBUS_MESSAGE_TYPE_ERROR);
DEFINE_CONSTANT(constants, DBUS_MESSAGE_TYPE_SIGNAL);
DEFINE_CONSTANT(constants, DBUS_SERVICE_DBUS);
DEFINE_CONSTANT(constants, DBUS_PATH_DBUS);
DEFINE_CONSTANT(constants, DBUS_INTERFACE_DBUS);
DEFINE_CONSTANT(constants, DBUS_INTERFACE_INTROSPECTABLE);
DEFINE_CONSTANT(constants, DBUS_INTERFACE_PROPERTIES);
DEFINE_CONSTANT(constants, DBUS_INTERFACE_PEER);
DEFINE_CONSTANT(constants, DBUS_DISPATCH_DATA_REMAINS);
DEFINE_CONSTANT(constants, DBUS_DISPATCH_COMPLETE);
DEFINE_CONSTANT(constants, DBUS_DISPATCH_NEED_MEMORY);
}