VillasInterface.h 555 Bytes
Newer Older
1
2
3
4
5
6
7
8
#pragma once

#include <atomic>
#include <unordered_map>

#include <villas/shmem.h>

#include "ExternalInterface.h"
9
#include "Components/ExternalCurrentSource.h"
10
11
12
13
14
15
16
17
18
19
20
21
#include "Components/ExternalVoltageSource.h"

namespace DPsim {
	/** Implements ExternalInterface by using the shared memory interface of VILLASnode. */
	class VillasInterface : public ExternalInterface {
	private:
		const char* mShmemName;
		struct shmem_shared* mShmem;
		void* mBase;

	public:
		VillasInterface(const char* name);
22
		~VillasInterface();
23
24
25
		virtual void readValues();
	};
};