Dataset Viewer
Auto-converted to Parquet Duplicate
repo_name
stringclasses
10 values
file_path
stringlengths
29
222
content
stringlengths
24
926k
extention
stringclasses
5 values
fprime
data/projects/fprime/RPI/Main.cpp
#include <cstdio> #include <cstdlib> #include <ctype.h> #include <getopt.h> #include <signal.h> #include <RPI/Top/RPITopologyAc.hpp> RPI::TopologyState state; // Enable the console logging provided by Os::Log Os::Log logger; void print_usage(const char* app) { (void) printf("Usage: ./%s [options]\n-p\tport_numbe...
cpp
fprime
data/projects/fprime/RPI/Top/RPITopologyDefs.hpp
#ifndef RPITopologyDefs_HPP #define RPITopologyDefs_HPP #include "Fw/Types/MallocAllocator.hpp" #include "Os/Log.hpp" #include "RPI/Top/FppConstantsAc.hpp" #include "Svc/FramingProtocol/FprimeProtocol.hpp" #include "Svc/LinuxTimer/LinuxTimer.hpp" namespace RPI { namespace Allocation { // Malloc allocator for ...
hpp
fprime
data/projects/fprime/RPI/Top/Topology.cpp
#include <Components.hpp> #include <Fw/Types/Assert.hpp> #include <Os/Task.hpp> #include <Os/Log.hpp> #include <Os/File.hpp> #include <Os/TaskString.hpp> #include <Fw/Types/MallocAllocator.hpp> #include <RPI/Top/RpiSchedContexts.hpp> #include <Svc/FramingProtocol/FprimeProtocol.hpp> enum { UPLINK_BUFFER_STORE_SIZ...
cpp
fprime
data/projects/fprime/RPI/Top/RPITopologyDefs.cpp
#include "RPI/Top/RPITopologyDefs.hpp" namespace RPI { namespace Allocation { Fw::MallocAllocator mallocator; } namespace Init { bool status = true; } }
cpp
fprime
data/projects/fprime/RPI/Top/Components.hpp
#ifndef __RPI_COMPONENTS_HEADER__ #define __RPI_COMPONENTS_HEADER__ #include <Svc/ActiveRateGroup/ActiveRateGroupImpl.hpp> #include <Svc/RateGroupDriver/RateGroupDriverImpl.hpp> #include <Svc/CmdDispatcher/CommandDispatcherImpl.hpp> #include <Svc/CmdSequencer/CmdSequencerImpl.hpp> #include <Svc/PassiveConsoleTextLogg...
hpp
fprime
data/projects/fprime/RPI/RpiDemo/RpiDemoComponentImplCfg.hpp
/* * RpiDemoComponentImplCfg.hpp * * Created on: Mar 5, 2018 * Author: tim */ #ifndef RPI_RPIDEMO_RPIDEMOCOMPONENTIMPLCFG_HPP_ #define RPI_RPIDEMO_RPIDEMOCOMPONENTIMPLCFG_HPP_ namespace RPI { // configuration values enum { NUM_RPI_UART_BUFFERS = 5, RPI_UART_READ_BUFF_SIZE = 40 }...
hpp
fprime
data/projects/fprime/RPI/RpiDemo/RpiDemoComponentImpl.hpp
// ====================================================================== // \title RpiDemoImpl.hpp // \author tcanham // \brief hpp file for RpiDemo component implementation class // // \copyright // Copyright 2009-2015, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Spo...
hpp
fprime
data/projects/fprime/RPI/RpiDemo/RpiDemo.hpp
// ====================================================================== // RpiDemo.hpp // Standardization header for RpiDemo // ====================================================================== #ifndef RPI_RpiDemo_HPP #define RPI_RpiDemo_HPP #include "RPI/RpiDemo/RpiDemoComponentImpl.hpp" namespace RPI { u...
hpp
fprime
data/projects/fprime/RPI/RpiDemo/RpiDemoComponentImpl.cpp
// ====================================================================== // \title RpiDemoImpl.cpp // \author tcanham // \brief cpp file for RpiDemo component implementation class // // \copyright // Copyright 2009-2015, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Spo...
cpp
fprime
data/projects/fprime/Fw/Deprecate.hpp
// deprecate.hpp: // // A minor implementation of compile-time deprecation for the fprime framework. #ifndef FW_DEPRECATE_HPP #define FW_DEPRECATE_HPP #ifndef DEPRECATED #ifdef __GNUC__ #define DEPRECATED(func, message) func __attribute__ ((deprecated(message))) #else #warning "No implementation of DEPRECATED ...
hpp
fprime
data/projects/fprime/Fw/Obj/SimpleObjRegistry.cpp
#include <Fw/Logger/Logger.hpp> #include <Fw/Obj/SimpleObjRegistry.hpp> #include <FpConfig.hpp> #include <Fw/Types/Assert.hpp> #include <cstdio> #include <cstring> #if FW_OBJECT_REGISTRATION == 1 namespace Fw { SimpleObjRegistry::SimpleObjRegistry() { ObjBase::setObjRegistry(this); this->m_numEnt...
cpp
fprime
data/projects/fprime/Fw/Obj/ObjBase.hpp
/** * \file * \author T. Canham * \brief Declarations for Fw::ObjBase and Fw::ObjRegistry * * \copyright * Copyright 2016, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. * */ #ifndef FW_OBJ_BASE_HPP #define FW_OBJ_BASE_HPP #include <Fp...
hpp
fprime
data/projects/fprime/Fw/Obj/ObjBase.cpp
#include <FpConfig.hpp> #include <Fw/Obj/ObjBase.hpp> #include <cstring> #include <cstdio> #include <Fw/Types/Assert.hpp> namespace Fw { #if FW_OBJECT_REGISTRATION == 1 ObjRegistry* ObjBase::s_objRegistry = nullptr; #endif #if FW_OBJECT_NAMES == 1 ObjBase::ObjBase(const char* objName) { if (nullptr =...
cpp
fprime
data/projects/fprime/Fw/Obj/SimpleObjRegistry.hpp
/** * \file * \author T. Canham * \brief Class declaration for a simple object registry * * The simple object registry is meant to give a default implementation * and an example of an object registry. When the registry is instantiated, * it registers itself with the object base class static function * setObjReg...
hpp
fprime
data/projects/fprime/Fw/FilePacket/Header.cpp
// ====================================================================== // \title Header.cpp // \author bocchino // \brief cpp file for FilePacket::Header // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknowledged...
cpp
fprime
data/projects/fprime/Fw/FilePacket/FilePacket.cpp
// ====================================================================== // \title FilePacket.cpp // \author bocchino // \brief cpp file for FilePacket // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknowledged. //...
cpp
fprime
data/projects/fprime/Fw/FilePacket/PathName.cpp
// ====================================================================== // \title PathName.cpp // \author bocchino // \brief cpp file for FilePacket::PathName // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknowle...
cpp
fprime
data/projects/fprime/Fw/FilePacket/CancelPacket.cpp
// ====================================================================== // \title CancelPacket.cpp // \author bocchino // \brief cpp file for FilePacket::CancelPacket // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // ...
cpp
fprime
data/projects/fprime/Fw/FilePacket/DataPacket.cpp
// ====================================================================== // \title DataPacket.cpp // \author bocchino // \brief cpp file for FilePacket::DataPacket // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // ackn...
cpp
fprime
data/projects/fprime/Fw/FilePacket/StartPacket.cpp
// ====================================================================== // \title StartPacket.cpp // \author bocchino // \brief cpp file for FilePacket::StartPacket // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // ac...
cpp
fprime
data/projects/fprime/Fw/FilePacket/EndPacket.cpp
// ====================================================================== // \title EndPacket.cpp // \author bocchino // \brief cpp file for FilePacket::EndPacket // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknow...
cpp
fprime
data/projects/fprime/Fw/FilePacket/FilePacket.hpp
// ====================================================================== // \title FilePacket.hpp // \author bocchino // \brief hpp file for FilePacket // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknowledged. //...
hpp
fprime
data/projects/fprime/Fw/FilePacket/GTest/Header.cpp
// ====================================================================== // \title Fw/FilePacket/GTest/Header.cpp // \author bocchino // \brief Test utilities for file packet headers // // \copyright // Copyright (C) 2016, California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsors...
cpp
fprime
data/projects/fprime/Fw/FilePacket/GTest/FilePackets.hpp
// ====================================================================== // \title Fw/FilePacket/GTest/FilePackets.hpp // \author bocchino // \brief hpp file for File Packet testing utilities // // \copyright // Copyright (C) 2016 California Institute of Technology. // ALL RIGHTS RESERVED. United States Government...
hpp
fprime
data/projects/fprime/Fw/FilePacket/GTest/PathName.cpp
// ====================================================================== // \title Fw/FilePacket/GTest/PathName.cpp // \author bocchino // \brief Test utilities for start file packets // // \copyright // Copyright (C) 2016, California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsor...
cpp
fprime
data/projects/fprime/Fw/FilePacket/GTest/CancelPacket.cpp
// ====================================================================== // \title Fw/FilePacket/GTest/CancelPacket.cpp // \author bocchino // \brief Test utilities for data file packets // // \copyright // Copyright (C) 2016, California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Spon...
cpp
fprime
data/projects/fprime/Fw/FilePacket/GTest/DataPacket.cpp
// ====================================================================== // \title Fw/FilePacket/GTest/DataPacket.cpp // \author bocchino // \brief Test utilities for data file packets // // \copyright // Copyright (C) 2016, California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponso...
cpp
fprime
data/projects/fprime/Fw/FilePacket/GTest/StartPacket.cpp
// ====================================================================== // \title Fw/FilePacket/GTest/StartPacket.cpp // \author bocchino // \brief Test utilities for start file packets // // \copyright // Copyright (C) 2016, California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Spon...
cpp
fprime
data/projects/fprime/Fw/FilePacket/GTest/EndPacket.cpp
// ====================================================================== // \title Fw/FilePacket/GTest/EndPacket.cpp // \author bocchino // \brief Test utilities for data file packets // // \copyright // Copyright (C) 2016, California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsor...
cpp
fprime
data/projects/fprime/Fw/FilePacket/test/ut/FilePacketMain.cpp
// ---------------------------------------------------------------------- // Main.cpp // ---------------------------------------------------------------------- #include <gtest/gtest.h> #include <Fw/Buffer/Buffer.hpp> #include <Fw/FilePacket/FilePacket.hpp> #include <Fw/FilePacket/GTest/FilePackets.hpp> #include <Fw/...
cpp
fprime
data/projects/fprime/Fw/Com/ComPacket.cpp
/* * ComPacket.cpp * * Created on: May 24, 2014 * Author: Timothy Canham */ #include <Fw/Com/ComPacket.hpp> namespace Fw { ComPacket::ComPacket() : m_type(FW_PACKET_UNKNOWN) { } ComPacket::~ComPacket() { } SerializeStatus ComPacket::serializeBase(SerializeBufferBase& buffer) const { ...
cpp
fprime
data/projects/fprime/Fw/Com/ComBuffer.cpp
#include <Fw/Com/ComBuffer.hpp> #include <Fw/Types/Assert.hpp> namespace Fw { ComBuffer::ComBuffer(const U8 *args, NATIVE_UINT_TYPE size) { SerializeStatus stat = SerializeBufferBase::setBuff(args,size); FW_ASSERT(FW_SERIALIZE_OK == stat,static_cast<NATIVE_INT_TYPE>(stat)); } ComBuffer::C...
cpp
fprime
data/projects/fprime/Fw/Com/ComBuffer.hpp
/* * FwComBuffer.hpp * * Created on: May 24, 2014 * Author: tcanham */ /* * Description: * This object contains the ComBuffer type, used for sending and receiving packets from the ground */ #ifndef FW_COM_BUFFER_HPP #define FW_COM_BUFFER_HPP #include <FpConfig.hpp> #include <Fw/Types/Serializable.hpp> ...
hpp
fprime
data/projects/fprime/Fw/Com/ComPacket.hpp
/* * ComPacket.hpp * * Created on: May 24, 2014 * Author: Timothy Canham */ #ifndef COMPACKET_HPP_ #define COMPACKET_HPP_ #include <Fw/Types/Serializable.hpp> // Packet format: // |32-bit packet type|packet type-specific data| namespace Fw { class ComPacket: public Serializable { public: ...
hpp
fprime
data/projects/fprime/Fw/Prm/ParamBuffer.hpp
// Work around inconsistent spelling #include "PrmBuffer.hpp"
hpp
fprime
data/projects/fprime/Fw/Prm/PrmString.cpp
#include <Fw/Prm/PrmString.hpp> #include <Fw/Types/StringUtils.hpp> namespace Fw { ParamString::ParamString(const char* src) : StringBase() { (void) Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf)); } ParamString::ParamString(const StringBase& src) : StringBase() { (v...
cpp
fprime
data/projects/fprime/Fw/Prm/PrmBuffer.cpp
#include <Fw/Prm/PrmBuffer.hpp> #include <Fw/Types/Assert.hpp> namespace Fw { ParamBuffer::ParamBuffer(const U8 *args, NATIVE_UINT_TYPE size) { SerializeStatus stat = SerializeBufferBase::setBuff(args,size); FW_ASSERT(FW_SERIALIZE_OK == stat,static_cast<NATIVE_INT_TYPE>(stat)); } ParamBuffer::Para...
cpp
fprime
data/projects/fprime/Fw/Prm/PrmString.hpp
#ifndef FW_PRM_STRING_TYPE_HPP #define FW_PRM_STRING_TYPE_HPP #include <FpConfig.hpp> #include <Fw/Types/StringType.hpp> #include <Fw/Cfg/SerIds.hpp> namespace Fw { class ParamString : public Fw::StringBase { public: enum { SERIALIZED_TYPE_ID = FW_TYPEID_PRM_STR, ...
hpp
fprime
data/projects/fprime/Fw/Prm/PrmBuffer.hpp
/* * Cmd.hpp * * Created on: Sep 10, 2012 * Author: ppandian */ /* * Description: * This object contains the ParamBuffer type, used for storing parameters */ #ifndef FW_PRM_BUFFER_HPP #define FW_PRM_BUFFER_HPP #include <FpConfig.hpp> #include <Fw/Types/Serializable.hpp> #include <Fw/Cfg/SerIds.hpp> nam...
hpp
fprime
data/projects/fprime/Fw/SerializableFile/SerializableFile.hpp
// ====================================================================== // \title SerializableFile.hpp // \author dinkel // \brief hpp file for SerializableFile // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknow...
hpp
fprime
data/projects/fprime/Fw/SerializableFile/SerializableFile.cpp
// ====================================================================== // \title SerializableFile.cpp // \author dinkel // \brief cpp file for SerializableFile // // \copyright // Copyright 2009-2016, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknow...
cpp
fprime
data/projects/fprime/Fw/SerializableFile/test/ut/Test.cpp
// ---------------------------------------------------------------------- // Main.cpp // ---------------------------------------------------------------------- #include <cstring> #include <cstdio> #include <FpConfig.hpp> #include <Fw/Types/Assert.hpp> #include <Fw/Types/MallocAllocator.hpp> #include <Fw/SerializableF...
cpp
fprime
data/projects/fprime/Fw/Test/String.cpp
#include <Fw/Test/String.hpp> #include <Fw/Types/StringUtils.hpp> namespace Test { String::String(const char* src) : StringBase() { (void) Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf)); } String::String(const StringBase& src) : StringBase() { (void) Fw::StringUtils::...
cpp
fprime
data/projects/fprime/Fw/Test/String.hpp
#ifndef TEST_STRING_TYPE_HPP #define TEST_STRING_TYPE_HPP #include <FpConfig.hpp> #include <Fw/Types/StringType.hpp> #include <Fw/Cfg/SerIds.hpp> namespace Test { //! A longer string for testing class String : public Fw::StringBase { public: enum { STRING_SIZE = 256, //!<...
hpp
fprime
data/projects/fprime/Fw/Test/UnitTest.hpp
/** * \file * \author T. Canham * \brief * * This contains macros used to document test cases and requirements in unit tests. * Borrowed from Insight. * * \copyright * Copyright 2009-2015, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. ...
hpp
fprime
data/projects/fprime/Fw/Test/UnitTestAssert.hpp
/* * UnitTestAssert.hpp * * Created on: Feb 8, 2016 * Author: tcanham * Revised July 2020 * Author: bocchino */ #ifndef TEST_UNITTESTASSERT_HPP_ #define TEST_UNITTESTASSERT_HPP_ #include <Fw/Test/String.hpp> #include <Fw/Types/Assert.hpp> namespace Test { class UnitTestAssert: public Fw::Asse...
hpp
fprime
data/projects/fprime/Fw/Test/UnitTestAssert.cpp
/* * UnitTestAssert.cpp * * Created on: Feb 8, 2016 * Author: tcanham * Revised July 2020 * Author: bocchino */ #include <Fw/Test/UnitTestAssert.hpp> #include <cstdio> #include <cstring> namespace Test { #if FW_ASSERT_LEVEL == FW_FILEID_ASSERT const UnitTestAssert::File UnitTestAssert::fileIni...
cpp
fprime
data/projects/fprime/Fw/Cfg/ConfigCheck.cpp
/** * \file * \author T. Canham * \brief Configuration checks for ISF configuration macros * * \copyright * Copyright 2009-2016, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. * */ #include <FpConfig.hpp> #include <limits> // Check tha...
cpp
fprime
data/projects/fprime/Fw/Cfg/SerIds.hpp
/** * \file * \author T. Canham * \brief Definitions for ISF type serial IDs * * NOTE: Not currently being used * * \copyright * Copyright 2009-2015, by the California Institute of Technology. * ALL RIGHTS RESERVED. United States Government Sponsorship * acknowledged. * <br /><br /> */ #ifndef _FW_SER_IDS_...
hpp
fprime
data/projects/fprime/Fw/Cmd/CmdPacket.cpp
/* * CmdPacket.cpp * * Created on: May 24, 2014 * Author: Timothy Canham */ #include <Fw/Cmd/CmdPacket.hpp> #include <Fw/Types/Assert.hpp> #include <cstdio> namespace Fw { CmdPacket::CmdPacket() : m_opcode(0) { this->m_type = FW_PACKET_COMMAND; } CmdPacket::~CmdPacket() { } S...
cpp
fprime
data/projects/fprime/Fw/Cmd/CmdPacket.hpp
/* * CmdPacket.hpp * * Created on: May 24, 2014 * Author: Timothy Canham */ #ifndef CMDPACKET_HPP_ #define CMDPACKET_HPP_ #include <Fw/Com/ComPacket.hpp> #include <Fw/Cmd/CmdArgBuffer.hpp> namespace Fw { class CmdPacket : public ComPacket { public: CmdPacket(); virtua...
hpp
fprime
data/projects/fprime/Fw/Cmd/CmdString.cpp
#include <Fw/Cmd/CmdString.hpp> #include <Fw/Types/StringUtils.hpp> namespace Fw { CmdStringArg::CmdStringArg(const char* src) : StringBase() { (void) Fw::StringUtils::string_copy(this->m_buf, src, sizeof(this->m_buf)); } CmdStringArg::CmdStringArg(const StringBase& src) : StringBase() { ...
cpp
fprime
data/projects/fprime/Fw/Cmd/CmdString.hpp
#ifndef FW_CMD_STRING_TYPE_HPP #define FW_CMD_STRING_TYPE_HPP #include <FpConfig.hpp> #include <Fw/Types/StringType.hpp> #include <Fw/Cfg/SerIds.hpp> namespace Fw { class CmdStringArg : public Fw::StringBase { public: enum { SERIALIZED_TYPE_ID = FW_TYPEID_CMD_STR, ...
hpp
fprime
data/projects/fprime/Fw/Cmd/CmdArgBuffer.hpp
/* * * * Created on: March 1, 2014 * Author: T. Canham */ /* * Description: * This object contains the CmdARgBuffer type, used for holding the serialized arguments of commands */ #ifndef FW_CMD_ARG_BUFFER_HPP #define FW_CMD_ARG_BUFFER_HPP #include <FpConfig.hpp> #include <Fw/Types/Serializable.hpp> #inc...
hpp
fprime
data/projects/fprime/Fw/Cmd/CmdArgBuffer.cpp
#include <Fw/Cmd/CmdArgBuffer.hpp> #include <Fw/Types/Assert.hpp> namespace Fw { CmdArgBuffer::CmdArgBuffer(const U8 *args, NATIVE_UINT_TYPE size) { SerializeStatus stat = this->setBuff(args,size); FW_ASSERT(FW_SERIALIZE_OK == stat,static_cast<NATIVE_INT_TYPE>(stat)); } CmdArgBuffer::CmdA...
cpp
fprime
data/projects/fprime/Fw/Logger/LogAssert.hpp
/* * LogAssert.hpp * * Created on: Sep 9, 2016 * Author: tcanham * Note: this file was originally a log assert file, under Fw::Types. It now made generic * to log asserts to Fw::Logger */ #ifndef LOGGER_LOGASSERT_HPP_ #define LOGGER_LOGASSERT_HPP_ #include <Fw/Types/Assert.hpp> namespace Fw { clas...
hpp
fprime
data/projects/fprime/Fw/Logger/Logger.hpp
/** * File: Logger.hpp * Description: Framework logging support * Author: mstarch * * This file adds in support to the core 'Fw' package, to separate it from Os and other loggers, and * allow the architect of the system to select which core framework logging should be used. */ #ifndef _Fw_Logger_hpp_ #define _F...
hpp
fprime
data/projects/fprime/Fw/Logger/LogAssert.cpp
/* * LogAssert.cpp * * Created on: Sep 9, 2016 * Author: tcanham * Note: this file was originally a log assert file, under Fw::Types. It now made generic * to log asserts to Fw::Logger */ #include <Fw/Logger/LogAssert.hpp> #include <Fw/Logger/Logger.hpp> #if FW_ASSERT_LEVEL == FW_NO_ASSERT #else #if F...
cpp
fprime
data/projects/fprime/Fw/Logger/Logger.cpp
/** * File: Logger.cpp * Description: Framework logging implementation * Author: mstarch * * This file adds in support to the core 'Fw' package, to separate it from Os and other loggers, and * allow the architect of the system to select which core framework logging should be used. */ #include <Fw/Logger/Logger...
cpp
fprime
data/projects/fprime/Fw/Logger/test/ut/LoggerMain.cpp
/** * Main.cpp: * * Setup the GTests for rules-based testing of Fw::Logger and runs these tests. * * Created on: May 23, 2019 * Author: mstarch */ #include <STest/Scenario/Scenario.hpp> #include <STest/Scenario/RandomScenario.hpp> #include <STest/Scenario/BoundedScenario.hpp> #include <Fw/Test/UnitTest.hp...
cpp
fprime
data/projects/fprime/Fw/Logger/test/ut/FakeLogger.hpp
/** * FakeLogger.hpp: * * Setup a fake logger for use with the testing. This allows for the capture of messages from the system and ensure that * the proper log messages are coming through as expected. * * @author mstarch */ #include <FpConfig.hpp> #include <Fw/Logger/Logger.hpp> #ifndef FPRIME_FAKELOGGER_HPP ...
hpp
fprime
data/projects/fprime/Fw/Logger/test/ut/LoggerRules.hpp
/** * LoggerRules.hpp: * * This file specifies Rule classes for testing of the Fw::Logger. These rules can then be used by the main testing * program to test the code. * * Logging rules: * * 1. a logger can be registered at any time. * 2. NULL loggers discard log calls * 3. if a valid logger is registered, th...
hpp
fprime
data/projects/fprime/Fw/Logger/test/ut/LoggerRules.cpp
/** * LoggerRules.cpp: * * This file specifies Rule classes for testing of the Fw::Logger. These rules can then be used by the main testing * program to test the code. * * Logging rules: * * 1. a logger can be registered at any time. * 2. NULL loggers discard log calls * 3. if a valid logger is registered, th...
cpp
fprime
data/projects/fprime/Fw/Logger/test/ut/FakeLogger.cpp
/** * FakeLogger.cpp: * * Setup a fake logger for use with the testing. This allows for the capture of messages from the system and ensure that * the proper log messages are coming through as expected. * * @author mstarch */ #include <gtest/gtest.h> #include <Fw/Logger/test/ut/FakeLogger.hpp> namespace MockLogg...
cpp
fprime
data/projects/fprime/Fw/Trap/TrapHandler.hpp
#ifndef FW_TRAP_HPP #define FW_TRAP_HPP #include <FpConfig.hpp> namespace Fw { /** * TrapHandler: * A framework class used to handle traps that occur during the execution of the * the F' framework. Must be registered with a trap register. The user should * inherit from this class and ensure t...
hpp
fprime
data/projects/fprime/Fw/Dp/DpContainer.hpp
// ====================================================================== // \title DpContainer.hpp // \author bocchino // \brief hpp file for DpContainer // ====================================================================== #ifndef Fw_DpContainer_HPP #define Fw_DpContainer_HPP #include "Fw/Buffer/Buffer.hpp" #...
hpp
fprime
data/projects/fprime/Fw/Dp/DpContainer.cpp
// ====================================================================== // \title DpContainer.cpp // \author bocchino // \brief cpp file for DpContainer // ====================================================================== #include <cstring> #include "Fw/Com/ComPacket.hpp" #include "Fw/Dp/DpContainer.hpp" #in...
cpp
fprime
data/projects/fprime/Fw/Dp/test/util/DpContainerHeader.hpp
// ====================================================================== // \title DpContainerHeader.hpp // \author bocchino // \brief hpp file for DpContainer header test utility // ====================================================================== #ifndef Fw_TestUtil_DpContainerHeader_HPP #define Fw_TestUtil_...
hpp
fprime
data/projects/fprime/Fw/Dp/test/ut/TestMain.cpp
// ---------------------------------------------------------------------- // TestMain.cpp // ---------------------------------------------------------------------- #include <cstring> #include <limits> #include "gtest/gtest.h" #include "Fw/Dp/DpContainer.hpp" #include "Fw/Dp/test/util/DpContainerHeader.hpp" #include ...
cpp
End of preview. Expand in Data Studio

Summary

This dataset is a collection of codes used in embedded C/C++ software.
The purpose of this dataset is code infilling, but it can be used in other ways as well.
The libraries used for code collection are 7 each: fprime, boost-asio, TinyXML, inifile-cpp, RTI-DDS, OneAPI, and PROJ.

# of extention(file)

extention content
c 199
cpp 2495
cxx 505
h 5015
hpp 1994

Repo file count

repo_name content
PROJ 306
asio 1150
fprime 1091
inifile-cpp 8
oneAPI-samples 2456
rticonnextdds-examples 778
rticonnextdds-getting-started 33
rticonnextdds-robot-helpers 53
rticonnextdds-usecases 4329
tinyxml2 4

License

repo_name License
PROJ MIT
asio boost license
fprime Apache-2.0
inifile-cpp MIT
oneAPI-samples MIT
rticonnextdds-examples rti license
rticonnextdds-getting-started rti license
rticonnextdds-robot-helpers rti license
rticonnextdds-usecases rti license
tinyxml2 Zlib

# data generate script

see data_generate.py

Downloads last month
4