47623cf0 by rmrf

Remove Sockets for now

1 parent 47b50188
#include "Sockets.h"
using namespace scpar;
Sockets::Sockets() : _name("NONE") {}
Sockets::Sockets(const string &name, const string &socketType,
vector<string> registerCallbackMethods)
: _name(name), _socketType(socketType),
_registerCallbackMethods(registerCallbackMethods) {}
Sockets::Sockets(const Sockets &from) {
_name = from._name;
_socketType = from._socketType;
_registerCallbackMethods = from._registerCallbackMethods;
}
string Sockets::getName() { return _name; }
string Sockets::getSocketType() { return _socketType; }
vector<string> Sockets::getRegisterCallbackMethods() {
return _registerCallbackMethods;
}
void Sockets::dump(raw_ostream &os, int tabn) {
os << "\n Sockets : " << _name << " Sockets Type : " << _socketType;
os << " Register Callback Methods : ";
for (int i = 0; i < _registerCallbackMethods.size(); i++) {
os << _registerCallbackMethods.at(i) << " ";
}
}
#ifndef _SOCKETS_H_
#define _SOCKETS_H_
#include "FindClassDataMembers.h"
#include "clang/AST/DeclCXX.h"
#include <map>
#include <string>
namespace scpar {
using namespace clang;
using namespace std;
class Sockets {
public:
Sockets();
Sockets(const string &, const string &, vector<string>);
Sockets(const Sockets &);
~Sockets();
string getName();
string getSocketType();
vector<string> getRegisterCallbackMethods();
void dump(raw_ostream &, int);
private:
string _name;
string _socketType;
vector<string> _registerCallbackMethods;
};
} // namespace scpar
#endif
......@@ -13,7 +13,7 @@ bool SystemCConsumer::fire() {
TranslationUnitDecl *tu{_context.getTranslationUnitDecl()};
// Reflection database.
_systemcModel = new Model{};
_systemcModel = new Model{} ;
// Find the sc_modules
FindSCModules scmod{tu, _os};
......
#include "Utility.h"
using namespace scpar;
/*
void Utility::tabit(raw_ostream &os, int tabn) {
for (int i = 0; i < tabn; i++) {
os << " ";
......@@ -59,3 +59,4 @@ template <typename expressionArg> string getArgumentName(expressionArg *exp) {
}
Utility::Utility() {}
*/
......
......@@ -89,6 +89,7 @@ public:
return s.str();
}
};
} // namespace scpar
#endif
......