Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
caesr-pub
systemc-clang
Commits
47623cf0
Commit
47623cf0
authored
Mar 15, 2019
by
rmrf
Browse files
Remove Sockets for now
parent
47b50188
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/Sockets.cpp
deleted
100644 → 0
View file @
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
)
<<
" "
;
}
}
src/Sockets.h
deleted
100644 → 0
View file @
47b50188
#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
src/SystemCClang.cpp
View file @
47623cf0
...
...
@@ -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
};
...
...
src/Utility.cpp
View file @
47623cf0
#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() {}
*/
src/Utility.h
View file @
47623cf0
...
...
@@ -89,6 +89,7 @@ public:
return
s
.
str
();
}
};
}
// namespace scpar
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment