本文整理汇总了C++中NetStreamStorage::writeLong方法的典型用法代码示例。如果您正苦于以下问题:C++ NetStreamStorage::writeLong方法的具体用法?C++ NetStreamStorage::writeLong怎么用?C++ NetStreamStorage::writeLong使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NetStreamStorage
的用法示例。
在下文中一共展示了NetStreamStorage::writeLong方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: graphClear
void NetStreamSender::graphClear(const string & source_id, long time_id){
NetStreamStorage event = NetStreamStorage();
event.writeByte(EVENT_CLEARED);
event.writeString(source_id);
event.writeLong(time_id);
_sendEvent(event);
}
示例2: removeGraphAttribute
void NetStreamSender::removeGraphAttribute(const string & source_id, long time_id, const string & attribute){
NetStreamStorage event = NetStreamStorage();
event.writeByte(EVENT_DEL_GRAPH_ATTR);
event.writeString(source_id);
event.writeLong(time_id);
event.writeString(attribute);
_sendEvent(event);
}
示例3: stepBegins
void NetStreamSender::stepBegins(const string & source_id, long time_id, double timestamp){
NetStreamStorage event = NetStreamStorage();
event.writeByte(EVENT_STEP);
event.writeString(source_id);
event.writeLong(time_id);
event.writeDouble(timestamp);
_sendEvent(event);
}
示例4: removeEdge
void NetStreamSender::removeEdge(const string & source_id, long time_id, const string & edge_id){
NetStreamStorage event = NetStreamStorage();
event.writeByte(EVENT_DEL_EDGE);
event.writeString(source_id);
event.writeLong(time_id);
event.writeString(edge_id);
_sendEvent(event);
}
示例5: addNode
// ==================
// = Element events =
// ==================
void NetStreamSender::addNode(const string & source_id, long time_id, const string & node_id){
NetStreamStorage event = NetStreamStorage();
event.writeByte(EVENT_ADD_NODE);
event.writeString(source_id);
event.writeLong(time_id);
event.writeString(node_id);
_sendEvent(event);
}
示例6: addEdge
void NetStreamSender::addEdge(const string & source_id, long time_id, const string & edge_id, const string & from_node, const string & to_node, bool directed){
NetStreamStorage event = NetStreamStorage();
event.writeByte(EVENT_ADD_EDGE);
event.writeString(source_id);
event.writeLong(time_id);
event.writeString(edge_id);
event.writeString(from_node);
event.writeString(to_node);
event.writeByte(directed?1:0);
_sendEvent(event);
}
示例7: _encode
void NetStreamSender::_encode(NetStreamStorage & event, const vector<long> & value){
event.writeInt(value.size());
for(vector<long>::const_iterator i = value.begin(); i != value.end(); i++){
event.writeLong((*i));
}
}