iCub-main
embObjGeneralDevPrivData.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2018 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 
10 #ifndef __embObjDevPrivData_h__
11 #define __embObjDevPrivData_h__
12 
13 #include <string>
14 #include <yarp/os/LogStream.h>
15 #include <ethManager.h>
16 #include <abstractEthResource.h>
17 
18 
19 namespace yarp {
20  namespace dev {
21  class embObjDevPrivData;
22  }
23 }
24 
26 {
27 public:
30  struct behFlags
31  {
32  bool opened;
35  std::string deviceNameType;
36 
37  embObjDevPrivData(std::string name);
39 
41  {return res;}
42 
44  {return ethManager;}
45 
46  inline virtual bool isOpen() const {return behFlags.opened;}
47  inline void setOpen(bool flag) {behFlags.opened=flag;}
48  inline bool isVerbose() {return behFlags.verbosewhenok;}
49 
50  inline bool NOT_YET_IMPLEMENTED(const char *txt, const char *classname)
51  {
52  yWarning() << std::string(txt) << " not yet implemented for "<< std::string(classname) << "\n";
53  return false;
54  };
55 
56  std::string getBoardInfo(void) const; //This function need to be const
57 
58  bool prerareEthService(yarp::os::Searchable &config, eth::IethResource *interface);
59  void cleanup(eth::IethResource *interface);
60 
61  bool serviceSetRegulars(eOmn_serv_category_t category, vector<eOprotID32_t> &id32vector, double timeout = 0.500);
62 
63 
64 };
65 
66 
67 
68 
69 
70 
71 
72 #endif //__embObjDevPrivData_h__
eth::AbstractEthResource * getEthRes()
struct yarp::dev::embObjDevPrivData::behFlags behFlags
eth::TheEthManager * getEthManager()
bool NOT_YET_IMPLEMENTED(const char *txt, const char *classname)
bool prerareEthService(yarp::os::Searchable &config, eth::IethResource *interface)
bool serviceSetRegulars(eOmn_serv_category_t category, vector< eOprotID32_t > &id32vector, double timeout=0.500)
void cleanup(eth::IethResource *interface)
eth::AbstractEthResource * res
Copyright (C) 2008 RobotCub Consortium.