Science Score: 31.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (0.8%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: yhuang3-uf
  • Language: C++
  • Default Branch: master
  • Size: 6.61 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 3
  • Open Issues: 0
  • Releases: 0
Created almost 3 years ago · Last pushed almost 3 years ago
Metadata Files
Readme Citation

README.md

NoParking

This is an app that will allow you to search for parking citations from the command line.

Citation (Citation.cpp)

#include "Citation.h"

/**
 * Copy resources from another object.
 * @param other Object to copy resources from
 */
void Citation::copyResources(const Citation &other) {
    this->plateNumber = other.plateNumber;
    this->state = other.state;
    this->carMake = other.carMake;
    this->carStyle = other.carStyle;
    this->carColor = other.carColor;
    this->location = other.location;
    this->violation = other.violation;
    this->fine = other.fine;
    this->dateTime = new DateTime(*other.dateTime);
}

Citation::Citation(std::string &plateNumber, std::string &state, std::string &carMake, std::string &carStyle,
                   std::string &carColor, std::string &location, std::string &violation, int &fine,
                   DateTime &dateTime) {
    this->plateNumber = plateNumber;
    this->state = state;
    this->carMake = carMake;
    this->carStyle = carStyle;
    this->carColor = carColor;
    this->location = location;
    this->violation = violation;
    this->fine = fine;

    // Copy dateTime onto the heap
    this->dateTime = new DateTime(dateTime);
}
Citation::Citation(const Citation &other) {
    // Copy constructor
    copyResources(other);
}
Citation &Citation::operator=(const Citation &other) {
    // Copy assignment operator
    if (this != &other) {
        delete this->dateTime;
        copyResources(other);
    }
    return *this;
}
Citation::~Citation() {
    // Clean up the memory
    delete this->dateTime;
}

Citation::operator std::string() const {
    return this->state + " " + this->plateNumber + " | " + this->carColor + " " + this->carMake + " " + this->carStyle +
    " | Violation: " + this->violation + "\nDate: " + (std::string) *this->dateTime +
    " | Fined $" + std::to_string(this->fine);
}

GitHub Events

Total
Last Year