CEBL  2.1
Public Member Functions
ChannelsConfig Class Reference

#include <ChannelsConfig.hpp>

Public Member Functions

 ChannelsConfig (CEBLModel *model)
 ~ChannelsConfig ()
string getCurrentFilename ()
string getElectrodeName (int)
bool getElectrodeReference (int)
bool getElectrodeEnabled (int)
int getMaxNumChannels ()
std::vector< string > getEnabledNames ()
int getNumEnabled ()
string getConfigurationString ()
void loadFile (string filename)
void saveFile (string filename)
void setElectrodeName (int electrode, string name)
void setElectrodeReference (int electrode, bool enabled)
void setElectrodeEnabled (int electrode, bool enabled)
void setConfigurationFromString (string config)
vector< bool > getEnabledMask ()

Detailed Description

Author:
Jeshua Bratman

Channel configuration for CEBL. Contains setting for each electrode, and allows saving and loading of these settings.

Definition at line 32 of file ChannelsConfig.hpp.


Constructor & Destructor Documentation

ChannelsConfig::ChannelsConfig ( CEBLModel model)
ChannelsConfig::~ChannelsConfig ( )

Definition at line 32 of file ChannelsConfig.cpp.


Member Function Documentation

string ChannelsConfig::getConfigurationString ( )

Definition at line 90 of file ChannelsConfig.cpp.

Referenced by CEBLModel::channelsGetConfigurationString().

string ChannelsConfig::getCurrentFilename ( )

Definition at line 43 of file ChannelsConfig.cpp.

Referenced by CEBLModel::channelsGetConfigFilename().

bool ChannelsConfig::getElectrodeEnabled ( int  electrode)

Definition at line 53 of file ChannelsConfig.cpp.

Referenced by CEBLModel::channelsGetElectrodeEnabled().

string ChannelsConfig::getElectrodeName ( int  electrode)

Definition at line 48 of file ChannelsConfig.cpp.

Referenced by CEBLModel::channelsGetElectrodeName().

bool ChannelsConfig::getElectrodeReference ( int  electrode)

Definition at line 58 of file ChannelsConfig.cpp.

Referenced by CEBLModel::channelsGetElectrodeReference().

vector<bool> ChannelsConfig::getEnabledMask ( )
inline

Returns vector of flags corrosponding to each channel indicating whether they are enabled or not.

Returns:
vector of enabled flags

Definition at line 89 of file ChannelsConfig.hpp.

std::vector< string > ChannelsConfig::getEnabledNames ( )

Definition at line 79 of file ChannelsConfig.cpp.

Referenced by CEBLModel::channelsGetEnabledNames().

int ChannelsConfig::getMaxNumChannels ( )

Definition at line 63 of file ChannelsConfig.cpp.

Referenced by CEBLModel::channelsGetMaxNumChannels().

int ChannelsConfig::getNumEnabled ( )

Definition at line 68 of file ChannelsConfig.cpp.

References cppR::count().

Referenced by CEBLModel::channelsGetNumEnabledChannels().

void ChannelsConfig::loadFile ( string  filename)

Definition at line 137 of file ChannelsConfig.cpp.

Referenced by CEBLModel::channelsLoadFile().

void ChannelsConfig::saveFile ( string  filename)

Definition at line 262 of file ChannelsConfig.cpp.

Referenced by CEBLModel::channelsSaveFile().

void ChannelsConfig::setConfigurationFromString ( string  config)

Definition at line 121 of file ChannelsConfig.cpp.

Referenced by CEBLModel::channelsSetConfigurationFromString().

void ChannelsConfig::setElectrodeEnabled ( int  electrode,
bool  enabled 
)

Definition at line 116 of file ChannelsConfig.cpp.

Referenced by CEBLModel::channelsSetElectrodeEnabled().

void ChannelsConfig::setElectrodeName ( int  electrode,
string  name 
)

Definition at line 106 of file ChannelsConfig.cpp.

Referenced by CEBLModel::channelsSetElectrodeName().

void ChannelsConfig::setElectrodeReference ( int  electrode,
bool  enabled 
)

Definition at line 111 of file ChannelsConfig.cpp.

Referenced by CEBLModel::channelsSetElectrodeReference().


The documentation for this class was generated from the following files: