queries::records::AnswerConfiguration queries::records::AnswerConfigurationPacked::convert() const{ return AnswerConfiguration( getQid(), getScopeid(), getCard() ); }
void queries::records::AnswerConfigurationPacked::toString (std::ostream& out) const { out << "("; out << "qid:" << getQid(); out << ","; out << "scopeid:" << getScopeid(); out << ","; out << "card:" << getCard(); out << ")"; }
/*------------------------------------------------------------------------------ ------------------------------------------------------------------------------*/ int main (int ac, char *av[]) { TrcLibSetPrintMsgType txMsg; char appName[32]; int qid; memset ((void*)&txMsg, 0, sizeof(TrcLibSetPrintMsgType)); getArgs (ac, av, &txMsg, appName); txMsg.mtype = MTYPE_SETPRINT; strcpy (txMsg.trcDeviceName, (char*)ttyname(0)); if ((qid = getQid(appName)) < 0) return -1; if (msgsnd(qid, &txMsg, sizeof(TrcLibSetPrintMsgType)) < 0) { printf(" msgsnd fail; err=%d(%s)\n", errno, strerror(errno)); return -1; } return 0; } /** End of main **/