提交 951de03f 编写于 作者: C calincerchez

still on parser

上级 91102f9d
file 13724 1342196896
file 13724 1341907082
version 2
run General-0-20120709-16:16:37-6492
attr configname General
......
......@@ -32,6 +32,7 @@ RRC::~RRC() {
}
void RRC::initialize(int stage) {
// char lac[2] = {0x5b, 0x10};
// char tmsi[4] = {0x19, 0x02, 0x2c, 0xba};
// std::vector<unsigned char> mcc;
......
......@@ -19,7 +19,9 @@
#define RRC_H_
#include <omnetpp.h>
//#include "RRCPDUDefinitions.h"
#include "RRCClassDefinitions.h"
using namespace rrc;
class RRC : public cSimpleModule {
public:
......
......@@ -17,7 +17,7 @@
#include "RRCClassDefinitions.h"
namespace rrcNamespace {
namespace rrc {
const void *DLDCCHMessageType::choicesInfo[32] = {
&ActiveSetUpdate::theInfo,
......
......@@ -22,7 +22,7 @@
#include "RRCPDUDefinitions.h"
#include "RRCInformationElements.h"
namespace rrcNamespace {
namespace rrc {
typedef Null DLDCCHMessageTypeSpare3;
......
......@@ -17,6 +17,6 @@
#include "RRCConstantDefinitions.h"
namespace rrcNamespace {
namespace rrc {
}
......@@ -20,7 +20,7 @@
#include "ASNTypes.h"
namespace rrcNamespace {
namespace rrc {
#define hiPDSCHidentities 64
......
......@@ -17,7 +17,7 @@
#include "RRCPDUDefinitions.h"
namespace rrcNamespace {
namespace rrc {
const void *ActiveSetUpdater3IEs::itemsInfo[12] = {
&RRCTransactionIdentifier::theInfo,
......@@ -22,7 +22,7 @@
#include "RRCInformationElements.h"
#include "RRCConstantDefinitions.h"
namespace rrcNamespace {
namespace rrc {
class ActiveSetUpdater3IEs : Sequence {
private:
......
......@@ -285,6 +285,7 @@ def parsestring(string):
if asnobj.constrainttype == "UNCONSTRAINED" and asnobj.type in constrainttypes:
asnobj.type += "Base"
return asnobj
def printobjects(asnobjs):
......@@ -325,6 +326,12 @@ def writeobject(asnobj, hdrfile, srcfile):
if asnobj.parent != None:
asnobj.name = asnobj.parent.name + asnobj.name
if asnobj.name == module:
asnobj.name = asnobj.name + "_"
if asnobj.type == module:
asnobj.type = asnobj.type + "_"
# Non standard types
if asnobj.type not in types:
......@@ -512,8 +519,8 @@ def writefile(filename):
srcfile.write("#include \"" + outfilename + ".h\"\n\n")
srcfile.write("namespace " + module.lower() + "Namespace {\n\n")
hdrfile.write("namespace " + module.lower() + "Namespace {\n\n")
srcfile.write("namespace " + module.lower() + " {\n\n")
hdrfile.write("namespace " + module.lower() + " {\n\n")
for i in range (0, len(asnobjs)):
asnobj = asnobjs[i]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册