![]() |
Dynamixel
2.9.5
RoadNarrows Robotics Dynamixel Package
|
Dynamixel shell utilities. More...
#include <stdio.h>
#include <cstring>
#include <iostream>
#include <fstream>
#include <vector>
#include "rnr/rnrconfig.h"
#include "rnr/opts.h"
#include "rnr/log.h"
#include "Dynamixel/Dynamixel.h"
#include "Dynamixel/DynaComm.h"
#include "Dynamixel/DynaChain.h"
Go to the source code of this file.
Macros | |
#define | NEWSTR(s) newstr(s) |
Allocate a new duplicated string convenience macro. More... | |
#define | DELSTR(s) do { if( s != NULL ) { delstr(s); s = NULL; } } while(0) |
Delete an allocated string convenience macro. More... | |
#define | DELOBJ(p) do { if( p != NULL ) { delete p; p = NULL; } } while(0) |
Delete an allocated object convenience macro. More... | |
Functions | |
char * | newstr (const char *s) |
Allocate a new duplicated string utility. More... | |
void | delstr (const char *s) |
A safer string delete utility. More... | |
Dynamixel shell utilities.
Definition in file dynashell_util.h.
#define DELOBJ | ( | p | ) | do { if( p != NULL ) { delete p; p = NULL; } } while(0) |
Delete an allocated object convenience macro.
The value p is set to NULL after deletion.
p | Pointer to the object to delete. |
Definition at line 100 of file dynashell_util.h.
Referenced by DynaShellCmdDestroy::Exec(), DynaRecording::SetDate(), and DynaRecording::~DynaRecording().
#define DELSTR | ( | s | ) | do { if( s != NULL ) { delstr(s); s = NULL; } } while(0) |
Delete an allocated string convenience macro.
The value s is set to NULL after deletion.
s | Pointer to the string to delete. |
Definition at line 91 of file dynashell_util.h.
Referenced by ShScript::~ShScript().
#define NEWSTR | ( | s | ) | newstr(s) |
Allocate a new duplicated string convenience macro.
s | The null-terminated string to duplicate. |
Definition at line 82 of file dynashell_util.h.
Referenced by ShScript::ShScript().
|
inline |
A safer string delete utility.
s | String to delete. |
Definition at line 135 of file dynashell_util.h.
|
inline |
Allocate a new duplicated string utility.
s | String to duplicate. |
Definition at line 115 of file dynashell_util.h.