Ejemplo n.º 1
0
queries::records::AnswerConfiguration queries::records::AnswerConfigurationPacked::convert() const{
   return AnswerConfiguration(
      getQid(),
      getScopeid(),
      getCard()
   );
}
Ejemplo n.º 2
0
void queries::records::AnswerConfigurationPacked::toString (std::ostream& out) const {
   out << "("; 
   out << "qid:" << getQid();
   out << ",";
   out << "scopeid:" << getScopeid();
   out << ",";
   out << "card:" << getCard();
   out <<  ")";
}
Ejemplo n.º 3
0
/*------------------------------------------------------------------------------
------------------------------------------------------------------------------*/
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 **/