src/Generic/icews/ICEWSOutputWriter.cpp
/** Add the cell values that are used to store a given participant
	(source or target).  Include the leading comma.  */
Add the cell values that are used to store a given participant
(source or target).  Include the leading comma.
Add the cell values that are used to store a given participant ( source or target ) . Include the leading comma .
void ICEWSOutputWriter::addClassicParticipantIdsToQuery(ActorMention_ptr actor, const char* role, std::ostringstream &query) {
	query << ",";
	if (ProperNounActorMention_ptr pm = boost::dynamic_pointer_cast<ProperNounActorMention>(actor)) {
		query << pm->getActorId() << ", " << pm->getActorPatternId() 
			  << ", NULL, NULL, NULL, NULL";
	} else if (CompositeActorMention_ptr cm = boost::dynamic_pointer_cast<CompositeActorMention>(actor)) {
		query << "NULL, NULL, " << cm->getPairedActorId() << ", " << cm->getPairedAgentId() << ", "
			  << cm->getPairedActorPatternId() << ", " << cm->getPairedAgentPatternId();
	} else {
		query << "NULL, NULL, NULL, NULL, NULL, NULL";
	}
}
void ICEWSOutputWriter :: addClassicParticipantIdsToQuery ( ActorMention_ptr actor , const char * role , std :: ostringstream & query ) { query << " " ; if ( ProperNounActorMention_ptr pm = boost :: dynamic_pointer_cast < ProperNounActorMention > ( actor ) ) { query << pm -> getActorId ( ) << " " << pm -> getActorPatternId ( ) << " " ; } else if ( CompositeActorMention_ptr cm = boost :: dynamic_pointer_cast < CompositeActorMention > ( actor ) ) { query << " " << cm -> getPairedActorId ( ) << " " << cm -> getPairedAgentId ( ) << " " << cm -> getPairedActorPatternId ( ) << " " << cm -> getPairedAgentPatternId ( ) ; } else { query << " " ; } }
Add the cell values that are used to store a given participant
(source or target).
Add the cell values that are used to store a given participant ( source or target ) .