repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
bmwcarit/capu
Capu/include/capu/os/Posix/DynamicLibrary.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/os/Console.h
<filename>Capu/include/capu/os/Console.h<gh_stars>10-100 /* * Copyright (C) 2013 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses...
bmwcarit/capu
Capu/include/capu/os/FileSystemIterator.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/os/NumericLimits.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/container/ConstString.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/os/QNX/StringUtils.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/os/EnvironmentVariables.h
<gh_stars>10-100 /* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
bmwcarit/capu
Capu/include/capu/util/IInputStream.h
<gh_stars>10-100 /* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
bmwcarit/capu
Capu/include/capu/Error.h
<filename>Capu/include/capu/Error.h /* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Un...
bmwcarit/capu
Capu/include/capu/os/Windows/MinimalWindowsH.h
<filename>Capu/include/capu/os/Windows/MinimalWindowsH.h<gh_stars>10-100 /* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
bmwcarit/capu
Capu/include/capu/os/Generic/File.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/util/shared_ptr.h
<gh_stars>10-100 /* * Copyright (C) 2015 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
bmwcarit/capu
Capu/include/capu/os/Generic/Thread.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/util/TimerManager.h
/* * Copyright (C) 2016 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
bmwcarit/capu
Capu/include/capu/os/Generic/NonBlockSocketChecker.h
<reponame>bmwcarit/capu /* * Copyright (C) 2014 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
bmwcarit/capu
Capu/include/capu/os/NonBlockSocketChecker.h
<filename>Capu/include/capu/os/NonBlockSocketChecker.h /* * Copyright (C) 2014 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-...
bmwcarit/capu
Capu/include/capu/container/vector.h
<reponame>bmwcarit/capu /* * Copyright (C) 2013 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
bmwcarit/capu
Capu/include/capu/util/Logger.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/util/ScopedPointer.h
<filename>Capu/include/capu/util/ScopedPointer.h /* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
bmwcarit/capu
Capu/include/capu/os/Windows/Socket.h
<reponame>bmwcarit/capu /* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
bmwcarit/capu
Capu/include/capu/os/Posix/Thread.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/util/StringOutputStream.h
<filename>Capu/include/capu/util/StringOutputStream.h<gh_stars>10-100 /* * Copyright (C) 2013 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
bmwcarit/capu
Capu/test/src/util/IteratorTestHelper.h
/* * Copyright (C) 2017 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
bmwcarit/capu
Capu/include/capu/util/StaticAllocator.h
<gh_stars>10-100 /* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
bmwcarit/capu
Capu/include/capu/os/Generic/Math.h
<reponame>bmwcarit/capu /* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
bmwcarit/capu
Capu/include/capu/util/FileTraverser.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/os/Windows/Mutex.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/container/RingBuffer.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/util/AlgorithmRaw.h
/* * Copyright (C) 2015 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
bmwcarit/capu
Capu/include/capu/os/Generic/EnvironmentVariables.h
/* * Copyright (C) 2015 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/util/LogAppenderBase.h
<filename>Capu/include/capu/util/LogAppenderBase.h /* * Copyright (C) 2015 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
bmwcarit/capu
Capu/include/capu/os/Windows/TcpServerSocket.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/util/BinaryFileOutputStream.h
<filename>Capu/include/capu/util/BinaryFileOutputStream.h /* * Copyright 2013 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LIC...
bmwcarit/capu
Capu/include/capu/util/ReadWriteLock.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/os/Windows/TcpSocket.h
<filename>Capu/include/capu/os/Windows/TcpSocket.h /* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
bmwcarit/capu
Capu/include/capu/os/Posix/FileUtils.h
/* * Copyright (C) 2014 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/util/LogMessage.h
<gh_stars>10-100 /* * Copyright (C) 2013 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
bmwcarit/capu
Capu/include/capu/os/Byteorder.h
/* * Copyright (C) 2017 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/util/Iterator.h
<filename>Capu/include/capu/util/Iterator.h /* * Copyright (C) 2015 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
bmwcarit/capu
Capu/include/capu/os/Posix/Mutex.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/os/UdpSocket.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/util/FileUtils.h
<gh_stars>10-100 /* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
bmwcarit/capu
Capu/include/capu/util/ILogAppender.h
<filename>Capu/include/capu/util/ILogAppender.h /* * Copyright (C) 2013 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-...
bmwcarit/capu
Capu/include/capu/os/MacOSX/Semaphore.h
/* * Copyright (C) 2014 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/util/BinaryOutputStream.h
<reponame>bmwcarit/capu /* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
bmwcarit/capu
Capu/include/capu/os/Posix/EnvironmentVariables.h
/* * Copyright (C) 2015 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/container/Map.h
<gh_stars>10-100 /* * Copyright (C) 2015 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
bmwcarit/capu
Capu/include/capu/os/Atomic.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/os/Posix/Byteorder.h
/* * Copyright (C) 2017 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/os/Posix/Console.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/test/src/util/ComplexTestType.h
/* * Copyright (C) 2015 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
bmwcarit/capu
Capu/include/capu/util/Algorithm.h
<filename>Capu/include/capu/util/Algorithm.h<gh_stars>10-100 /* * Copyright (C) 2015 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LI...
bmwcarit/capu
Capu/include/capu/util/ThreadPool.h
<gh_stars>10-100 /* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
bmwcarit/capu
Capu/include/capu/container/String.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/util/LogContext.h
<gh_stars>10-100 /* * Copyright (C) 2013 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
bmwcarit/capu
Capu/include/capu/util/TestUtils.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
bmwcarit/capu
Capu/include/capu/os/Windows/Console.h
/* * Copyright (C) 2012 BMW Car IT GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
P8P-7/foundation
include/goliath/foundation/handle.h
#pragma once #include <mutex> #include <condition_variable> #include <boost/optional.hpp> /** * @file handle.h * @author Group 7 - Informatica */ namespace goliath::handles { class Handle { public: explicit Handle(const size_t &handleId); Handle(const Handle &other); /** ...
P8P-7/foundation
include/goliath/foundation/util/foundation_utilities.h
<filename>include/goliath/foundation/util/foundation_utilities.h #pragma once #include <string> /** * @file foundation_utilities.h * @author Group 7 - Informatica */ namespace goliath::util { class FoundationUtilities { public: static std::string executablePath(const std::string &executable); ...
P8P-7/foundation
include/goliath/foundation/util/console.h
#pragma once #include <string> #include <boost/log/core.hpp> #include <boost/log/sinks.hpp> #include <boost/log/trivial.hpp> #include <boost/format.hpp> /** * @file console.h * @author Group 7 - Informatica */ #define CONSOLE_COLOR_DEFAULT "\033[39m" #define CONSOLE_COLOR_BLACK "\033[30m" #define CONSOLE_COLOR_WH...
P8P-7/foundation
include/goliath/foundation/handle_error.h
#pragma once #include <exception> #include <string> namespace goliath::exceptions { class HandleError: public std::exception { public: HandleError(const size_t &handle_id, const std::string &reason) : handle_id(handle_id), reaso...
P8P-7/foundation
include/goliath/foundation.h
<filename>include/goliath/foundation.h #pragma once /** * @file foundation.h * @author Group 7 - Informatica */ /** * @namespace goliath::core * @brief Contains base-defenitions every module (and controller) needs */ #include "foundation/handle.h" #include "foundation/handle_error.h" #include "foundation/r...
P8P-7/foundation
include/goliath/foundation/publisher_service.h
<filename>include/goliath/foundation/publisher_service.h #pragma once #include <MessageCarrier.pb.h> /** * @file publisher_service.h * @author Group 7 - Informatica */ namespace goliath::foundation { class PublisherService { public: /** * @param carrier message to send * @return...
P8P-7/foundation
include/goliath/foundation/repositories/proto_repository.h
#pragma once #include "repository.h" /** * @file proto_repository.h * @author Group 7 - Informatica */ namespace goliath::repositories { /** * @class goliath::repositories::ProtoRepository * @brief Repository for accessing proto objects * @tparam T Proto */ template<typename T> cla...
P8P-7/foundation
include/goliath/foundation/repositories/repository.h
#pragma once #include <google/protobuf/message.h> #include <atomic> /** * @file repository.h * @author Group 7 - Informatica */ namespace goliath::repositories { /** * @class goliath::repositories::Repository * @brief Repository base class */ class Repository { public: /** ...
P8P-7/foundation
include/goliath/foundation/repositories/polling_repository.h
#pragma once #include <CommandMessage.pb.h> #include "repository.h" namespace goliath::repositories { class PollingRepository : public Repository { public: virtual size_t getPollingCommandId() = 0; virtual std::vector<proto::CommandMessage> getCommandMessages(); }; }
saininav/acrn-hypervisor
hypervisor/dm/vpci/vmsi.c
<reponame>saininav/acrn-hypervisor<filename>hypervisor/dm/vpci/vmsi.c /* * Copyright (c) 2011 NetApp, Inc. * Copyright (c) 2018 Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ar...
saininav/acrn-hypervisor
hypervisor/scenarios/logical_partition/vm_configurations.h
/* * Copyright (C) 2019 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef VM_CONFIGURATIONS_H #define VM_CONFIGURATIONS_H #include <pci_devices.h> #include <misc_cfg.h> /* Bits mask of guest flags that can be programmed by device model. Other bits are set by hypervisor ...
saininav/acrn-hypervisor
devicemodel/core/pm_vuart.c
<filename>devicemodel/core/pm_vuart.c /* * Project Acrn * Acrn-dm: pm-vuart * * Copyright (C) 2019 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ /* vuart can be used communication between SOS and UOS, here it is used as power manager control. */ #include <stdio.h> #inc...
saininav/acrn-hypervisor
misc/life_mngr/life_mngr.c
/* * Copyright (C)2019 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <termios.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <pthread.h> #incl...
saininav/acrn-hypervisor
hypervisor/arch/x86/guest/vmcs.c
<reponame>saininav/acrn-hypervisor<filename>hypervisor/arch/x86/guest/vmcs.c<gh_stars>1-10 /* * Copyright (C) 2018 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * * this file contains vmcs operations which is vcpu related */ #include <types.h> #include <vmcs.h> #include <vcpu....
immrn/SkipLists
inc/skiplist.h
<reponame>immrn/SkipLists #include <stdio.h> #include <stdlib.h> #include <stdbool.h> /*****************************************************************/ /**************************** Structs ****************************/ /*****************************************************************/ //node typedef struct _sl_no...
immrn/SkipLists
src/main.c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <time.h> #include "skiplist.h" //Needed by example: #define LAYERS 4 #define NODES 15 //Data for the example: typedef struct{ char* name; char* achievement; int year; }Developer; //Example application: int Example(); //Benchmarks: Call one of t...
immrn/SkipLists
src/skiplist.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include <stdbool.h> #include "skiplist.h" /*****************************************************************/ /*********************** (Key) Color Defines *********************/ /**************************************************************...
cherishandjay/TYAlertController
WKTest/LMAlertController/LHAlert.h
// // LHAlert.h // LMFramework // // Created by lumi on 2020/1/9. // Copyright © 2020 ruie. All rights reserved. // #ifndef LHAlert_h #define LHAlert_h #import "LHAlertView.h" #import "LHAlertController.h" #import "UIView+LHAlertView.h" #endif /* LHAlert_h */
cherishandjay/TYAlertController
TYAlertControllerDemo/TYAlertController/TYAlertView.h
// // TYAlertView.h // TYAlertControllerDemo // // Created by tanyang on 15/9/7. // Copyright (c) 2015年 tanyang. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSUInteger, TYAlertActionStyle) { TYAlertActionStyleDefault,//black TYAlertActionStyleCancel, TYAlertActionStyleDestructive,/...
cherishandjay/TYAlertController
WKTest/AViewController.h
// // AViewController.h // WKTest // // Created by lumi on 2019/12/31. // Copyright © 2019 chenshuang. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface AViewController : UIViewController @end NS_ASSUME_NONNULL_END
cherishandjay/TYAlertController
WKTest/ViewController.h
<gh_stars>0 // // ViewController.h // WKTest // // Created by chenshuang on 2019/12/13. // Copyright © 2019 chenshuang. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
Adia-wty/3-SAT-Problem
Program/generate_file.c
<reponame>Adia-wty/3-SAT-Problem<filename>Program/generate_file.c // created by <NAME> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> #include <unistd.h> #define MODE (S_IRWXU | S_IRWXG | S_IRWXO) void generate(int var, ...
Adia-wty/3-SAT-Problem
Program/terminal.c
<filename>Program/terminal.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <zconf.h> int myexec(const char *cmd) { FILE *pp = popen(cmd, "r"); if (!pp) { return -1; } char tmp[1024]; char propchar[10]; while (fgets(tmp, sizeof(tmp), pp) != NULL) { if (strn...
PratikGarai/CompuDex
src/C.c
// This is an example of the C language #include<stdio.h> #include<string.h> #include<math.h> int main(){ int arr[2]; for(int i=0;i<2;i++){ printf("Enter number %d\n", i+1); int num; scanf("%d", &num); arr[i] = num; } char operator; printf("Enter operator\n"); ...
nikhovas/bank
include/bank/interfaces/DataSource/IDataObjectMetaInfo.h
#pragma once namespace interfaces::DataSource { class IDataObjectMetaInfo { public: virtual bool isNotExistingObject() = 0; virtual void makeNotExisting() = 0; }; }
nikhovas/bank
include/bank/interfaces/DataSource/IGetters.h
<filename>include/bank/interfaces/DataSource/IGetters.h #pragma once #include "bank/DataObjects.hpp" namespace interfaces::DataSource { class IBankAccountGetter { public: virtual std::vector<DatabaseObjects::BankAccount *> getAccountsByClientId(DatabaseObjects::id id) = 0; virtual std::vector...
nikhovas/bank
include/bank/interfaces/DataSource/IDataSource.h
<reponame>nikhovas/bank<filename>include/bank/interfaces/DataSource/IDataSource.h #pragma once #include "ITypeDataSource.h" #include "helpers/IGetClientsByTransactionsHelper.h" namespace interfaces::DataSource { struct IDataSource { virtual ITypeDataSource* getClientStorage() = 0; virtual ITypeD...
nikhovas/bank
include/bank/DataSources/VirtualObjectMetaInfo.h
<gh_stars>0 #pragma once #include "bank/DataSources/VirtualObjectMetaInfo.h" class VirtualDataObjectMetaInfo : public interfaces::DataSource::IDataObjectMetaInfo { public: virtual bool isNotExistingObject() override { return true; } virtual void makeNotExisting() override {} };
nikhovas/bank
include/bank/interfaces/DataSource/ITypeDataSource.h
#pragma once #include "bank/DataObjects.hpp" #include "ReadOnlyTypeDataSource.h" using DatabaseObjects::DatabaseObject; namespace interfaces::DataSource { class ITypeDataSource : public ReadOnlyTypeDataSource { public: virtual DatabaseObject * getWriteObject(DatabaseObjects::id id) = 0; v...
nikhovas/bank
tests/helpers.h
<reponame>nikhovas/bank #pragma once #include <bank/DataObjects.hpp> #include <bank/interfaces/DataSource/ITypeDataSource.h> using Client = DatabaseObjects::Client; namespace dsi = interfaces::DataSource; Client* generateUser(dsi::ITypeDataSource* client_storage, std::string passport, std::string address);
nikhovas/bank
include/bank/decorators/ClientCreateDecorator.h
<gh_stars>0 #pragma once #include "bank/interfaces/decorators/ITypeDataSourceDecorator.h" #include "bank/DataObjects.hpp" #include "bank/interfaces/DataSource/helpers/IGetClientsByTransactionsHelper.h" namespace decorators { namespace deci = interfaces::decorators; namespace dsi = interfaces::DataSource; ...
nikhovas/bank
include/bank/DataSources/OperativeMemory/DataSource.h
<reponame>nikhovas/bank #pragma once #include "bank/DataObjects.hpp" #include "TypeDataSource.h" #include "bank/interfaces/DataSource/IDataSource.h" #include <bank/decorators/TransactionUserDataCheckDecorator.h> #include <bank/DataSources/OperativeMemory/helpers/GetClientsByTransactionHelper.h> #include <bank/decorator...
nikhovas/bank
include/bank/DataSources/OperativeMemory/DataObjectMetaInfo.h
<reponame>nikhovas/bank #pragma once #include "bank/interfaces/DataSource/IDataObjectMetaInfo.h" namespace OperativeMemory { namespace dsi = interfaces::DataSource; enum DatabaseStatus { NOT_CREATED, EXISTS, DELETED, NOT_EXISTING_OBJECT }; class DataObjectMetaInfo : public dsi::IDataObject...
nikhovas/bank
include/bank/interfaces/DataSource/helpers/IGetClientsByTransactionsHelper.h
#pragma once #include "bank/DataObjects.hpp" namespace interfaces::DataSource { class IGetClientsByTransactionsHelper { public: std::vector<DatabaseObjects::Client *> getObjects(const std::vector<DatabaseObjects::Transaction *> &transactions) { std::vector<DatabaseObjects::Client *> resu...
nikhovas/bank
include/bank/decorators/TransactionUserDataCheckDecorator.h
<gh_stars>0 #pragma once #include "bank/interfaces/decorators/ITypeDataSourceDecorator.h" #include "bank/DataObjects.hpp" #include "bank/interfaces/DataSource/helpers/IGetClientsByTransactionsHelper.h" namespace decorators { namespace deci = interfaces::decorators; namespace dsi = interfaces::DataSource; ...
nikhovas/bank
include/bank/DataSources/CompositeReadOnlyTypeDataSource.h
<gh_stars>0 #pragma once #include <bank/interfaces/DataSource/ReadOnlyTypeDataSource.h> #include <vector> namespace dsi = interfaces::DataSource; class CompositeReadOnlyTypeDataSource : public dsi::ReadOnlyTypeDataSource { public: CompositeReadOnlyTypeDataSource(const std::vector<dsi::ITypeDataSource*>& element...
nikhovas/bank
include/bank/interfaces/DataSource/ReadOnlyTypeDataSource.h
#pragma once using DatabaseObjects::DatabaseObject; namespace interfaces::DataSource { class ReadOnlyTypeDataSource { public: virtual DatabaseObject * getObject(DatabaseObjects::id id) = 0; std::vector<DatabaseObject *> getBatch(std::vector<DatabaseObjects::id> ids) { std::vecto...
nikhovas/bank
include/bank/constants.h
namespace constants { inline constexpr int daysPerYear {365}; }
nikhovas/bank
include/bank/interfaces/decorators/ITypeDataSourceDecorator.h
<filename>include/bank/interfaces/decorators/ITypeDataSourceDecorator.h #pragma once #include "bank/interfaces/DataSource/ITypeDataSource.h" namespace interfaces::decorators { namespace dsi = interfaces::DataSource; using DatabaseObjects::id; class ITypeDataSourceDecorator : public dsi::ITypeDataSource ...
nikhovas/bank
include/bank/decorators/TransactionBanDeleting.h
#pragma once #include "bank/interfaces/decorators/ITypeDataSourceDecorator.h" #include "bank/DataObjects.hpp" #include "bank/interfaces/DataSource/helpers/IGetClientsByTransactionsHelper.h" namespace decorators { namespace deci = interfaces::decorators; namespace dsi = interfaces::DataSource; class Tra...
nikhovas/bank
include/bank/exceptions.h
#pragma once #include <exception> class ObjectDoesNotExists : public std::exception { public: const char* what() const throw() { return "Object does not exists"; } }; class BadDataSourceForObject : public std::exception { public: const char* what() const throw() { return "Bad data source...
nikhovas/bank
include/bank/DataSources/OperativeMemory/AccountsGetter.h
<gh_stars>0 #pragma once namespace OperativeMemory { namespace dsi = interfaces::DataSource; class AccountsGetter : public dsi::ITypeDataSource { public: std::vector<DatabaseObject *> getAccountsById(std::vector<DatabaseObjects::id> ids) { std::vector<DatabaseObject *> result; ...
nikhovas/bank
include/bank/DataSources/OperativeMemory/TypeDataSource.h
#pragma once #include <unordered_map> #include <bank/DataObjects.hpp> #include "bank/interfaces/DataSource/ITypeDataSource.h" #include "DataObjectMetaInfo.h" #include "bank/exceptions.h" #include "UniqueIdGetter.h" namespace OperativeMemory { using DatabaseObjects::id; namespace dsi = interfaces::DataSource; ...