2024-11-23 13:09:12 +08:00
|
|
|
#include "Layer.h"
|
|
|
|
|
|
|
|
|
|
#include "DatabaseClass.h"
|
|
|
|
|
|
2022-10-20 22:46:17 +08:00
|
|
|
using namespace db;
|
|
|
|
|
|
|
|
|
|
/***** Track *****/
|
|
|
|
|
|
|
|
|
|
char Track::macro() const {
|
|
|
|
|
switch (direction) {
|
|
|
|
|
case 'h':
|
|
|
|
|
return 'Y';
|
|
|
|
|
case 'v':
|
|
|
|
|
return 'X';
|
|
|
|
|
default:
|
2023-04-06 13:34:26 +08:00
|
|
|
logger.error("track direction not recognized: %c", direction);
|
2022-10-20 22:46:17 +08:00
|
|
|
return '\0';
|
|
|
|
|
}
|
|
|
|
|
}
|