#include <sstream>
#include <iostream>
#include <errlog.h>
#include <epicsMutex.h>
#include <epicsGuard.h>
#include <epicsExport.h>
#include "mrf/object.h"
#include <iocsh.h>
Go to the source code of this file.
|
typedef std::map< const std::string, Object * > | objects_t |
|
typedef std::map< const std::string, Object::create_factory_t > | factories_t |
|
◆ factories_t
typedef std::map<const std::string, Object::create_factory_t> factories_t |
◆ objects_t
◆ dol()
void dol |
( |
int |
lvl, |
|
|
const char * |
obj |
|
) |
| |
Definition at line 199 of file object.cpp.
203 epicsGuard<epicsMutex> g(*objectsLock);
205 std::cout <<objects->size() <<
" Device Objects\n";
208 for(objects_t::const_iterator it=objects->begin();
209 it!=objects->end(); ++it)
211 if(it->second->parent())
213 showObject(std::cout, *it->second,
"", 0, lvl+1,
false);
217 objects_t::const_iterator it=objects->find(obj);
218 if(it==objects->end()) {
219 std::cout<<
"Object '"<<obj<<
"' does not exist\n";
222 showObject(std::cout, *it->second,
"", 0, lvl+1,
false);
224 }
catch(std::exception& e){
225 epicsPrintf(
"Error: %s\n", e.what());
◆ dor()
void dor |
( |
int |
lvl, |
|
|
const char * |
obj |
|
) |
| |
Definition at line 230 of file object.cpp.
234 epicsGuard<epicsMutex> g(*objectsLock);
236 std::cout <<objects->size() <<
" Device Objects\n";
239 for(objects_t::const_iterator it=objects->begin();
240 it!=objects->end(); ++it)
242 if(it->second->parent())
244 showObject(std::cout, *it->second,
"", 0, lvl+1,
true);
248 objects_t::const_iterator it=objects->find(obj);
249 if(it==objects->end()) {
250 std::cout<<
"Object '"<<obj<<
"' does not exist\n";
253 showObject(std::cout, *it->second,
"", 0, lvl+1,
true);
255 }
catch(std::exception& e){
256 epicsPrintf(
"Error: %s\n", e.what());
◆ epicsExportRegistrar()
epicsExportRegistrar |
( |
objectsreg |
| ) |
|