#include <MessageManager.h>
|
| void | AddGetModuleParamsNode (const char *module_,...) |
| |
| void | AddGetPathParamsNode (const char *lib_, const char *path_,...) |
| |
| void | AddMarksNode (int brick_, int plate_, const char *mapext_) |
| |
| void | AddSetModuleParamsNode (const char *module_,...) |
| |
| void | AddSetPathParamsNode (const char *lib_, const char *path_,...) |
| |
| void | AddStartNode (const char *lib_, const char *path_, const char *comment_) |
| |
| void | AddStopNode () |
| |
| void | Clean () |
| |
| void | CreateMessage () |
| |
| void | FillBuff () |
| |
| void | FillBuffOuter (uint8 *buf_, uint32 size_) |
| |
| uint8 * | GetBuf () |
| |
| uint32 | GetBufSize () |
| |
| | MessageManager () |
| |
◆ MessageManager()
| MessageManager::MessageManager |
( |
| ) |
|
|
inline |
uint32 m_messId
Definition: MessageManager.h:50
TiXmlDocument m_xmlDoc
Definition: MessageManager.h:51
◆ AddGetModuleParamsNode()
| void MessageManager::AddGetModuleParamsNode |
( |
const char * |
module_, |
|
|
|
... |
|
) |
| |
44 gmp.SetAttribute(
"module", module_);
48 va_start(args, module_);
49 while((var = va_arg(args,
char *)) !=
NULL){
51 gmp.InsertEndChild(vare);
#define PAVPROT_NODE_GMP
Definition: PAVProtocolDef.h:52
TiXmlElement * m_xmlDocAddPtr
Definition: MessageManager.h:52
Definition: tinyxml.h:941
TiXmlNode * InsertEndChild(const TiXmlNode &addThis)
Definition: tinyxml.cpp:214
#define NULL
Definition: nidaqmx.h:84
◆ AddGetPathParamsNode()
| void MessageManager::AddGetPathParamsNode |
( |
const char * |
lib_, |
|
|
const char * |
path_, |
|
|
|
... |
|
) |
| |
83 gpp.SetAttribute(
"lib", lib_);
84 gpp.SetAttribute(
"path", path_);
88 va_start(args, path_);
89 var = va_arg(args,
char *);
92 gpp.InsertEndChild(vare);
93 var = va_arg(args,
char *);
#define PAVPROT_NODE_GPP
Definition: PAVProtocolDef.h:54
◆ AddMarksNode()
| void MessageManager::AddMarksNode |
( |
int |
brick_, |
|
|
int |
plate_, |
|
|
const char * |
mapext_ |
|
) |
| |
36 marks.SetAttribute(
"brick", brick_);
37 marks.SetAttribute(
"plate", plate_);
38 marks.SetAttribute(
"mapext", mapext_);
#define PAVPROT_NODE_MARKS
Definition: PAVProtocolDef.h:55
◆ AddSetModuleParamsNode()
| void MessageManager::AddSetModuleParamsNode |
( |
const char * |
module_, |
|
|
|
... |
|
) |
| |
60 smp.SetAttribute(
"module", module_);
64 va_start(args, module_);
65 while((var = va_arg(args,
char *)) !=
NULL){
66 val = va_arg(args,
char *);
69 vare.SetAttribute(
"val", val);
70 smp.InsertEndChild(vare);
72 printf(
"Value is not provided for parameter <%s> in module <%s>\n", var, module_);
#define PAVPROT_NODE_SMP
Definition: PAVProtocolDef.h:51
◆ AddSetPathParamsNode()
| void MessageManager::AddSetPathParamsNode |
( |
const char * |
lib_, |
|
|
const char * |
path_, |
|
|
|
... |
|
) |
| |
102 spp.SetAttribute(
"lib", lib_);
103 spp.SetAttribute(
"path", path_);
107 va_start(args, path_);
108 while((var = va_arg(args,
char *)) !=
NULL){
109 val = va_arg(args,
char *);
112 vare.SetAttribute(
"val", val);
113 spp.InsertEndChild(vare);
115 printf(
"Value is not provided for parameter <%s> in lib <%s>, path <%s>\n", var, lib_, path_);
#define PAVPROT_NODE_SPP
Definition: PAVProtocolDef.h:53
◆ AddStartNode()
| void MessageManager::AddStartNode |
( |
const char * |
lib_, |
|
|
const char * |
path_, |
|
|
const char * |
comment_ |
|
) |
| |
27 start.SetAttribute(
"lib", lib_);
28 start.SetAttribute(
"path", path_);
30 start.InsertEndChild(comment);
#define PAVPROT_NODE_START
Definition: PAVProtocolDef.h:56
Definition: tinyxml.h:1213
◆ AddStopNode()
| void MessageManager::AddStopNode |
( |
| ) |
|
stop
===========================================================================
Definition: CreateParaset_GS_Alg.C:54
#define PAVPROT_NODE_STOP
Definition: PAVProtocolDef.h:57
◆ Clean()
| void MessageManager::Clean |
( |
| ) |
|
std::string m_xml
Definition: MessageManager.h:45
void Clear()
Delete all the children of this node. Does not affect 'this'.
Definition: tinyxml.cpp:169
◆ CreateMessage()
| void MessageManager::CreateMessage |
( |
| ) |
|
#define PAVPROT_NODE_MESS
Definition: PAVProtocolDef.h:58
#define PAVPROT_NODE_ROOT
Definition: PAVProtocolDef.h:50
#define PAVCLIENTVERSION
Definition: PAVProtocol.h:7
void Clean()
Definition: MessageManager.cpp:4
virtual const TiXmlElement * ToElement() const
Cast to a more defined type. Will return null if not of the requested type.
Definition: tinyxml.h:698
int main(int argc, char *argv[])
Definition: check_cp.C:436
◆ FillBuff()
| void MessageManager::FillBuff |
( |
| ) |
|
127 printf(
"%s\n", printer.
CStr());
std::vector< uint8 > m_messBuf
Definition: MessageManager.h:49
virtual bool WriteMessage(std::vector< uint8 > &buf_, const void *srcbuf_, uint32 srcsize_)
Definition: PAVProtocol.cpp:61
virtual bool Accept(TiXmlVisitor *content) const
Definition: tinyxml.cpp:1156
Definition: tinyxml.h:1738
const char * CStr()
Return the result.
Definition: tinyxml.h:1775
◆ FillBuffOuter()
◆ GetBuf()
| uint8* MessageManager::GetBuf |
( |
| ) |
|
|
inline |
◆ GetBufSize()
| uint32 MessageManager::GetBufSize |
( |
| ) |
|
|
inline |
◆ m_messBuf
| std::vector<uint8> MessageManager::m_messBuf |
|
private |
◆ m_messId
| uint32 MessageManager::m_messId |
|
private |
◆ m_xml
| std::string MessageManager::m_xml |
|
private |
◆ m_xmlDoc
◆ m_xmlDocAddPtr
The documentation for this class was generated from the following files: