forked from xcore/tool_axe
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPortArg.h
More file actions
26 lines (21 loc) · 662 Bytes
/
PortArg.h
File metadata and controls
26 lines (21 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2012, Richard Osborne, All rights reserved
// This software is freely distributable under a derivative of the
// University of Illinois/NCSA Open Source License posted in
// LICENSE.txt and at <http://github.xcore.com/>
#ifndef _PortArg_h
#define _PortArg_h
#include <string>
#include <iosfwd>
class Port;
class SystemState;
class PortArg {
std::string core;
std::string port;
public:
PortArg() {}
PortArg(const std::string &c, const std::string &p) : core(c), port(p) {}
static bool parse(const std::string &s, PortArg &arg);
Port *lookup(SystemState &system) const;
void dump(std::ostream &s) const;
};
#endif // _PortArg_h