| | |
| | | #ifndef EXTERNINTERFACE_H |
| | | #define EXTERNINTERFACE_H |
| | | |
| | | //这个类用在做SCPI命令的语法分析,会将词法匹配的结果返回给SCPI库 |
| | | #ifdef __cplusplus |
| | | extern "C" |
| | |
| | | { |
| | | CSegment* segments; |
| | | int segments_count; |
| | | char* commandData; |
| | | |
| | | } CPatternResult; |
| | | |
| | | static CPatternResult *GetInstance(); |
| | | |
| | | int match_segments_global(const char* input, int pattern_index); |
| | | void parse_pattern_global(const char* pattern); |
| | | int get_pattern_count(); |
| | | void clear_global_patterns(); |
| | | void clearCurrentGroup(); |
| | | void setCurrentIndex(int index); |
| | | |
| | | char* currentPattern(); |
| | | |
| | | #ifdef __cplusplus |
| | | } |