Beispiel #1
0
void ds2406Menu( LOW_network &inNet)
{
  bool keepLooping = true;
  while ( keepLooping) {
    hlp_printDashline();
    printf( "PIO DS2406 device menu\n");
    printf( "\n");
    printf( "  <g> Get DS2406 devices\n");
    printf( "  <s> Search all DS2406 devices\n");
    printf( "  <a> Search alarming DS2406 devices\n");
    printf( "\n");
    printf( "  <c> Get search conditions of DS2406 devices\n");
    printf( "  <v> Set search conditions of DS2406 devices\n");
    printf( "  <i>      Get channel info of DS2406 devices\n");
    printf( "  <l> Loop get channel info of DS2406 devices\n");
    printf( "  <r> Reset latches of DS2406 devices\n");
    printf( "\n");
    printf( "  <q> Back to main menu\n");

    int key = hlp_getMenuKey( "gsacvilrq");

    LOW_devDS2406::devDS2406PtrVec_t allPDevs = inNet.getDevices<LOW_devDS2406>();

    try {
      switch( key ) {
        case 'g': hlp_getDevices<LOW_devDS2406>( inNet);                           break;
        case 's': hlp_searchDevices<LOW_devDS2406>( inNet, false);                 break;
        case 'a': hlp_searchDevices<LOW_devDS2406>( inNet, true);                  break;
        case 'i': getChannelInfo( hlp_selectDevices( allPDevs), false);            break;
        case 'c': getSearchCondition( hlp_selectDevices( allPDevs));               break;
        //case 'v': setSearchCondition( hlp_selectDevices( allPDevs));               break;
        case 'l': getChannelInfo( hlp_selectDevices( allPDevs), true);             break;
        case 'r': resetLatches( hlp_selectDevices( allPDevs));                     break;
        case 'q': keepLooping=false;                                               break;
      }
    }
    catch( LOW_exception ex) {
      ex.logException();
    }
  }
}
void ywslcx_ScrollArea::init()
{
    reset();
    getSearchCondition();
    refresh();
}
void ydxh_ScrollArea::init()
{
    reset();
    getSearchCondition();
    refresh(initPageSize,1);
}
NABoolean
ElemDDLConstraintCheck::getColumnsNotNull(ItemExprList &il)
{
  return getSearchCondition()->getColumnsIfThisIsISNOTNULL(il);
}
// This method should be:				####
//   ElemDDLConstraintNotNull * 
//   ElemDDLConstraintCheck::castToElemDDLConstraintNotNull()
// and
//   class ElemDDLConstraintNotNull shd be derived from ElemDDLConstraintCheck
//
NABoolean
ElemDDLConstraintCheck::isConstraintNotNull() const
{
  return getSearchCondition()->isISNOTNULL();
}