blocks.cpp revision d8ba995c170b95d5f01b09826108981d89159d25
/*
* Read Blocks from file and convert to vectors of entities
*
* Author:
* Matt Squires <squiresm@colorado.edu>
*
* Copyright (C) 2005 Matt Squires
*
*/
#include"blocks.h"
#include<iostream>
// Inherit most of the functionality of the entitites section
basic_entity( sections[0] );
block_info( sections[0] );
}
}
static char string[10000];
switch( info[i].group_code ){
case 2: // Block name
break;
}
}
}
// Read the main information about the entities section and then put it in the enetites class
char string[10000];
single_line.clear();
n_loop--;
//for(int i = 0; i < (sections.size()-1); i++){ // It is odd but the last value seems to be bad so don't use it
// I am not really sure if I need the -1. I needed it once upon a time to make things work but I don't have time to test it well right now
// But sections.size() is an unsigned int so when you subtract 1 it becomes 4294967295 and tries to run the loop so work around that by making n_loop that is signed
for(int i = 0; i < n_loop; i++){ // It is odd but the last value seems to be bad so don't use it
// Get everything from the start of the BLOCK designation to an ENDBLK value
do{
}
}
}
int string_len = 0;
char temp[10000];
for (int i = 0; i < blocks_blocks.size();i++){
}
return blocks_blocks[0];
}