Commit fe5a418c authored by garciay's avatar garciay
Browse files

Move new UT & AC messages in LibItsGeoNetworking

parent 9298fd43
Loading
Loading
Loading
Loading
+0 −71
Original line number Diff line number Diff line
//=============================================================================
namespace ItsAutoInterop__TestSystem {

AdapterControlPort::AdapterControlPort(const char *par_port_name)
	: AdapterControlPort_BASE(par_port_name)
{

}

AdapterControlPort::~AdapterControlPort()
{

}

void AdapterControlPort::set_parameter(const char * /*parameter_name*/,
	const char * /*parameter_value*/)
{

}

/*void AdapterControlPort::Handle_Fd_Event(int fd, boolean is_readable,
	boolean is_writable, boolean is_error) {}*/

void AdapterControlPort::Handle_Fd_Event_Error(int /*fd*/)
{

}

void AdapterControlPort::Handle_Fd_Event_Writable(int /*fd*/)
{

}

void AdapterControlPort::Handle_Fd_Event_Readable(int /*fd*/)
{

}

/*void AdapterControlPort::Handle_Timeout(double time_since_last_call) {}*/

void AdapterControlPort::user_map(const char * /*system_port*/)
{

}

void AdapterControlPort::user_unmap(const char * /*system_port*/)
{

}

void AdapterControlPort::user_start()
{

}

void AdapterControlPort::user_stop()
{

}

void AdapterControlPort::outgoing_send(const LibItsCommon__TypesAndValues::AcGnssPrimitive& /*send_par*/)
{

}

void AdapterControlPort::outgoing_send(const LibItsCommon__TypesAndValues::AcSecPrimitive& /*send_par*/)
{

}

} /* end of namespace */
+0 −34
Original line number Diff line number Diff line
//=============================================================================
#include "ItsAutoInterop_TestSystem.hh"

namespace ItsAutoInterop__TestSystem {

class AdapterControlPort : public AdapterControlPort_BASE {
public:
	AdapterControlPort(const char *par_port_name = NULL);
	~AdapterControlPort();

	void set_parameter(const char *parameter_name,
		const char *parameter_value);

private:
	/* void Handle_Fd_Event(int fd, boolean is_readable,
		boolean is_writable, boolean is_error); */
	void Handle_Fd_Event_Error(int fd);
	void Handle_Fd_Event_Writable(int fd);
	void Handle_Fd_Event_Readable(int fd);
	/* void Handle_Timeout(double time_since_last_call); */
protected:
	void user_map(const char *system_port);
	void user_unmap(const char *system_port);

	void user_start();
	void user_stop();

    void outgoing_send(const LibItsCommon__TypesAndValues::AcGnssPrimitive& send_par);

	void outgoing_send(const LibItsCommon__TypesAndValues::AcSecPrimitive& send_par);
	
};

} // end of namespace
+0 −71
Original line number Diff line number Diff line
//=============================================================================
namespace ItsAutoInterop__TestSystem {

UpperTesterPort::UpperTesterPort(const char *par_port_name)
	: UpperTesterPort_BASE(par_port_name)
{

}

UpperTesterPort::~UpperTesterPort()
{

}

void UpperTesterPort::set_parameter(const char * /*parameter_name*/,
	const char * /*parameter_value*/)
{

}

/*void UpperTesterPort::Handle_Fd_Event(int fd, boolean is_readable,
	boolean is_writable, boolean is_error) {}*/

void UpperTesterPort::Handle_Fd_Event_Error(int /*fd*/)
{

}

void UpperTesterPort::Handle_Fd_Event_Writable(int /*fd*/)
{

}

void UpperTesterPort::Handle_Fd_Event_Readable(int /*fd*/)
{

}

/*void UpperTesterPort::Handle_Timeout(double time_since_last_call) {}*/

void UpperTesterPort::user_map(const char * /*system_port*/)
{

}

void UpperTesterPort::user_unmap(const char * /*system_port*/)
{

}

void UpperTesterPort::user_start()
{

}

void UpperTesterPort::user_stop()
{

}

void UpperTesterPort::outgoing_send(const LibItsCommon__TypesAndValues::UtInitialize& send_par)
{

}

void UpperTesterPort::outgoing_send(const ItsAutoInterop__TypesAndValues::UtAutoInteropTrigger& send_par)
{

}

} /* end of namespace */
+0 −32
Original line number Diff line number Diff line
//=============================================================================
#include "ItsAutoInterop_TestSystem.hh"

namespace ItsAutoInterop__TestSystem {

class UpperTesterPort : public UpperTesterPort_BASE {
public:
	UpperTesterPort(const char *par_port_name = NULL);
	~UpperTesterPort();

	void set_parameter(const char *parameter_name,
		const char *parameter_value);

private:
	/* void Handle_Fd_Event(int fd, boolean is_readable,
		boolean is_writable, boolean is_error); */
	void Handle_Fd_Event_Error(int fd);
	void Handle_Fd_Event_Writable(int fd);
	void Handle_Fd_Event_Readable(int fd);
	/* void Handle_Timeout(double time_since_last_call); */
protected:
	void user_map(const char *system_port);
	void user_unmap(const char *system_port);

	void user_start();
	void user_stop();

    void outgoing_send(const LibItsCommon__TypesAndValues::UtInitialize& send_par);
    void outgoing_send(const ItsAutoInterop__TypesAndValues::UtAutoInteropTrigger& send_par);
};

} /* end of namespace */