当前位置: 首页>>代码示例>>C++>>正文


C++ ComponentInfo类代码示例

本文整理汇总了C++中ComponentInfo的典型用法代码示例。如果您正苦于以下问题:C++ ComponentInfo类的具体用法?C++ ComponentInfo怎么用?C++ ComponentInfo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ComponentInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: describeComponent

void RunAction::describeComponent(ComponentInfo &info) {
    Action::describeComponent(info);
    
    info.setSignature("action/blackrock_led_driver_run");
    
    info.addParameter(DURATION);
}
开发者ID:dicarlolab-mworks,项目名称:BlackrockLEDDriver,代码行数:7,代码来源:BlackrockLEDDriverRunAction.cpp

示例2: describeComponent

void NIDAQDigitalChannel::describeComponent(ComponentInfo &info) {
    Component::describeComponent(info);
    info.addParameter(PORT_NUMBER, true, "0");
    info.addParameter(NUM_LINES_IN_PORT, true, "8");
    for (std::size_t i = 0; i < maxNumLines; i++) {
        info.addParameter(getLineParameterName(i), false);
    }
}
开发者ID:dicarlolab-mworks,项目名称:NIDAQ,代码行数:8,代码来源:NIDAQDigitalChannel.cpp

示例3: describeComponent

void OpenEphysNetworkEventsClient::describeComponent(ComponentInfo &info) {
    OpenEphysBase::describeComponent(info);
    
    info.setSignature("iodevice/open_ephys_network_events_client");
    
    info.addParameter(REQUEST);
    info.addParameter(RESPONSE);
}
开发者ID:dicarlolab-mworks,项目名称:OpenEphys,代码行数:8,代码来源:OpenEphysNetworkEventsClient.cpp

示例4: describeComponent

void ScheduledActions::describeComponent(ComponentInfo &info) {
    Action::describeComponent(info);

    info.setSignature("action/schedule");

    info.addParameter(DELAY);
    info.addParameter(DURATION);
    info.addParameter(REPEATS);
    info.addParameter(CANCEL, "NO");
}
开发者ID:mworks,项目名称:mworks,代码行数:10,代码来源:ScheduledActions.cpp

示例5: gnc_close_gui_component

void
gnc_close_gui_component (gint component_id)
{
    ComponentInfo *ci;

    ci = find_component (component_id);
    if (!ci)
    {
        PERR ("component not found");
        return;
    }

    if (!ci->close_handler)
        return;

    if (ci->close_handler)
        ci->close_handler (ci->user_data);
}
开发者ID:814ckf0x,项目名称:gnucash,代码行数:18,代码来源:gnc-component-manager.c

示例6: describeComponent

void NIDAQDevice::describeComponent(ComponentInfo &info) {
    IODevice::describeComponent(info);
    
    info.setSignature("iodevice/nidaq");
    
    info.addParameter(NAME, true, "Dev1");
    info.addParameter(UPDATE_INTERVAL, true, "3ms");
    info.addParameter(ANALOG_INPUT_DATA_INTERVAL, true, "1ms");
    info.addParameter(ANALOG_OUTPUT_DATA_INTERVAL, true, "1ms");
    info.addParameter(ANALOG_READ_TIMEOUT, false, "3ms");
    info.addParameter(ANALOG_OUTPUT_ENABLED, "YES");
    info.addParameter(ASSUME_MULTIPLEXED_ADC, "YES");
}
开发者ID:dicarlolab-mworks,项目名称:NIDAQ,代码行数:13,代码来源:NIDAQDevice.cpp

示例7: describeComponent

void NIDAQAnalogOutputVoltageWaveformChannel::describeComponent(ComponentInfo &info) {
    NIDAQAnalogChannel::describeComponent(info);
    info.setSignature("iochannel/nidaq_analog_output_voltage_waveform");
    info.addParameter(WAVEFORM);
    info.addParameter(PERIOD);
    info.addParameter(OFFSET, "0ms");
    info.addParameter(AMPLITUDE, false);
    info.addParameter(MEAN, false);
}
开发者ID:dicarlolab-mworks,项目名称:NIDAQ,代码行数:9,代码来源:NIDAQAnalogOutputVoltageWaveformChannel.cpp

示例8: describeComponent

void DisplayBitCodeStimulus::describeComponent(ComponentInfo& info){
    BasicTransformStimulus::describeComponent(info);
    info.setSignature("stimulus/display_bit_code");
    info.addParameter(CODE_VARIABLE);
    info.addParameter(N_MARKERS);
    info.addParameter(SEPARATION);
    info.addParameter(BG_LUMINANCE);
    info.addParameter(FG_LUMINANCE);
    info.addParameter(CLOCK_OFFSET);
}
开发者ID:coxlab,项目名称:coxlab_mwcore_plugins,代码行数:10,代码来源:DisplayBitCodeStimulus.cpp

示例9:

void EyeStatusMonitorVer1::describeComponent(ComponentInfo &info) {
    EyeStatusMonitor::describeComponent(info);
    
    info.setSignature("filter/basic_eye_monitor");
    
    info.addParameter(EYEH_CALIBRATED);
    info.addParameter(EYEV_CALIBRATED);
    info.addParameter(EYE_STATE);
    info.addParameter(EYE_VELOCITY_H, false);
    info.addParameter(EYE_VELOCITY_V, false);
    info.addParameter(WIDTH_SAMPLES);
    info.addParameter(SACCADE_ENTRY_SPEED);
    info.addParameter(SACCADE_EXIT_SPEED);
}
开发者ID:benvermaercke,项目名称:mworks,代码行数:14,代码来源:EyeMonitors.cpp

示例10: SetComponentInfo

 void RegistryComponent::SetComponentInfo(const ComponentInfo &info)
 {
   std::string KeyComponentClassId = Key_ComponentClassIDs;
   KeyComponentClassId += "/";
   StringVector ClassIDs = info.GetClassIDs();
   for (StringVector::const_iterator i = ClassIDs.begin() ; i != ClassIDs.end() ; ++i)
   {
     std::string ClassId = KeyComponentClassId;
     ClassId += *i;
     Reg.CreateKey(ClassId);
     Reg.SetValue(ClassId, info.GetModuleGuid().c_str());
   }
   std::string KeyComponentInformation = Key_ComponentInformation;
   KeyComponentInformation += "/";
   KeyComponentInformation += info.GetModuleGuid();
   KeyComponentInformation += "/";
   std::string Key = KeyComponentInformation;
   Key += Key_Type;
   Reg.CreateKey(Key);
   Reg.SetValue(Key, info.GetTypeAsStr().c_str());
   Key = KeyComponentInformation;
   Key += Key_ModuleName;
   Reg.CreateKey(Key);
   Reg.SetValue(Key, info.GetModuleName().c_str());
   Key = KeyComponentInformation;
   Key += Key_Location;
   Reg.CreateKey(Key);
   Reg.SetValue(Key, info.GetLocation().c_str());
   Key = KeyComponentInformation;
   Key += Key_Description;
   Reg.CreateKey(Key);
   Reg.SetValue(Key, info.GetDescription().c_str());
   Key = KeyComponentInformation;
   Key += Key_ClassIDs;
   Reg.CreateKey(Key);
   unsigned Index = 0;
   for (StringVector::const_iterator i = ClassIDs.begin() ; i != ClassIDs.end() ; ++i)
   {
     std::stringstream Io;
     Io << Key_ClassId << Index++;
     std::string ClassIdKey = Key + "/" + Io.str();
     Reg.CreateKey(ClassIdKey);
     Reg.SetValue(ClassIdKey, static_cast<const char*>(i->c_str()));
   }
 }
开发者ID:Diego160289,项目名称:cross-fw,代码行数:45,代码来源:RegistryWrappers.cpp

示例11: describeComponent

void BaseFrameListStimulus::describeComponent(ComponentInfo &info) {
    StandardDynamicStimulus::describeComponent(info);
    info.addParameter(ENDED, false);
    info.addParameter(LOOP, "NO");
    info.addParameter(REPEATS, "0");
}
开发者ID:mworks,项目名称:mworks,代码行数:6,代码来源:BaseFrameListStimulus.cpp

示例12: describeComponent

void MovingDots::describeComponent(ComponentInfo &info) {
    StandardDynamicStimulus::describeComponent(info);
    
    info.setSignature("stimulus/moving_dots");
    info.setDisplayName("Moving Dots");
    info.setDescription("A moving dots stimulus.");

    info.addParameter(FIELD_RADIUS);
    info.addParameter(FIELD_CENTER_X, "0.0");
    info.addParameter(FIELD_CENTER_Y, "0.0");
    info.addParameter(DOT_DENSITY);
    info.addParameter(DOT_SIZE);
    info.addParameter(COLOR, "1.0,1.0,1.0");
    info.addParameter(ALPHA_MULTIPLIER, "1.0");
    info.addParameter(DIRECTION, "0.0");
    info.addParameter(SPEED);
    info.addParameter(COHERENCE, "1.0");
    info.addParameter(LIFETIME, "0.0");
    info.addParameter(ANNOUNCE_DOTS, "0");
    info.addParameter(RAND_SEED, false);
}
开发者ID:mworks,项目名称:mworks,代码行数:21,代码来源:MovingDots.cpp

示例13: describeComponent

void Eyelink::describeComponent(ComponentInfo &info) {
    IODevice::describeComponent(info);
    
    info.setSignature("iodevice/eyelink");
    info.setDisplayName("Eyelink 1k, Socket Link");
    info.setDescription(
                        "Eyelink 1000 Plugin. INSTRUCTIONS BELOW\n"
                        "REQUIRED PARAMETERS:\n"
                        "tracking_dist = The tracking range set in Eyelink configuration (Eyelink default is 1024 (pixels))\n"
                        "data_interval should not be too small (i.e. not shorter than 0.5 ms)\n"
                        "tracker_ip contains the trackers IP, check for working connection using SR-Research's 'simpleexample'\n"
                        "OUTPUT:\n"
                        "eye_x/_y/_z is the midpoint of the shortest connecting line that is orthogonal to both gaze vectors "
                        "assuming the tracker runs in binocular mode. Otherwise these values will be empty.\n"
                        "all other output parameters are specified and described in the Eyelink 1000 manual.\n"
                        );
    
    info.addParameter(RX, false);
    info.addParameter(RY, false);
    info.addParameter(LX, false);
    info.addParameter(LY, false);
    info.addParameter(EX, false);
    info.addParameter(EY, false);
    info.addParameter(EZ, false);
    info.addParameter(H_RX, false);
    info.addParameter(H_RY, false);
    info.addParameter(H_LX, false);
    info.addParameter(H_LY, false);
    info.addParameter(P_RX, false);
    info.addParameter(P_RY, false);
    info.addParameter(P_LX, false);
    info.addParameter(P_LY, false);
    info.addParameter(P_R, false);
    info.addParameter(P_L, false);
    info.addParameter(E_DIST, true, "1024");
    info.addParameter(EYE_TIME, false);
    info.addParameter(UPDATE_PERIOD, true, "1ms");
    info.addParameter(IP, true, "10.1.1.2");
}
开发者ID:pschwed,项目名称:MWorks-Eyelink-1000-Plugin,代码行数:39,代码来源:Eyelink.cpp

示例14: describeComponent

 void ServersideConduit::describeComponent(ComponentInfo& info){
     IODevice::describeComponent(info);
     info.setSignature("iodevice/serverside_conduit");
     info.addParameter(RESOURCE_NAME_PARAMETER, "server_conduit" );
 }
开发者ID:BramVerhoef,项目名称:mworks,代码行数:5,代码来源:ServersideConduit_definitions.cpp

示例15: describeComponent

void IODevice::describeComponent(ComponentInfo &info) {
    Component::describeComponent(info);
    info.addParameter(ALT, false);
}
开发者ID:BramVerhoef,项目名称:mworks,代码行数:4,代码来源:IODevice.cpp


注:本文中的ComponentInfo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。