src/GRAPHGEN/conact_code_generator.cpp
// This is the function to generate Chain Code action code
This is the function to generate Chain Code action code
This is the function to generate Chain Code action code
void GenerateChaincodeActionsCode(ofstream& os, const rule_set& rs, bool with_continues = true) {
    os << "\n\n//Actions:\n";
    for (size_t a = 0; a < rs.actions.size(); ++a) {
        const auto& action = rs.actions[a];
        os << "#define ACTION_" << (a + 1) << "\tpos = ProcessPixel<" << action << "\t>(r, c, rccode, chains, pos);";
        if (with_continues) {
            os << " continue;";
        }
        os << "\n";
    }
}
void GenerateChaincodeActionsCode ( ofstream & os , const rule_set & rs , bool with_continues = true ) { os << " \n \n \n " ; for ( size_t a = 0 ; a < rs . actions . size ( ) ; ++ a ) { const auto & action = rs . actions [ a ] ; os << " " << ( a + 1 ) << " \t " << action << " \t " ; if ( with_continues ) { os << " " ; } os << " \n " ; } }
This is the function to generate Chain Code action code
This is the function to generate Chain Code action code
// Actions: