Skip to content

Commit

Permalink
[refactor]
Browse files Browse the repository at this point in the history
- fixed release not been generated newly with naming fixes from porting
  • Loading branch information
MrMushroom committed Jan 10, 2023
1 parent 9a07773 commit 98a14af
Show file tree
Hide file tree
Showing 12 changed files with 122 additions and 74 deletions.
14 changes: 7 additions & 7 deletions release/experimental/vcits/exceptions/DecodingException.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
// Exception, if something is not yet implemented
//
// Author(s): "Christoph Pilz"
// Copyright: "Copyright 2021, VIF V2X Platform"
// Copyright: "Copyright 2023, vehicleCAPTAIN toolbox"
// Credits: ["Thispointer.com"]
// License: "TBD"
// Version: "TBD"
// License: "BSD 3-Clause"
// Version: "1.0"
// Maintainer: "Christoph Pilz"
// E-Mail: "christoph.pilz@v2c2.at"
// Status = "Production"
//
// Possible Improvements:
// [] License
// - [ ]
//

#ifndef V2X_LIBRARY_DECODINGEXCEPTION_H
#define V2X_LIBRARY_DECODINGEXCEPTION_H
#ifndef VC_ITS_DECODINGEXCEPTION_H
#define VC_ITS_DECODINGEXCEPTION_H

#pragma once

Expand All @@ -30,4 +30,4 @@ class DecodingException : public std::runtime_error
DecodingException(size_t consumed) : std::runtime_error(std::string("Broken encoding at byte: " + std::to_string(consumed))) { };
};

#endif //V2X_LIBRARY_DECODINGEXCEPTION_H
#endif //VC_ITS_DECODINGEXCEPTION_H
14 changes: 7 additions & 7 deletions release/experimental/vcits/exceptions/EncodingException.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
// Exception, if something is not yet implemented
//
// Author(s): "Christoph Pilz"
// Copyright: "Copyright 2021, VIF V2X Platform"
// Copyright: "Copyright 2023, vehicleCAPTAIN toolbox"
// Credits: ["Thispointer.com"]
// License: "TBD"
// Version: "TBD"
// License: "BSD 3-Clause"
// Version: "1.0"
// Maintainer: "Christoph Pilz"
// E-Mail: "christoph.pilz@v2c2.at"
// Status = "Production"
//
// Possible Improvements:
// [] License
// - [ ]
//

#ifndef V2X_LIBRARY_ENCODINGEXCEPTION_H
#define V2X_LIBRARY_ENCODINGEXCEPTION_H
#ifndef VC_ITS_ENCODINGEXCEPTION_H
#define VC_ITS_ENCODINGEXCEPTION_H

#pragma once

Expand All @@ -30,4 +30,4 @@ class EncodingException : public std::runtime_error
EncodingException() : std::runtime_error("Encoding failed: values may be out of range") { };
};

#endif //V2X_LIBRARY_ENCODINGEXCEPTION_H
#endif //VC_ITS_ENCODINGEXCEPTION_H
14 changes: 7 additions & 7 deletions release/experimental/vcits/exceptions/V2XLibExceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@
// Single header, to include all V2X library exceptions
//
// Author(s): "Christoph Pilz"
// Copyright: "Copyright 2021, VIF V2X Library"
// Copyright: "Copyright 2023, vehicleCAPTAIN toolbox"
// Credits: ["Thispointer.com"]
// License: "TBD"
// Version: "TBD"
// License: "BSD 3-Clause"
// Version: "1.0"
// Maintainer: "Christoph Pilz"
// E-Mail: "christoph.pilz@v2c2.at"
// Status = "Production"
//
// Possible Improvements:
// [] License
// - [ ]
//

#ifndef V2X_LIBRARY_V2XLIBEXCEPTIONS_H
#define V2X_LIBRARY_V2XLIBEXCEPTIONS_H
#ifndef VC_ITS_V2XLIBEXCEPTIONS_H
#define VC_ITS_V2XLIBEXCEPTIONS_H

#pragma once

#include "DecodingException.h"
#include "EncodingException.h"
#include "ValidateConstraintsException.h"

#endif //V2X_LIBRARY_V2XLIBEXCEPTIONS_H
#endif //VC_ITS_V2XLIBEXCEPTIONS_H
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
// Exception, if something is not yet implemented
//
// Author(s): "Christoph Pilz"
// Copyright: "Copyright 2021, VIF V2X Platform"
// Copyright: "Copyright 2023, vehicleCAPTAIN toolbox"
// Credits: ["Thispointer.com"]
// License: "TBD"
// Version: "TBD"
// License: "BSD 3-Clause"
// Version: "1.0"
// Maintainer: "Christoph Pilz"
// E-Mail: "christoph.pilz@v2c2.at"
// Status = "Production"
//
// Possible Improvements:
// [] License
// - [ ]
//

#ifndef V2X_LIBRARY_VALIDATECONSTRAINTSEXCEPTION_H
#define V2X_LIBRARY_VALIDATECONSTRAINTSEXCEPTION_H
#ifndef VC_ITS_VALIDATECONSTRAINTSEXCEPTION_H
#define VC_ITS_VALIDATECONSTRAINTSEXCEPTION_H

#pragma once

Expand All @@ -30,4 +30,4 @@ class ValidateConstraintsException : public std::logic_error
ValidateConstraintsException() : std::logic_error("Validation failed: parameters may be defined wrong") { };
};

#endif //V2X_LIBRARY_VALIDATECONSTRAINTSEXCEPTION_H
#endif //VC_ITS_VALIDATECONSTRAINTSEXCEPTION_H
22 changes: 17 additions & 5 deletions release/experimental/vcits/parser/Decoder.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
//
// Created by christophpilz on 19.05.2021.
//
// Description:
// Decoder Wrapper for C++
//
// Author(s): "Christoph Pilz"
// Copyright: "Copyright 2023, vehicleCAPTAIN toolbox"
// Credits: ["Thispointer.com"]
// License: "BSD 3-Clause"
// Version: "1.0"
// Maintainer: "Christoph Pilz"
// E-Mail: "christoph.pilz@v2c2.at"
// Status = "Production"
//
// Possible Improvements:
// - have a decode method without type descriptor -> automatically find out which type of message it is and decode the right one
// - refactor C++ style
// - [] have a decode method without type descriptor -> automatically find out which type of message it is and decode the right one
// - [] refactor C++ style
//

#ifndef VIF_ITS_LIB_DECODER_H
#define VIF_ITS_LIB_DECODER_H
#ifndef VC_ITS_LIB_DECODER_H
#define VC_ITS_LIB_DECODER_H

extern "C" {
#include "asn_application.h"
Expand All @@ -27,4 +39,4 @@ class Decoder {
};


#endif //VIF_ITS_LIB_DECODER_H
#endif //VC_ITS_LIB_DECODER_H
20 changes: 16 additions & 4 deletions release/experimental/vcits/parser/Encoder.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
//
// Created by christophpilz on 19.05.2021.
//
// Description:
// Decoder Wrapper for C++
//
// Author(s): "Christoph Pilz"
// Copyright: "Copyright 2023, vehicleCAPTAIN toolbox"
// Credits: ["Thispointer.com"]
// License: "BSD 3-Clause"
// Version: "1.0"
// Maintainer: "Christoph Pilz"
// E-Mail: "christoph.pilz@v2c2.at"
// Status = "Production"
//
// Possible Improvements:
// - refactor C++ style
// - [] refactor C++ style
//

#ifndef VIF_ITS_LIB_ENCODER_H
#define VIF_ITS_LIB_ENCODER_H
#ifndef VC_ITS_LIB_ENCODER_H
#define VC_ITS_LIB_ENCODER_H

extern "C" {
#include "asn_application.h"
Expand Down Expand Up @@ -34,4 +46,4 @@ class Encoder {
};


#endif //VIF_ITS_LIB_ENCODER_H
#endif //VC_ITS_LIB_ENCODER_H
14 changes: 7 additions & 7 deletions release/standard/vcits/exceptions/DecodingException.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
// Exception, if something is not yet implemented
//
// Author(s): "Christoph Pilz"
// Copyright: "Copyright 2021, VIF V2X Platform"
// Copyright: "Copyright 2023, vehicleCAPTAIN toolbox"
// Credits: ["Thispointer.com"]
// License: "TBD"
// Version: "TBD"
// License: "BSD 3-Clause"
// Version: "1.0"
// Maintainer: "Christoph Pilz"
// E-Mail: "christoph.pilz@v2c2.at"
// Status = "Production"
//
// Possible Improvements:
// [] License
// - [ ]
//

#ifndef V2X_LIBRARY_DECODINGEXCEPTION_H
#define V2X_LIBRARY_DECODINGEXCEPTION_H
#ifndef VC_ITS_DECODINGEXCEPTION_H
#define VC_ITS_DECODINGEXCEPTION_H

#pragma once

Expand All @@ -30,4 +30,4 @@ class DecodingException : public std::runtime_error
DecodingException(size_t consumed) : std::runtime_error(std::string("Broken encoding at byte: " + std::to_string(consumed))) { };
};

#endif //V2X_LIBRARY_DECODINGEXCEPTION_H
#endif //VC_ITS_DECODINGEXCEPTION_H
14 changes: 7 additions & 7 deletions release/standard/vcits/exceptions/EncodingException.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
// Exception, if something is not yet implemented
//
// Author(s): "Christoph Pilz"
// Copyright: "Copyright 2021, VIF V2X Platform"
// Copyright: "Copyright 2023, vehicleCAPTAIN toolbox"
// Credits: ["Thispointer.com"]
// License: "TBD"
// Version: "TBD"
// License: "BSD 3-Clause"
// Version: "1.0"
// Maintainer: "Christoph Pilz"
// E-Mail: "christoph.pilz@v2c2.at"
// Status = "Production"
//
// Possible Improvements:
// [] License
// - [ ]
//

#ifndef V2X_LIBRARY_ENCODINGEXCEPTION_H
#define V2X_LIBRARY_ENCODINGEXCEPTION_H
#ifndef VC_ITS_ENCODINGEXCEPTION_H
#define VC_ITS_ENCODINGEXCEPTION_H

#pragma once

Expand All @@ -30,4 +30,4 @@ class EncodingException : public std::runtime_error
EncodingException() : std::runtime_error("Encoding failed: values may be out of range") { };
};

#endif //V2X_LIBRARY_ENCODINGEXCEPTION_H
#endif //VC_ITS_ENCODINGEXCEPTION_H
14 changes: 7 additions & 7 deletions release/standard/vcits/exceptions/V2XLibExceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@
// Single header, to include all V2X library exceptions
//
// Author(s): "Christoph Pilz"
// Copyright: "Copyright 2021, VIF V2X Library"
// Copyright: "Copyright 2023, vehicleCAPTAIN toolbox"
// Credits: ["Thispointer.com"]
// License: "TBD"
// Version: "TBD"
// License: "BSD 3-Clause"
// Version: "1.0"
// Maintainer: "Christoph Pilz"
// E-Mail: "christoph.pilz@v2c2.at"
// Status = "Production"
//
// Possible Improvements:
// [] License
// - [ ]
//

#ifndef V2X_LIBRARY_V2XLIBEXCEPTIONS_H
#define V2X_LIBRARY_V2XLIBEXCEPTIONS_H
#ifndef VC_ITS_V2XLIBEXCEPTIONS_H
#define VC_ITS_V2XLIBEXCEPTIONS_H

#pragma once

#include "DecodingException.h"
#include "EncodingException.h"
#include "ValidateConstraintsException.h"

#endif //V2X_LIBRARY_V2XLIBEXCEPTIONS_H
#endif //VC_ITS_V2XLIBEXCEPTIONS_H
14 changes: 7 additions & 7 deletions release/standard/vcits/exceptions/ValidateConstraintsException.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
// Exception, if something is not yet implemented
//
// Author(s): "Christoph Pilz"
// Copyright: "Copyright 2021, VIF V2X Platform"
// Copyright: "Copyright 2023, vehicleCAPTAIN toolbox"
// Credits: ["Thispointer.com"]
// License: "TBD"
// Version: "TBD"
// License: "BSD 3-Clause"
// Version: "1.0"
// Maintainer: "Christoph Pilz"
// E-Mail: "christoph.pilz@v2c2.at"
// Status = "Production"
//
// Possible Improvements:
// [] License
// - [ ]
//

#ifndef V2X_LIBRARY_VALIDATECONSTRAINTSEXCEPTION_H
#define V2X_LIBRARY_VALIDATECONSTRAINTSEXCEPTION_H
#ifndef VC_ITS_VALIDATECONSTRAINTSEXCEPTION_H
#define VC_ITS_VALIDATECONSTRAINTSEXCEPTION_H

#pragma once

Expand All @@ -30,4 +30,4 @@ class ValidateConstraintsException : public std::logic_error
ValidateConstraintsException() : std::logic_error("Validation failed: parameters may be defined wrong") { };
};

#endif //V2X_LIBRARY_VALIDATECONSTRAINTSEXCEPTION_H
#endif //VC_ITS_VALIDATECONSTRAINTSEXCEPTION_H
22 changes: 17 additions & 5 deletions release/standard/vcits/parser/Decoder.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
//
// Created by christophpilz on 19.05.2021.
//
// Description:
// Decoder Wrapper for C++
//
// Author(s): "Christoph Pilz"
// Copyright: "Copyright 2023, vehicleCAPTAIN toolbox"
// Credits: ["Thispointer.com"]
// License: "BSD 3-Clause"
// Version: "1.0"
// Maintainer: "Christoph Pilz"
// E-Mail: "christoph.pilz@v2c2.at"
// Status = "Production"
//
// Possible Improvements:
// - have a decode method without type descriptor -> automatically find out which type of message it is and decode the right one
// - refactor C++ style
// - [] have a decode method without type descriptor -> automatically find out which type of message it is and decode the right one
// - [] refactor C++ style
//

#ifndef VIF_ITS_LIB_DECODER_H
#define VIF_ITS_LIB_DECODER_H
#ifndef VC_ITS_LIB_DECODER_H
#define VC_ITS_LIB_DECODER_H

extern "C" {
#include "asn_application.h"
Expand All @@ -27,4 +39,4 @@ class Decoder {
};


#endif //VIF_ITS_LIB_DECODER_H
#endif //VC_ITS_LIB_DECODER_H
Loading

0 comments on commit 98a14af

Please sign in to comment.